Coder Social home page Coder Social logo

Lost i2c again about relayequipmentmanager HOT 6 CLOSED

DrJeff avatar DrJeff commented on August 15, 2024
Lost i2c again

from relayequipmentmanager.

Comments (6)

rstrouse avatar rstrouse commented on August 15, 2024 1

While I am often wrong I am rarely incorrect. Sometimes though I am just mistaken. Glad you got it working.

from relayequipmentmanager.

rstrouse avatar rstrouse commented on August 15, 2024

There are a couple of things going on here. First if this is from a period when the server is starting up, the Raspberry Pi can be tardy responding to the requests as it starts up. This is normal because it does some wacky stuff as it puts the fssys stuff together. It was a real head scratcher. REM is persistent though and will eventually pick it up. So if the messages are during startup you should ignore them until the pi has stabilized. Also, turn off Bluetooth and Serial Console as these delay the whole thing if you have them on.

i2cdetect does some broadcom stuff when it fails fssys and while you can detect the device address it will not communicate with it using a buffer. So it is possible to get a detection of addresses that cannot be communicated with.

As for backups. Under the burger menu in dashPanel there is now a Backups tab that will auto backup the REM server on an interval. This backs up to the njsPC backups directory and will keep as many backups as you have selected. The restore function while it works for njsPC it should not yet be trusted until we have had some time to test it in every environment. It also does not restore REM servers yet. The settings below will keep nearly 4 months of backups. If you manually back up, these will stick around until you delete them from the restore option.
image

And now a note on SD cards. Let me start off by saying I hate them. First you should never use an SD card that has a slow write speed. U3 or better. I also tend to buy the larger ones and 32Gb seems to be the minimum (for me 128Gb EVO Select). The higher endurance cards seem to use some trim to make sure erroneous writes due to power fade get trimmed from the fs.

from relayequipmentmanager.

DrJeff avatar DrJeff commented on August 15, 2024

I just rebuilt REM from scratch I had some stragglers that I didn't like anyways and it is working now.
I have ran Pi s' on ssd but did't want to for the pool equipment.
I really like the backup option from the menu 👍🏽

from relayequipmentmanager.

DrJeff avatar DrJeff commented on August 15, 2024

@rstrouse Need your help again...
Ok, I tried re installing or doing the REM setup but my board isn't acting right. Errors and no control to the relays here are the logs from REM and the Capture data from njsPC
consoleLog(2021-09-26_22-09-43).log.zip
replay.zip

from relayequipmentmanager.

rstrouse avatar rstrouse commented on August 15, 2024

Ok so all the devices appear to read normally on the I2c bus with the exception of one or more relays. I2c isn't failing as much as the relays are not communicating anymore. REM is being persistent and asks repeatedly for response.

So this leads me to believe that there is one of 3 things going on here.
1, You have a wiring issue where the two wire comms (SDA/SCL) to the relay controller is having issues. This can be due to poor connections or the wire length. A remedy sometimes is to install an active terminator such as LCT4311.
2. The relay controller is attempting to use clock stretching. Raspberry Pi cannot do this in hardware and you must either use an i2C bus overlay or reduce the clock speed of the hardware bus.
3. The relay controller is failing. Remote I/O error is an error that occurs when the endpoint is no longer there. This is not like suddenly REM decided to stop talking to the device. Communication is still going on. The relay and more importantly the i2c controller on the relay decided not to respond.

from relayequipmentmanager.

DrJeff avatar DrJeff commented on August 15, 2024

Ok so all the devices appear to read normally on the I2c bus with the exception of one or more relays. I2c isn't failing as much as the relays are not communicating anymore. REM is being persistent and asks repeatedly for response.

Yes you are correct like always. It was a loose wire on the I2c side, guess I need to clean that part up!
Thanks again! :grin

from relayequipmentmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.