rstrouse / relayEquipmentManager

A hardware controller for GPIO, I2c, SPI, and generic devices.
GNU General Public License v3.0
38 stars 19 forks source link

Multi-relay board error in logs #53

Closed seaverd closed 1 year ago

seaverd commented 1 year ago

rstrouse,

I could use your assistance. I had a working REM, Nodejs Pool Controller and Dashboard running for the past year or so due to your help when my intellicenter board died. I had an SD card failure on the pi, so I am starting with a clean install. I am having one issue and that is I cannont get the Sequent Microsystems multi-relay board to function. After adding the board in REM and enabling the relays...I cannot get them to toggle. I set my debug to silly and have attached a log from a clean boot and then attempted to toggle each of the 8 relays a couple of times. The log shows an error of undefined as part of each relay toggle press. I have also included a copy of my REM controllerConfig.json file.

Any assistance you can provide is greatly appreciated! Dan

consoleLog(2023-10-05_14-18-35).log controllerConfig.txt

seaverd commented 1 year ago

@rstrouse

As a follow up I can confirm that the relays can be toggled from command line using the 8relind-rpi tool.

I have also done npm rebuild and npm I and restarted and get the same behavior as original post.

Thanks, Dan

rstrouse commented 1 year ago

The 8 relay board does not respond to the REM detection so can you verify that the board is located at address 0x2d.

seaverd commented 1 year ago

@rstrouse

Yes the relay board is located at 0x2d. See attached screenshot.

Dan

On Thu, Oct 5, 2023 at 10:01 PM rstrouse @.***> wrote:

The 8 relay board does not respond to the REM detection so can you verify that the board is located at address 0x2d.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/relayEquipmentManager/issues/53#issuecomment-1749885063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU53BLJ22HRA22YFB2C3DLX55Q7RAVCNFSM6AAAAAA5UV7DK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZHA4DKMBWGM . You are receiving this because you authored the thread.Message ID: @.***>

rstrouse commented 1 year ago

I didn’t get the screenshot. I mean to check it with i2cdetect to see if it shows up there.

seaverd commented 1 year ago

Yes, i2cdetect saw all 3 of my devices. Megabas, multi relay board and smart fan.

Here is previous screenshot and results of i2cdetect -y 1 IMG_3055

IMG_3054

rstrouse commented 1 year ago

Actually you have the SmartFan and the Relay 8 addresses reversed. That is why it is able to read the registers at that address and not report errors.

seaverd commented 1 year ago

OMG, such a foolish mistake. Reversed them and all works as expected. THANK YOU!

On Fri, Oct 6, 2023 at 12:28 PM rstrouse @.***> wrote:

Actually you have the SmartFan and the Relay 8 addresses reversed. That is why it is able to read the registers at that address and not report errors.

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/relayEquipmentManager/issues/53#issuecomment-1751058423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU53BIDAJDO5EI7GEHEK63X6AWSXAVCNFSM6AAAAAA5UV7DK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGA2TQNBSGM . You are receiving this because you authored the thread.Message ID: @.***>