PortuxG20 interfacing questions: /dev/ttyUSB and 1-wire

Hi,

I recently bought a PortuxG20 starter kit and am now evaluating the possible interfacing options.

1.) USB-serial converters /dev/ttyUSB
As as I have seen, that USB mass storage is supported, I tried to attach a USB-serial converter (http://www.pollin.de/shop/dt/NTY5ODcyOTk-/Computer_und_Zubehoer/Hardware...) which works without problems on my x86 Laptop with openSuSE 11.2.
I see the following on the console when I plug it in
usb 1-1: new full speed USB device using at91_ohci and address 7
usb 1-1: configuration #1 chosen from 1 choice
However, no /dev/ttyUSB? device is created as I would expect.
Do I have to install an extra driver for that?

2.) I have seen from the syslog that there should be some 1-wire support.
That looks promising to me.
Driver for 1-wire Dallas network protocol.
w1_master_driver w1 bus master: Family 28 for 28.000002485b04.94 is not registered.
w1_master_driver w1 bus master: Family 2d for 2d.000001c2263b.33 is not registered.
Is it possible to attach a DS1820 sensor directly to some of the I/O pins? If yes, to which?
Or are some precautions concerning linux driver configuration etc needed?

Thanks in Advance!

Re: PortuxG20 interfacing questions: /dev/ttyUSB and 1-wire

USB-serial converters
The kernel flashed onto the the PortuxG20 is quite minimal, so the drivers for the USB-serial converters are missing. Compiling the kernel according to our Linux guide and enabling the serial converter drivers in the configuration stage should make it work. It should be enough to compile them as modules without reflashing the complete kernel.

1-wire
The processor pin used for the 1-wire support (PA29) is unfortunately not exported on the PXB, therefore you cannot just connect 1-wire devices to the PortuxG20. What you can do is choose another pin and configure it as a 1-wire bus. To do that, you have to edit the file arch/arm/mach-at91/board-portuxg20.c. Duplicate the 1-wire related functions but replace the used pin. After recompiling and flashing the kernel you will have an new 1-wire master and can attach devices to. You should be aware, that not all devices are supported by the Linux kernel. Consult the kernel config to see which are. For a broader device support OWFS (http://owfs.org/) seem to be more useful, but it cannot be used with the bit-banging driver so we have not tested it ourselves.

Re: PortuxG20 interfacing questions: /dev/ttyUSB and 1-wire

So I have to learn to compile the kernel. Cool .....
Thank you for the support!

Syndicate content