Forum Discussion
Altera_Forum
Honored Contributor
15 years ago[help]How to use libusb in uClinux
Hi all. I'm trying to compile some code that require usb.h in libusb. Could you tell me how to use it in uClinux. I've search in menuconfig for this library but not found. Or I have to cross compi...
Altera_Forum
Honored Contributor
15 years agoHi,
--- Quote Start --- I tried to work with a usb 3G from huawei. I could get it change to modem mode, then I load the usbserial driver and it show some success msg, it create ttyUSB0, 1, 2, and 3. I can use cat to get data from ttyUSB3, but I can't write command to any of those ttyUSB. I try both echo command from shell and C write function. What should I fix now? --- Quote End --- At first, check the permission of 'ttyUSB' . like
ls -lp /dev/ttyUSB*
If it's OK, then check the return value of the function 'write' or something, and if it reports some error, check the value 'errno'. If it reports no error,.... Kazu