Hi Dave,

Dave Festing wrote:
> I can echo and cat /dev/ttyACM0 on my desktop installation of Ubuntu
> 10.02TLS, but there must be a different way of doing in on the mini2440!
>
> Doing cat /dev/ttyACMO just results in a long period of "thinking" before I
> hit CTRL C to get back to the prompt.

Hmm, are you sure your external device sends some data which you can receive 
via the 'cat' command?

As the "CDC ACM" class driver is a generic part of the kernel and does not 
rely on the target it is used on. So, it *should* work in the same way on 
both machines.

You could try to enable the debug output of the cdc-acm driver. This driver is 
in the Linux-3.4 kernel in "drivers/usb/class/cdc-acm.c". Just enable the 
DEBUG symbol in line 31 to "#define DEBUG" and re-compile this kernel (and 
then use it ;) ).
Maybe it can give you an idea what wrong on your Mini2440.

> The command:
> adduser -G root dialout
>
> just returns the message:
> adduser: user 'dialout' in use.

Ups, never seen such a message.

> Both BUSYBOX_ECHO and BUSYBOX_FANCY_ECHO are [y]
>
> cat /sys/devices/platform/s3c24xx-adc/s3c-hwmon/in0_input
> work OK.
>
> /dev/ttyACM0 is crw-rw-rw   1 root dialout 166,  0
> on the mini2440.
>
> I want to "talk" to the ttyACM0 from a PHP script and the above issue seems
> to be one roadblock.

Sorry, no idea yet.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to