Can't send message over arduino serial monitor
-
Ok so I have got a few questions and a problem to solve
I have two arduino unos hooked up with the nrf24l01+ one is running the (arduino button relay) and the other is running the (serial gateway) examples. Once I plug the sensors in I Ioad arduino running the gateway into the serial moniter and it gives me the normal "0;0;3;0;14;Gateway start up complete." then I turn on the (relay button arduino) and it gives me a confirming
"105;255;0;0;18;1.4.1
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1:0
105;255;3;0;6;0
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=14:Relay & Button
105;255;3;0;11;Relay & Button
0;0;3;0;9;read: 105-105-0 s=255,c=3,t=12,pt=0,l=3:1.0
105;255;3;0;12;1.0
0;0;3;0;9;read: 105-105-0 s=1,c=0,t=3,pt=0,l=5:1.4.1
105;1;0;0;3;1.4.1"So, I have good connection and the node is all set up. So then I try and give the node a command to turn on or off, so I type into the serial monitor
105;1;1;1;2;1\n
or 105;1;1;1;2;0\n
or 105;1;0;1;2;1\n
or 105;1;1;0;2;0\n
or 105;0;1;1;2;1\n
or 105;0;1;1;2;0\n
just about every variation that you could imagine and nothing.
The biggest question I have is, Am i supposed to type anything in before 105;1;1;1;2;1\n ?
Is there a method that I am supposed to call up? I am writing directly into the serial monitor form the arduino ide, and am running the 1.4 library of Mysensors. Is there supposed to be anything else with the message"105;1;1;1;2;1\n" to help this message to compute to the relay?
thanks?
-
This post is deleted!
-
the funny thing is I know the everything is hooked up right because everything works through a controller? Has anyone else tried to get this to work just through the serial monitor?
-
What is you newline/cr setting in serial monitor?
Are you actually typing \n ?
\n == enter/carriage return
-
The setting has been "No line Ending" And I tried typing it in both ways with the \n and without (105;1;1;1;2;1\n and 105;1;1;1;2;1). What setting should I be in in the serial monitor and what should I type into the serial monitor?
Thank you so much for responding, I am really interested in all this and it looks like you guys have done such a great job! Thanks!
-
The serial monitor setting should be set to "with line ending".
You should not typ "\n"!
It means that you should press enter on your keyboard.
-
Hello,
2015-01-28 10:36:55 9 255 0 0 18 1.4.1 2015-01-28 10:36:55 9 255 3 0 6 0 2015-01-28 10:36:56 9 255 3 0 11 Relay 2015-01-28 10:36:56 9 255 3 0 12 1.0 2015-01-28 10:36:56 9 1 0 0 3 1.4.1
I can send this:
echo "9;3;1;0;2;1\n" >> /dev/ttyUSB0
On the device serial line I see:
read: 0-0-9 s=3,c=1,t=2,pt=0,l=3:1\n Incoming change for sensor:3, New status: 1
-
You should not typ "\n"!
It means that you should press enter on your keyboard.On Linux I saw that I have to send "\r\n" instead of "\n".
"\r\n" (Carriage return, Line feed) is the Windows return, "\n" only the Linux return.
Suggested Topics
-
Arduino Pro mini + RF 433 MHz as Gateway
General Discussion • 8 Nov 2015, 20:47 • lrtsenar 9 Nov 2015, 02:37 -
MySensors MQTT gateway and serial rs485 sensor node communication
Development • 5 Aug 2017, 06:31 • ehome 5 Aug 2017, 08:15 -
💬 Valden: Heat Pump Controller
OpenHardware.io • 4 Sept 2021, 06:43 • openhardware.io 4 Sept 2021, 06:43 -
💬 CM1k Breakout Board -- Neuromorphic Chip
OpenHardware.io • 3 Sept 2016, 01:24 • openhardware.io 29 Dec 2016, 17:48 -
💬 ESP-LINK ESP8266 WeMos D1 Mini Adapter Board
OpenHardware.io • 7 Nov 2016, 17:03 • openhardware.io 9 Feb 2017, 04:56 -
💬 MDMSNode "Lighting" Rev 1.1
OpenHardware.io • 27 Jul 2017, 06:45 • openhardware.io 30 Nov 2018, 11:56 -
Dimmable LED kitchen light (Arduino, APDS-9960, RGBWW led)
OpenHardware.io • 28 Jul 2016, 16:50 • openhardware.io 10 Nov 2017, 09:24