Re: USB serial on Raspberry Pi
Posted: Thu Nov 03, 2022 11:01 pm
Hi,
The first character of the string will be '0', but this is 0x30 (or 48 decimal) not 0. Have a look at an ASCII table.
It is getting embarrasing, i should have (did) know that but I think with all the trouble getting this to work I am not thinking well.
I am stumped now, I found a comment in the RPI_CAL_UART file regards removing the console from cmdline.txt. and adding enable_uart=1. I aloso found somewhere that mentions disabling bluetooth as that uses the port.
I have done all that but still nothing.
I have added a test for data in the first element of the string and nothing, also the length of the incoming string is 0.
This is the info on the pi showing the device is attached to ttyusb0. Is there a way I can confirm the symlink is correct?
Bob
The first character of the string will be '0', but this is 0x30 (or 48 decimal) not 0. Have a look at an ASCII table.
It is getting embarrasing, i should have (did) know that but I think with all the trouble getting this to work I am not thinking well.
I am stumped now, I found a comment in the RPI_CAL_UART file regards removing the console from cmdline.txt. and adding enable_uart=1. I aloso found somewhere that mentions disabling bluetooth as that uses the port.
I have done all that but still nothing.
I have added a test for data in the first element of the string and nothing, also the length of the incoming string is 0.
This is the info on the pi showing the device is attached to ttyusb0. Is there a way I can confirm the symlink is correct?
Bob