PiPowerMeter icon indicating copy to clipboard operation
PiPowerMeter copied to clipboard

MQTT Provision

Open xianrecords2015 opened this issue 5 years ago • 5 comments

Hello,

Thanks for making this project. I started my own with a standard MCP3208 but found that a 12bit ADC is not accurate enough. I like the approach of the CS5490.

I have a question for you. In the driver.js, I saw that you have some provision for MQTT but I could not find anywhere on the configuration web page a way to enter the MQTT server, username, password and port. Am I missing something ?

Thanks

Chris

xianrecords2015 avatar Dec 04 '19 05:12 xianrecords2015

It’s not exposed by default. Add ‘?advanced=1’ to the url and you should see it

From: xianrecords2015 [email protected] Sent: Tuesday, December 3, 2019 9:55 PM To: crjens/PiPowerMeter [email protected] Cc: Subscribed [email protected] Subject: [crjens/PiPowerMeter] MQTT Provision (#11)

Hello,

Thanks for making this project. I started my own with a standard MCP3208 but found that a 12bit ADC is not accurate enough. I like the approach of the CS5490.

I have a question for you. In the driver.js, I saw that you have some provision for MQTT but I could not find anywhere on the configuration web page a way to enter the MQTT server, username, password and port. Am I missing something ?

Thanks

Chris

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcrjens%2FPiPowerMeter%2Fissues%2F11%3Femail_source%3Dnotifications%26email_token%3DACGGITLAR56FOWO4ULVTGITQW5A2RA5CNFSM4JVDLO7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H54ZV5Q&data=02%7C01%7C%7C7e481e38d4034b9a8bbe08d7787e7a24%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110356916797501&sdata=feRgdOzD8vzraD1c%2F4GZdErIJx%2B1H%2FKhwFY6xg7gVk0%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGGITNZJKKKMA2CUN44N6DQW5A2RANCNFSM4JVDLO7A&data=02%7C01%7C%7C7e481e38d4034b9a8bbe08d7787e7a24%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110356916807512&sdata=r8lX9tnAQrG7e8ctWEV7s7tI94MxlxQDVL4epvVfYqk%3D&reserved=0.

crjens avatar Dec 04 '19 20:12 crjens

Thank you for your answer,

I was trying to analyze the CS5490.js and forgive my ignorance and little knowledge of Javascript but you are requiring a CS5490 at the beginning of the code. I am assuming that this is not the CS5490.js file itself. There are a number of call to a cs5490 library (ie: cs5490.DigitalRead) that I cannot reference. Where are they coming from ?

Also you have define 4 input pins to read the HW version. I have a hard time to find them on the schematics. I can find the output pins but I am not understanding the inputs.

Thanks

Christian

xianrecords2015 avatar Dec 04 '19 20:12 xianrecords2015

I now understand the 4 input pins for HW version.

I also see that you have developed a CS5490 C++ in one of the other branch that I believe is what you require in the cs5490.js. I am wondering in the setup file how you import it in the project and the setup

xianrecords2015 avatar Dec 04 '19 22:12 xianrecords2015

The 4 input pins are to determine the hardware version of the boards. There are drivers written in C for both the CS5463 and CS5490 chips. They use nanhttps://github.com/nodejs/nan to interface with the node based PiPowerMeter software.

From: xianrecords2015 [email protected] Sent: Wednesday, December 4, 2019 2:21 PM To: crjens/PiPowerMeter [email protected] Cc: crjens [email protected]; Comment [email protected] Subject: Re: [crjens/PiPowerMeter] MQTT Provision (#11)

I now understand the 4 input pins for HW version.

I also see that you have developed a CS5490 C++ in one of the other branch that I believe is what you require in the cs5490.js. I am wondering in the setup file how you import it in the project and the setup

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcrjens%2FPiPowerMeter%2Fissues%2F11%3Femail_source%3Dnotifications%26email_token%3DACGGITN7AOIYXP24U5WHIALQXAULBA5CNFSM4JVDLO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF6WJLY%23issuecomment-561865903&data=02%7C01%7C%7C2b93d2535f1c4f674cd608d779082e9d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110948371024756&sdata=rPI9HUvlKkNjLPkfF1v4HQMDfN%2B4XZZbA8SNwG6uQkU%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGGITNWQI6VHBYW2E2JMEDQXAULBANCNFSM4JVDLO7A&data=02%7C01%7C%7C2b93d2535f1c4f674cd608d779082e9d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110948371034773&sdata=4cHW6J3yAATLDYSo7p5UfoGpeS2AGe6KaWLIkpov7Co%3D&reserved=0.

crjens avatar Dec 05 '19 16:12 crjens

There seems to be some inconsistencies in the V4 Schematics/Board.

  • Are the shunt resistance R1-R16 5.1Ohms or 7.5Ohms ? They are listed 5 Ohms in the schematics yet they call a 7.5Ohms Digikey Part number in the info

  • the PJ313D have the CP1-3525N-ND Digikey Part number in V2 BOM (There is no V4 BOM). These seems to be thruholes connectors. But the board is setup for surface mount connector. Do you have the reference of these SMT connectors ?

Tx

xianrecords2015 avatar Dec 11 '19 20:12 xianrecords2015