Timeline for Cannot get Serial working
Current License: CC BY-SA 4.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2018 at 6:15 | comment | added | Jasper | I'm also not sure what the issue is. Maybe it's my cheap Chinese nano that's causing the problems. Any way, I know for sure that now it's connected to other pins and using SoftwareSerial, it all works the way it should. I have a "real" uno lying around as well, will give it a go on that one too. | |
Aug 27, 2018 at 17:23 | vote | accept | Jasper | ||
Aug 27, 2018 at 14:49 | comment | added | Juraj♦ | @Jot, if it works in manufactures example, it should be strong enough | |
Aug 27, 2018 at 14:46 | comment | added | Jot | @Juraj, pin 0 and 1 are connected to the usb-serial chip with a resistor. The signals can be overridden by something else, but we don't know how strong the tx signal from the module is. | |
Aug 27, 2018 at 14:19 | comment | added | Juraj♦ | how did SoftwareSerial help if you need only RX to connect to the device and you are not sending anything over USB to Uno | |
Aug 27, 2018 at 14:03 | answer | added | jose can u c | timeline score: 1 | |
Aug 27, 2018 at 14:00 | comment | added | Jasper | @josecanuc if you post that as an answer, I can give you the points you deserve :) | |
Aug 27, 2018 at 13:27 | comment | added | jose can u c |
So, you have the module connected to the Nano pins 1 and 2, and are also trying to communicate with the PC via the Serial object and serial monitor? There is a USB/serial converter chip on the Nano that is likely conflicting with your module. You can try SoftwareSerial to get a bit-banged serial port for communicating with the module on some other pins.
|
|
Aug 27, 2018 at 12:55 | comment | added | Juraj♦ | sorry about that 2400 baud. it is in the other weater station question | |
Aug 27, 2018 at 12:23 | comment | added | st2000 | @Jasper, there is a saying that the RS232 protocol (never mind the physical bit) is the standard that is not a standard. I would recommend you discover this your self by abandoning the embedded world and connect your weather "thing" to a computer with a configurable application such as RealTerm. Once you figured out the proper configuration you can work your self back to the embedded world. | |
Aug 27, 2018 at 12:02 | history | edited | Jasper | CC BY-SA 4.0 |
Better described the issue.
|
Aug 27, 2018 at 11:27 | comment | added | Jasper | Its connected yes, I tried disconnecting the TX from nano (so only TX module => RX nano connected) but that gives the same result, available return 0. | |
Aug 27, 2018 at 11:06 | comment | added | Juraj♦ | is the RX of the device connected to TX of Nano? then Serial output of Nano is send to the device | |
Aug 27, 2018 at 11:04 | comment | added | Jasper |
See the gist, the sample code takes whats coming in and prints it, nothing more. But as there is no code coming in at all, there's no prints as well. If I do Serial.println , is that being sent to the device as well? I have no clue how it would respond to that.
|
|
Aug 27, 2018 at 11:01 | comment | added | Juraj♦ | so you copy data from Serial to Serial echoing them to the device in ascii form? what could be the reaction of the device? | |
Aug 27, 2018 at 11:00 | comment | added | Jasper | Yeah the actual check is Serial.available() > 0 (which returns false). | |
Aug 27, 2018 at 10:59 | comment | added | Juraj♦ |
available() returns count of available data.
|
|
Aug 27, 2018 at 10:46 | comment | added | Jasper | @Majenko you're right, I was mixing up test results. With the cables connected the right way (RX-TX, TX-RX) I'm actually not getting the contents on the serial monitor. But the end result stays the same: Serial.available returns false and there's no data incoming, even though having the wires the other way around seems to indicate data is being sent. | |
Aug 27, 2018 at 10:35 | comment | added | Majenko | If the serial terminal is showing you the data then it means you have the TX and RX pins connected the wrong way around. | |
Aug 27, 2018 at 10:16 | comment | added | Jasper | No voltage is correct, it's hooked to 5V on the nano. | |
Aug 27, 2018 at 9:58 | comment | added | st2000 | 1st thought, Nano boards come in 3 and 5 volt versions. The weather station clearly says it is a 5 volt device. Maybe you have the wrong Nano? | |
Aug 27, 2018 at 9:42 | history | asked | Jasper | CC BY-SA 4.0 |