I am using SerialCom in raspberry pi.
Working of serialcom is OK.
Open port is OK.
Writing port is OK.
Reading port is OK.
I can get data from my sensor, I can send data to my sensor.
But,
When i try to close port,
I get xBussy warning always.
I have if state with start variable.
IF start TRUE THEN
com.open execute is OK ( port is opening )
com.write execute is OK ( i can send data to sensor )
com.read execute is OK ( i can get data from sensor )
ELSE
com.close execute is not OK ( i always get close bussy warning )
Could you please help me.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hm.. would recommend to close the com port before removing the USB Serial...
and /etc/udev/rules.d/serial-symlinks.rules you need to google for udev to prevent
USB is getting differnt Interface numbers.
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Edwin Schwellinger hat geschrieben:
Hi,
hm.. would recommend to close the com port before removing the USB Serial...
and /etc/udev/rules.d/serial-symlinks.rules you need to google for udev to prevent
USB is getting differnt Interface numbers.
BR
Edwin
Dear Edwin,
I am trying to close the com port before removing the USB Serial.
But as i said, i am getting xBusy error.
I have already linked my usb devices.
I dont understand why comport is not close when i say "close" to the port.
you can see my serial links in attached files
What i need to do
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am using SerialCom in raspberry pi.
Working of serialcom is OK.
Open port is OK.
Writing port is OK.
Reading port is OK.
I can get data from my sensor, I can send data to my sensor.
But,
When i try to close port,
I get xBussy warning always.
I have if state with start variable.
IF start TRUE THEN
com.open execute is OK ( port is opening )
com.write execute is OK ( i can send data to sensor )
com.read execute is OK ( i can get data from sensor )
ELSE
com.close execute is not OK ( i always get close bussy warning )
Could you please help me.
Some one can help me please.
When i unplug USB while raspberry pi is working.
USB port cannot close.
When i plug USB device again, ttyUSB0 can change ttyUSB1.
So, i have to restart raspberry pi.
I need help about it
Hi,
hm.. would recommend to close the com port before removing the USB Serial...
and /etc/udev/rules.d/serial-symlinks.rules you need to google for udev to prevent
USB is getting differnt Interface numbers.
BR
Edwin
Dear Edwin,
I am trying to close the com port before removing the USB Serial.
But as i said, i am getting xBusy error.
I have already linked my usb devices.
I dont understand why comport is not close when i say "close" to the port.
you can see my serial links in attached files
What i need to do
I think no one have idea about it.