Re: [Emc-users] Serial hal

2014-06-11 Thread Kirk Wallace
On 06/10/2014 06:52 PM, Trần Ngọc Quân wrote: > Hello all, > My previous question [1] is not clear. > > My idea is create hal drive (hal_serial) for pc com port: > PC <=COM=> Microcontrol board (MC51 for example) > > Protocol: > - PC read 8bits from Microcontrol boad, for read status of limit switc

Re: [Emc-users] Serial hal

2014-06-10 Thread TJoseph Powderly
Hello Trần, this may be of use: a user space ( not realtime ) serial communication was described here. http://emergent.unpythonic.net/01198594294 it uses python-serial and talked usb to ardduino but it may be a framework for COMM to 8051 for you. python-serial is available thru Synaptic pkg mana

Re: [Emc-users] Serial hal

2014-06-10 Thread Marius Alksnys
Maybe you should take a look at contributed components (these are not using COM serial port, but they do extend I/O) like: 2.2.1.1. Arduino: ADC, PWM, and digital I/O 2.2.1.2. USB HID device interface - hidcomp 2.2.1.8. Latching Shift Register I/O as a Port Expander at http://wiki.linuxcnc.org/cg

Re: [Emc-users] Serial hal

2014-06-10 Thread Sebastian Kuzminsky
On 06/10/2014 07:52 PM, Trần Ngọc Quân wrote: > Hello all, > My previous question [1] is not clear. > > My idea is create hal drive (hal_serial) for pc com port: > PC <=COM=> Microcontrol board (MC51 for example) > > Protocol: > - PC read 8bits from Microcontrol boad, for read status of limit swi

[Emc-users] Serial hal

2014-06-10 Thread Trần Ngọc Quân
Hello all, My previous question [1] is not clear. My idea is create hal drive (hal_serial) for pc com port: PC <=COM=> Microcontrol board (MC51 for example) Protocol: - PC read 8bits from Microcontrol boad, for read status of limit switch, emergency stop button etc. - PC write 8bits to Microcontr