CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue Oct 17, 2017 7:25 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Apr 27, 2017 9:22 am 
Offline

Joined: Thu Apr 13, 2017 8:01 am
Posts: 16
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.


Top
   
PostPosted: Sat Apr 29, 2017 11:33 pm 
Offline

Joined: Thu Apr 13, 2017 8:01 am
Posts: 16
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


Top
   
PostPosted: Sun Apr 30, 2017 6:59 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159
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


Top
   
PostPosted: Fri May 05, 2017 10:09 am 
Offline

Joined: Thu Apr 13, 2017 8:01 am
Posts: 16
Edwin Schwellinger wrote:
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


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Tue May 09, 2017 6:09 am 
Offline

Joined: Thu Apr 13, 2017 8:01 am
Posts: 16
I think no one have idea about it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited