lopy to raspberry pi serial communication issues
-
@robert-hh in last reply is the output with 9600 baud
-
Have you switch off WiFi functionality of the Pi3?
Once upon a time the Pi3 had trouble to run serial and WiFi at the same time. I don't know if they were able to fix it by software in the past 2.5 years.
-
@crumble I deactivate wifi from /boot/config.txt but the output is still in the same manner
-
Have you:
TX <-> RX
RX <-> TX
gnd <-> gnd -
core fequency has to be set as well:
[https://www.raspberrypi.org/forums/viewtopic.php?t=213499](Link Adresse)
[https://tech.scargill.net/raspberry-pi-3-serial/](Link Adresse) -
@crumble This does not seem to be a frequency or baud rate issue. In that case a lot of other characters would show up. It looks more like two processes fighting for input from the same device. So the posters script only get part of that.
-
@crumble It looks as if /dev/ttyAMA0 is also used by bluetooth. You could try to disable it.
-
@robert-hh it s disable
-
@crumble thanks, i tried...no difference
-
Imho you problem originates in the use of "read(20)". You could try to send b'33.5|xxxxx|xxx|xxx \n' or after writing r on the lopy you add a uart1.write(chr(13)).
On the Raspi you read rec with rec=ser.readline().
So if one or more chars go missing you don't lose your intended string formatting for the other data.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login