Re: how to detect that serial gadget is connected

Andre Haupt <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Ragner N Magalhães wrote:
> I use
> #cat /dev/ttygserial
>
> But I'm using  linux on host side.
> #echo "message from host" > /dev/ttyACM0
>
> Then the message should appear in minicom
> #cat /dev/ttygserial
> message from host
That works for me too.

What i actually want is opening /dev/ttygserial on the start of my 
application, connect the device to the host,
and then read on the file descriptor (which i got with that open call 
*before* i connected).

Thanks,

Andre

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.