MrWorf Posted July 27, 2021 Author Posted July 27, 2021 Three things remain now: Update README.md with good step-by-step instructions Write a bridge.service so it will automatically start/restart the bridging tool without needing to ssh See if I can locate a 5V on the ISY and get rid of the extra wallwart But for now, I'm going to relax on the patio 1
larryllix Posted July 27, 2021 Posted July 27, 2021 (edited) 9 hours ago, MrWorf said: Three things remain now: Update README.md with good step-by-step instructions Write a bridge.service so it will automatically start/restart the bridging tool without needing to ssh See if I can locate a 5V on the ISY and get rid of the extra wallwart But for now, I'm going to relax on the patio Here is what I use for my bridging software. I run it every few minutes from cron. Should be able to just substitute your bridge run software into the command line. #!/bin/sh -e #If python3 is not running then start NRbridge.py #Install times to retest hourly using crontab -e if ! pgrep -f "NRbridge.py" > /dev/null then python3 /home/pi/NRbridge/NRbridge.py & fi exit 0 Edited July 27, 2021 by larryllix
MrWorf Posted July 27, 2021 Author Posted July 27, 2021 I actually added a bridge.service and a install.sh script now which will simplify things. Just run install.sh as root and it will place the bridge.py in /opt/serial-bridge and install and enable the service so it runs every time on boot using systemd.
MrWorf Posted July 27, 2021 Author Posted July 27, 2021 Well well well... Seems to work just fine, with USB and WiFi connected. Tonight I think some soldering might be necessary. Heck, maybe I can fit the RPiZ inside the ISY?
austin_john Posted July 28, 2021 Posted July 28, 2021 1 hour ago, MrWorf said: Well well well... Seems to work just fine, with USB and WiFi connected. Tonight I think some soldering might be necessary. Heck, maybe I can fit the RPiZ inside the ISY? That's pretty cool! You work fast!! ?
MrWorf Posted July 28, 2021 Author Posted July 28, 2021 (edited) Uhm... so... I couldn't help myself... Yupp, it fits ... What you're seeing here is the first ISY994i with built-in Raspberry Pi Zero Wireless being powered by the ISY itself. Turned out that the first pin on the top right provides 5V, followed by 3.3V followed by GND, as can be seen here The tricky thing was making sure that the serial bridge was started fast enough when coldbooting the RPi. Goal is to update the README.md with instructions for doing this, since it's crucial for the ISY to be able to find the PLM. If it's too slow to start the bridge, the ISY will just assume nothing is connected. If you can't wait, the following resource should get you started on the right path http://himeshp.blogspot.com/2018/08/fast-boot-with-raspberry-pi.html. I'm pretty sure disabling network would further improve speed, but I like that I can SSH into my RPiZW Edited July 28, 2021 by MrWorf Details on speed 2
hart2hart Posted July 28, 2021 Posted July 28, 2021 Fabulous! I hope to get solder gun out and hook up to duplicate with the2413U. I had been reading about boot times so it’s great that you’ve found excellent resources to get rid of extra processes.
larryllix Posted July 28, 2021 Posted July 28, 2021 Bravoooooooo! With kind regards, MichelThat's what we need for ISY. A delay on bootup timer box.This could allow other things like polyisy or PLM to get fully up to speed first after power failures.Sent from my SM-G781W using Tapatalk
MrWorf Posted July 28, 2021 Author Posted July 28, 2021 Or perhaps the ISY could handle reconnect of both PLM and polyisy? Delays are the worst workaround ever since they don't really solve the issue just the symptom
larryllix Posted July 28, 2021 Posted July 28, 2021 Or perhaps the ISY could handle reconnect of both PLM and polyisy? Delays are the worst workaround ever since they don't really solve the issue just the symptom ISY already supports http(s). It retries already.However. things can get permanently messed up by boxes half prepped and answering requests.Like my ISY994 using an IP address of 0.0.0.0.Why would it retry when it already had an IP address?Many people use expensive power bar, power up sequencers already to ensure proper boot order.Sent from my SM-G781W using Tapatalk
MrWorf Posted July 28, 2021 Author Posted July 28, 2021 Not to nitpick but 0.0.0.0 is not a valid IP address for a device
Brian H Posted July 28, 2021 Posted July 28, 2021 (edited) 3 hours ago, hart2hart said: Fabulous! I hope to get solder gun out and hook up to duplicate with the2413U. I had been reading about boot times so it’s great that you’ve found excellent resources to get rid of extra processes. Soldering gun? That would be an easy way to burn off a run or two. Soldering iron designed for PC Board use. With a small tip is better. Sudden power loss may also cause issues. When the X10 forums where using a Raspberry Pi. For their custom X10 controller. A disorderly shut down of the Raspberry Pi frequently resulted in a corrupt memory card. Edited July 28, 2021 by Brian H
hart2hart Posted July 28, 2021 Posted July 28, 2021 Soldering gun? That would be an easy way to burn off a run or two. Soldering iron designed for PC Board use. With a small tip is better.Typo. Lol
hart2hart Posted July 28, 2021 Posted July 28, 2021 (edited) MrWorf, Thank you for trail blazing. As we have suspected, it works with a 2413U. I added a LampLinc to my backup ISY and then turned it off and on several times. See images. Edited July 28, 2021 by hart2hart 1
austin_john Posted July 30, 2021 Posted July 30, 2021 On 7/27/2021 at 4:15 PM, MrWorf said: I actually added a bridge.service and a install.sh script now which will simplify things. Just run install.sh as root and it will place the bridge.py in /opt/serial-bridge and install and enable the service so it runs every time on boot using systemd. Hi - Thanks again for all of your work! I don't see the install.sh on github? Tomorrow I am going to assemble everything and try to get it running. Just wanted to see if the 'noob' install.sh version is available. ? 1
MrWorf Posted July 31, 2021 Author Posted July 31, 2021 Just know that install will not speed up the boot process, just install all necessary pieces
Steve L Posted August 18, 2021 Posted August 18, 2021 Thanks for all the work on this. I have assembled and connected my own copy. I did notice that the install.sh doesn't make the bridge.py executable, so my first attempt failed. Easy to fix. If I run bridge.py I see: INFO: Found ttyUSB0 port INFO: Found ttyAMA0 port INFO: Bridging between ttyAMA0 and ttyUSB0 So that looks good. But I don't seem to be able to add an Insteon device. Is there something I can do on the ISY to check that the bridge is seen?
MrWorf Posted August 18, 2021 Author Posted August 18, 2021 ISY should complain if it cannot talk to the PLM. But if you select this You should get something like this Maybe the issue is that you switched PLM and haven't migrated to it? Because if you don't migrate, insteon units will ignore your messages.
cygnulls Posted August 19, 2021 Posted August 19, 2021 Add another big Thank You and success story. Rpi 2B, RJ45 to DB9 cable, DB9 RS232 to USB adapter. Almost 'off-the-shelf'. I still had the factory supplied ISY994 serial cable, but tx/rx have to be swapped. I didn't have a DB9 Null Modem adapter so I made a custom cable as you suggested using a patch cord and DB9 connector with screw terminals so no soldering at all. Both the 2448A7 and 2413U work perfectly. And thanks to all of the other contributors on this thread and others for their advice. I'm afraid to see what happens after power cycling, but hopefully this is temporary.
MrBill Posted August 19, 2021 Posted August 19, 2021 14 hours ago, SLionel said: Is there something I can do on the ISY to check that the bridge is seen? Are you aware that the ISY must be rebooted to find a PLM... It only looks for a new connection on startup.
Steve L Posted August 19, 2021 Posted August 19, 2021 I am aware that the ISY needed to be rebooted, but evidently I didn't wait long enough after powering on the Pi. Rebooted the ISY again and it shows connected. Thanks. I still have an Insteon Hub (that works), but wanted to test out adding a new device. 1
Steve L Posted August 19, 2021 Posted August 19, 2021 It works! It works! I could not get the ISY+stick to auto-discover a 2447S dual-band switch, but if I entered the address directly it found it. Thanks! 1
albrandwood Posted August 24, 2021 Posted August 24, 2021 I wonder if it would be possible to use this to create an Insteon IP bridge/proxy between sites? (I'd love to have reliable Insteon coverage in my garage, but neither the powerline nor RF appears to be reliable ... ) My thought would be along the lines of: ISY -> 2413S --(RF)-> 2448 --(RS232)-> RPi --(Ethernet over PowerLine)-> RPi -> 2448 --(RF)-> Light switches (I see a future project for after my Polisy/ISY testing)
Recommended Posts