Serial port setting on Rpi model 3B?

26 views
Skip to first unread message

cobrachedz

unread,
Feb 4, 2019, 12:38:53 PM2/4/19
to PrivateEyePi
hi,

following up from last week, i'm still finding a lot of sensor messages coming in that are short.  I also had one crash with the system reporting that the serial port was in use.

I have recently moved from a model 2 to a 3b PI and wondered if this was the cause?  Could it be interuptions/something else using the serial port?

i found this error: SError: [Errno 11] Resource temporarily unavailable serial

I've double checked the settings for the serial port:

Been into raspi-config and done:
Interfacing options>
  Serial>
                 Would you like a login shell to be accessible over serial?   NO
                 Would you like the serial port hardware to be enabled?     YES


This is the bottom of my /boot/config.txt

# Enable audio (loads snd_bcm2835)
dtparam
=audio=on
enable_uart
=1


dtoverlay
=pi3-disable-bt


Could i be missing something...otherwise i'm unsure why my code to handle short messages is working so hard, today i got 3 messages out of alignment come through?

Any help or suggestions of things to check very welcome.

cheers

Graham


Gadjet Nut

unread,
Feb 5, 2019, 7:24:22 AM2/5/19
to cobrachedz, PrivateEyePi
That error means some other process was using the serial port. Sounds like multiple apps are competing for the serial port. Make sure you are not running multiple instances of your code. Only one app can use the serial port at a time otherwise competing apps will receive only partial data. 
Reply all
Reply to author
Forward
0 new messages