Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 10:58:50 PM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  KUKA Robots (Moderators: Werner Hampel, kai_n, MartinH)
| | |-+  CRead and CWrite
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: CRead and CWrite  (Read 318 times)
RoboticsMan
Newbie
*
Offline Offline

Posts: 24


« on: November 14, 2007, 10:22:05 AM »

Hi

I am working on a project, where we use the CRead and CWrite commands to communicate with a pc through a serial connection. We experience problems with lost bytes, i.e. sometimes some parts of the strings sent from the pc are lost. I have found out that is caused by a input buffer overflow in the UART of the robot controller. This problem can be avoided if it is possible to enable hardware flow control (RTS/CTS) on the serial port of the robot. Does anyone know whether this is possible, and if so, how to do it?

Thanks in advance!
Logged
jaraviensis
Newbie
*
Offline Offline

Gender: Male
Posts: 18


« Reply #1 on: November 14, 2007, 10:41:56 PM »


I don't know whether RTS/CTS lines are possible to control or not; you can try enabling XON/XOFF (software flow control) in both devices (robot and PC).

Your data string must not contain neither the XON nor the XOFF characters in order the communication to work properly.

Regards,
V.
Logged
fishboy
Newbie
*
Offline Offline

Posts: 17



« Reply #2 on: November 26, 2007, 12:08:20 PM »

You can adjust the buffer size in SERIAL.INI
Logged

The futures bright, the futures orange.
RoboticsMan
Newbie
*
Offline Offline

Posts: 24


« Reply #3 on: November 26, 2007, 01:12:53 PM »

It is correct that I could adjust the buffer size in the serial.ini file. But I think that the size of the buffer on the UART is the real problem, and as far as I know, this size is 16 bytes and cannot be adjusted.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!