Forum Discussion
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