Skip to contentSkip to conversation

can not open ttyUSB0 [solved]

Buildroot Adeel Nafis 1 participant 1 message Jan 31, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

To: Adeel Nafis<[email protected]>
Cc:buildroot at busybox.net
Subject: Re: [Buildroot] can not open ttyUSB0
Message-ID:<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Thanks everyone, the problem was not related to driver, it was related to incorrect path (my stupidity), previously my command for executing usb_modeswitch from my 'c' code was

FILE *fp = popen("usb_modeswitch -v 12d1 -p 1446 -c /usr/share/usb_modeswitch/12d1:1446", "r");

have to quote the path due to the colon

FILE *fp = popen("usb_modeswitch -v 12d1 -p 1446 -c \"/usr/share/usb_modeswitch/12d1:1446\"", "r");

Signature · 6 lines
Adeel Ahmed Nafis
Design Engineer
LINKWISE TECHNOLOGY PTE LTD
Blk 3 Ang Mo Kio Industrial Park 2A
#06-08, AMK TECH 1
Singapore 568050