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
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
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
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
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