Changes between Version 9 and Version 10 of Docs/Prog/Manual/DeviceSupport/USB
- Timestamp:
- 11/18/11 16:57:35 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/USB
v9 v10 87 87 88 88 == USB to PC communications == 89 The first time the 825 is connected to a Windows PC a driver my may required to be installed. Refer to the attachments at the bottom of these page to download Windows driver files.90 89 91 To load the driver for USB to PC communications type: 92 90 To load the driver in the 825 for USB to PC communications from a connected terminal type: 93 91 {{{ 94 92 # modprobe g_serial use_acm=1 95 93 }}} 96 When the 825 is connected to the PC it will be recognized by the PC and if the driver is not already installed it will prompt for it. Refer to “gadget_serial.txt” 94 95 This can also be performed from within a custom application program. 96 {{{ 97 sytem("modprobe g_serial use_acm=1"); 98 }}} 99 100 When the USB cable is connected from the 825 to the PC it will be recognized by Windows and if the driver is not already installed Windows will prompt for it. Refer to the attachments at the bottom of this page to download Windows driver files. 97 101 98 102 When the driver is installed the PC will appear to have another COM port. For testing on the PC you can then open a communications program such as HyperTerminal and set it to the appropriate COM port (which is actually a USB connection). 99 103 100 On the serial connection to the indicator type: 101 104 On the terminal connection to the indicator type: 102 105 {{{ 103 106 # echo “abcdefg” > /dev/ttygserial … … 105 108 “abcdefg” will then appear on the Hyperterm display. 106 109 110 On the terminal connection to the indicator type: 107 111 {{{ 108 112 # cat < /dev/ttygserial … … 114 118 123456<CR> 115 119 }}} 116 On the serial connection to the indicator type:117 120 118 The received characters “123456” from the PC will then be displayed. 121 The received characters “123456” from the PC will then be displayed on the terminal connected to the 825. 122 123 Custom 825 application programs may use serial communications code to send and receive data over USB in much the same way as with the COM ports. 119 124 120 125 [[Top]]