[etherlab-users] Communication with serial device

Florian Pose fp at igh-essen.com
Sat May 17 11:26:47 CEST 2008


Hi,

On Fri, May 16, 2008 at 01:45:44PM +0200, Erwin Burgstaller wrote:
> I still have not much clue how the communication with a serial device is
> thought to be. How do I configure the interface from the real time
> module, for example baud rate and all that stuff?

the baud rate parameters etc. have to be configured via Sdos (i. e. with
ecrt_slave_config_sdoX(), see the documentation of the slave.

> How do I send and receive data? There are three modes of
> pdo-mapping. Default is the big mapping with status word for example for
> reading at 3102:01 and data bytes from 3102:02 to 3102:17.

You can easily change the mapping to the one you need with the
ecrt_slave_config_pdos() function (see the minimal example and the
documentation in ecrt.h). The exchange of the serial data is done with
some kind of handshaking, see the slave doc for that.

I read the slave docs, but never took one into operation, yet. Please
post a short note about your success... ;-)

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list