Windows GUI/Controller for MySensors
-
Does anyone know how to allow multiple TCP connections forwarded to one MYS tty port? This socat command blocks second TCP connection until first one disconnected.
I just want to connect MYSController using TCP without disconnecting my custom MQTT<=>serial controller script. I'm using RPi with USB-serial gateway.
P.S. @tekka is there any chances that MQTT access will be implemented in MYSController?
@techRH said:
$ sudo socat tcp-l:5003,reuseaddr,fork file:/dev/mySensorsCOM,nonblock,waitlock=/var/run/mySensorsCOM.lock
@robosensor I wrote a bridge to use on the Linino side of the Arduino Yun for this:
https://github.com/peterdey/Yun-Linino-NewBridgeBut there's no reason you couldn't use this on an rPi - you'll probably just need to turn the baud rate down to 115200.
-
@tekka great work! thank you for sharing this.
Your controller and great contribution had me quickly started with mysensors. I am interested in a way to do OTA updates using MYSController via api or a script call or even rewriting the logic in an outside code. I'll try to explain the need based on my setup below.Given that I am using jeedom right now as a controller, but sadly it doesn't seem to support yet OTA updates. I'd like to be able to reuse or even contribute to this feature and I'd appreciate pointers to start doing that.
My setup has it that jeedom runs off a raspi and has a mysensors serial gateway attached. (1 to 2 Watts draw for this setup). MYSController can work as an ethernet relay gateway, but if I understand correctly I have to run it on windows (more moving parts), or a much hungrier box than my raspi.Is there a way I can make that work somehow? I am ready and appreciate any type of suggestions with the current setup I have or an evolution which goes into that direction.
-
I thought the socat command is to slow in switching so i have created a python script which will readout the mysensors serial GW and sends the data to a virtual serial port to connect to openhab and a TCP socket for the MySensors controller.
https://github.com/Rutger798/serial_to_serial_and_tcp/blob/master/serial_to_serial_and_tcp.py
-
How do i use MYSController with a Raspberry Pi ?
I have a RPi2 with a NRF24 radio as a gateway and want to troubleshoot some communication issues i have been having. I usually log into the RPi2 via ssh to make adjustments.
Can I just download the files and rund the .exe via command-line?Thanks
-
I think it's windows software only. If you want to use it this way you should make you gateway device accessible via ethernet, maybe socat or nodered is an option for you.
-
@Mark-Swift : If you're happy to modify the MySensors library in an unsupported way, I've added a logMessage function to transmit text/debug messages from remote nodes:
https://github.com/peterdey/MySensors-Arduino/commit/f5f339b71620ec3cd896304a2ca6aba40ad40218Found it useful, particularly in conjunction with MYSController OTA firmware updates.
@pdey said:
@Mark-Swift : If you're happy to modify the MySensors library in an unsupported way, I've added a logMessage function to transmit text/debug messages from remote nodes:
https://github.com/peterdey/MySensors-Arduino/commit/f5f339b71620ec3cd896304a2ca6aba40ad40218Found it useful, particularly in conjunction with MYSController OTA firmware updates.
is it possible to use with mysensor 2.0 API ?
-
How do I get MYSController to save info about each node?
I always have to set "battery-powered" after each upload and it does not save sketch name etc. -
Ok this might be a realy stupid question but im what you call a "nuub" ;)
If i want to monitor my current setup (serial gateway on a pi3) on windows/mint. Do i build another gateway and plug it in the pc?
Sorry if i missed the instructions on this
-
Ok this might be a realy stupid question but im what you call a "nuub" ;)
If i want to monitor my current setup (serial gateway on a pi3) on windows/mint. Do i build another gateway and plug it in the pc?
Sorry if i missed the instructions on this
-
@meanmrgreen no, you can only have one GW in your setup. You could connect your GW to the PC, configure it for serial input, enable GW mode and have your rpi controller pointing at it (IP).
@tekka
How about I'f i replace my serial with a Ethernet gw?Do not want my pc running all the time. Just to debug
-
Hi @tekka - I'm currently running OpenHAB connected to mysensors by a GatewayW5100MQTTClient gateway and at the moment I have to manual upgrades to the nodes by disconnecting them and plugging them into the PC and recompiling all the software for each node. Would there be any way around this setup? I would like to keep OpenHAB as my controller and I really like the MQTT Client software too. Its simple and it just works for me. However, i would be open to change from MQTT if needed.
What is your recommendation of implementing MYScontroller to use for OTA firmware updates only?
-
@tekka how do I initiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Thanks in advance.
-
@Anduril said in Windows GUI/Controller for MySensors:
itiate a reboot of a node from gateway side? I don't know how, but it's needed for updating OTA. Th
Right click on the node and than "reboot"
-
@tekka ok and whats the way to deal with sleeping nodes? Do I have to add a
wait(xx)to receive reboot commands?@Anduril The solution is to use smart sleep. If you are on MySensors 2.1.x, use:
sleep(xyz_MS, true);This will issue a heartbeat message followed by a short wait() interval to process incoming messages, and finally send the node to sleep. The heartbeat message triggers the release of pending messages (i.e. reboot request) in MYSController (node has to be defined as battery-powered / sleeping node).
In the upcoming MySensors 2.2.0 release we will introduce a dedicated sleep intention message.
-
@tekka thanks for your hint. Is smartsleep supported if the controller (pimatic) does not? So do I get problems when using withoug MYSController for debug?
And another thing is that this node tries to save power and only sends updates if values have changed. So using smartsleep and sending a messag every sleep cycle would be against that. Can I simply put a
wait(50)after the first message sending is triggered? What would be the necessary time to dowait(x)?