Replies: 8 comments 22 replies
-
The collision detection works like this. The software is constantly monitoring the serial port for inbound data. If nothing is communicating then no bytes will be read from it. It should be silent. Then when bytes come in the software looks for preamble bytes indicating an incoming message frame. In your case this should be [16, 2]. If it does not find it in the max packet length then these bytes are determined to be noise and the buffered byte stream tosses those bytes waiting for a preamble. Expand the pm2 monitor console and at the bottom in the metadata section you should see Node.js version. Which version are you seeing there? |
Beta Was this translation helpful? Give feedback.
-
Have you tried testing with a different RS485 device other than the chlorinator? Do you have a pump you can connect to the bus? Just trying to eliminate possibilities. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I am experiencing the identical symptoms. I'm receiving packets, but 100% transmit errors. @craywm Did you find a resolution? |
Beta Was this translation helpful? Give feedback.
-
@tagyoureit I tried everything you suggested: The comms page shows bytes are being received: But Message Manager only shows outgoing messages:
The A USB adapter arrived today, going to use it to verify wiring tomorrow while the sun is shining |
Beta Was this translation helpful? Give feedback.
-
@jamestalmage i ended up going with the RS-485 on the 8-Relays. You should not have an issue with the USB adapter if it is the same issue as mine. I do think there’s some interference on the board causing the issue. I was able to send to my PC through the megabas, but not receive, data would come, but it was corrupted. Change your log settings to debug and check PC2 monit for njsPC tossing data packets incoming. This should indicate that data is reaching the pi from through the megabas RS-485 transceiver, however it is corrupted. Just FYI, if you go with the 8relays transceiver (assuming you have one), remove jumpers from the Mega-BAs RS-485 Tx/Rx pins (as mentioned above) to isolate the Megabas from the GPIO pins. This is where I spun my wheels for a bit, removed jumpers and smooth sailing with 8-Relays. |
Beta Was this translation helpful? Give feedback.
-
@rstrouse @craywm Turns out my issue was miswiring on the pump end. Now to get the AquaCal heater working. |
Beta Was this translation helpful? Give feedback.
-
I have experienced a similar issue with my mega-bas v4. I have an intelliflo vsf pump and ic40. when either are connected to the mega-bas rs485, they work fine with zero failure rate. However, when i connect both of them at the same time, i get 100% failure send rate. I swapped wires, ensured good connections, added enable_uart=1 to boot config, rs485 pass through enabled, verified correct rpi interface settings. I currently have the pump connected to the mega-bas and the ic40 connected to a USB adapter and all is working well. Any thoughts on why both will not work together on the mega-bas? |
Beta Was this translation helpful? Give feedback.
-
*Continuation of a previous #841 discussion. Please reference back to that discussion for additional back ground information.
I re-imaged the RPi with fresh image utilizing this guide. I only utilized for RPi setup (basic)
I then enabled VNC and headless resolution (remote function):
I decided to utilize this guide to install the pre-requisites, REM, Poolcontroller and Dashboard. All the guides are pretty much the same, and I'm referencing here to simply point back to what was entered into the terminal for installation. I did also install pm2 and lograte and setup to start on boot.
Setup Nixie with this
Setup MEGA-BAS in REM using this guide.
just a note here, my 8-RELAYS HAT was not automatically identified:
Input Long/Lat into Nixie, setup body / filter data, setup pump Control from Google Home? #1 (Just because).
Setup RS-485 Comms (more detailed):
Here is what my RPi config looks like:
.
Turned on Serial Port:
At this point, I'm fae enough along in setup to utilize the RS-485 comms and confirm communication. Navigating to Comms tab showed by default (I did not change anything):
I have not installed a USB device yet. Selected ttyS0 device:
Navigated to Chemistry and setup a chlorinator:
Plugged everything in outside:
I'm getting the same condition. I have not yet tried to plug in a USB to see if that will allow data to flow. It should be noted that I sent some data from the Mega-bas RS-485 port to my computer to confirm that communication was OK (and it was). I initially left the jumpers on the 8-RELAYS, but removed. I also tried to swap the wires with no success. The inbound bytes are being tossed due to some unrecoverable collision. It should also be noted that I am using no device overlays, and have not modified any config files.
I can remove the 8-relays HAT and configyre. Also, I can set up with USB to see if packet by packet is the same, or if collisions are occuring on the Mega-bas side and not the USB side. does anyone have suggestions to move forward trouble shooting, or identified errors in my above setup?
Beta Was this translation helpful? Give feedback.
All reactions