Replies: 7 comments 19 replies
-
Also, here is a replay with the USB adapter installed and A+/B- connections attached to the bus. No changes were made to the communication configuration in dashboard. When I plug the USB adapter in, like magic the RS-485 port on MEGA-BAS works. I would prefer not to run with a USB adapter. I assume if the MEGA-BAS RS-485 isn't working, that the 8-Relays RS-485 wont work either (Must be on Pi side). Any help/direction would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
-
Please perform the following steps.
|
Beta Was this translation helpful? Give feedback.
-
Alright, first try without swapping wires: rs485 config: I powered down and swapped A/B positions: started up and confirmed rs-config: |
Beta Was this translation helpful? Give feedback.
-
Just to better visualize the issue, I plugged the USB back in and wired it into the RS-485 BUS: I did not setup any additional devices, or change the port to USB: |
Beta Was this translation helpful? Give feedback.
-
I'm completely puzzled @craywm. Can I suggest to start clean? Format/reload the RPi and start from scratch? Follow the wiki guides, or my #801 thread and if it still doesn't work, then maybe there is something wrong with either your RPi or the Building Automation Hat. |
Beta Was this translation helpful? Give feedback.
-
Yes
…Sent from my iPhone
On Aug 27, 2023, at 5:52 PM, craywm ***@***.***> wrote:
I did not install any drivers for the usb. I tried the mega-bad first before I even bought the adapter. So no drivers for the usb were installed (beyond what Rasbian is loaded with). I’m using the raspberry pi imager to flash the OS. I also started default without any Sequent directories cloned onto the RPi.
Thank you all for taking a look! I’ll try and start from scratch documenting the setup (maybe my mistake can be found!) If all else fails, USB for the win! Something does have me thinking I should just plop the 8-Relays on there without the Mega-bas and test the RS-485 pass through there (before I reflash).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
*I realized I posted this on rstrouse's dashboard page earlier, so I moved to here.
Hello all! I've been researching Pool automation the past few seasons, and late this season decided to pull the trigger on the Nixie standalone controller. I decided to begin late in the season instead of in off season due to my pump beginning to overheat, and replacement seems immanent. I started slow with a proof of concept, and ordered my panel BOM to begin building my outdoor station. Here's my pool info:
Body Specs:
Location: Lexington, KY (May - Sept season)
Capacity: 16,500 gal
Automation: None
Pump: Hayward Superpump 3/4 HP
Filter: Hayward 300lb Cap. sand filter
Sanitation: Pentair IC40 with PC100 power station
Nixie Standalone Pool Controller specs:
Processor: RPi 4 model B (8GB)
DAQ/COMM: Sequent MEGA-BAS (must be V.4)
Power control: Sequent 8-RELAYS (v.5)
Peripheral
Temperature: 10k Pool temp sensor (for testing - will add more in future)
Issue back ground:
I setup the raspberry Pi, and installed REM, Dashpanel, and pool controller to the RPi. Everything fired up and was straight forward. The last step before I pulled the trigger on the full panel was to test the RS-485 communication to the salt cell. The interface I initially used was communication through the MEGA-BAS RS-485 pass through. This was not successful (not setup in chemistry) so I ordered a physical USB RS-485 adapter. I wired the USB adapter onto a bus with the MEGA-BAS RS-485 connections. This is where things got... weird.
Nixie is using the dev/ttyS0 for RS-485 communication. Since I wired the USB adapter on the bus, I set dev/ttyUSB0 as the Aux port, and adjusted the chlorinator port in chemistry for testing. After attaching the USB adapter, communication began immediately through the ttyS0 port, and worked very well. After confirming that the ttyUSB0 port was unnecessary, I removed it and restarted everything. There was no communication when I restarted with the chlorinator. Thinking it was a wiring issue, I replaced wires, reseated them and restriped many times to no avail. I decided to re-create the original setup and it fired right up. This time, I decided to manipulate the communication from the COMMs side. I left only the ttyS0 as the primary, and installed the USB adapter to the pi, and wired into the RS-485 bus. The ttyUSB0 was not setup in dashpanel. I started everything up, and communication began to flow through the ttyS0 primary port.
This is where I thought I had success (maybe just a lose wire that was finally corrected), so I removed the female mating connector block from my USB RS485 adapter, and communication stopped. I then re-inserted it, and removed the USB from the RPi. Communication stopped again. Thinking maybe the Pi devices were mapped incorrectly, I decided to remove the female mating connector from the MEGA-BAS (disconnect RS-485 from MEGA-BAS), and again communication stopped. I was very confused by this. I setup a Aux Port for the USB adapter and setup an additional IC40 fired it up and both IC40 communications began to work.
It appears that the USB adapter must be plugged in for the RS-485 to work from the MEGA-BAS. I should have taken screenshots..
Anyway, I figured I had installed something incorrectly, so I performed a backup, reflash, and reload on the SD card, reinstalled everything (decided not to use the USB adapter), and I still cannot get the MEGA-BAS RS-485 pass through to work. I think some other members had similar issues (#581/#804).
I tried to troubleshoot on my own, but dont know where to start for the RS-485 communication. I've narrowed it down to a possible problem with these newer MEGA-BAS versions, or some silly error I made during setup. Here is a replay as well:
replay.zip
Has anyone else dealt with an issue like this, or know where I can start troubleshooting?
Beta Was this translation helpful? Give feedback.
All reactions