On Tuesday 12 June 2012 16:18:18 andy pugh wrote: > Have you tried using hal_input to read it? It might just work if the > USB chip looks like a HID device at all. No, I do not have tried this because this is not a hid device. This is a usb to rs232 converter and detaching the ftdi_sio driver when opening the device in spi mode the entry /dev/ttyUSBx vanishes. This is done in libmpsse. BTW libmpsse can also do i2c.
I prefer to keep wires with analog voltage short. On digital information exchange usually crc's are used to detect errors. And because an analog voltage does not carry a crc I prefer to have two wires with the same information to detect errors comparing the two analog values. If the extruder is in a short distance from the lcnc you can use bitbang i2c/spi from parallel port. But in case you have something more far (tool exchanger etc) and you want to avoid many long wires usually some busses are used. 1. USB Assume I attach a spi device to ftdixxxx and have a userspace non rt program which can read/write to the device. What do you suggest to exchange data with hal for not really time critical data (like this case of temperature control of the extruder head)? 2. Eth Assume I attach a spi device to a Rasperry Pi because the cable length is a bit longer and development is much more comfortable. Here runs a program as a server which opens a tcp or udp port. How to communicate with this program (with sockets) and transfer some data to hal? Joachim ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users