Gateway setup for MCv2 using MySensors
This question demonstrated just how much I don't know, but I am not able to get a gateway setup for MC Server on RPi. I don't think I even understand the basics, but I will explain what I have tried and see if it makes sense.
I have installed Arduino IDE on my pi and have added the MySensor library. Then, I opened the GatewaySerial example and looked it over. I prefer to use 115200 baud so I changed that, but otherwise made no changes and compiled the sketch to my Arduino nano. The serial output is as follows:
0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
0;255;3;0;9;15 TSM:INIT:TSP OK
0;255;3;0;9;18 TSM:INIT:GW MODE
0;255;3;0;9;24 MCO:REG:NOT NEEDED
0;255;3;0;14;Gateway startup complete.
0;255;3;0;9;35 MCO:BGN:INIT OK,TSP=1
0;255;3;0;9;38 TSM:READY:NWD REQ
This leads me to believe that Arduino IDE believes the gateway is working.
At that point, I go over to MyController on the same machine and attempt to add a serial gateway. I have named it "Serial02" simply because it is the second attempt.
Description - empty
it is enabled
reconnect delay is 30s
Queue Failed Messages is off
Labels, if I understand them, are used to help organize my devices so I have named the room under key "analytical" and the Value refers to the server "pi1". I'd guess these might need to be changed, but I don't know what makes sense for them even after looking over the documentation on the power of labels.
Type is set to MySensor V2
Internal Message Ack is off
Stream Message Ack is off
Retry count is 3
Timeout is 500 ms
Protocal Type is Serial
Transmit Pre Delay is 10 ms
Port Name, which is confirmed in terminal and Arduino IDE is /dev/ttyUSB0
baud rate is 115200, which matches the arduino sketch
and message logger is set to none.
Please help me figure this out, I'm not sure what questions to even ask at this point. I'll keep working on it, but any insights would be greatly appreciated.
@wint0178 what is the labels do you use in
gateway? you have to use that label in your gateway settings label section.
@jkandasa my labels are not changed from the default "location: server". Do you recommend making a change to those? I do not anticipate using more than one server. Also, I notice that the disabled line in gateway is followed by "false" should I change that to "true" to activate gateways or does that set this RPi up as a gateway?
Arduino IDE must be closed before launching MyController , the IDE keeps the USB port for itself?