Changes between Version 35 and Version 36 of expansion/gw16130
- Timestamp:
- 07/06/2020 06:14:29 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
expansion/gw16130
v35 v36 82 82 }}} 83 83 84 === Procedure for 4.20 kernel or prior ===85 Because support for controlling the FTDI GPIOs was introduced in Kernel 4.20, a program (ftx_prog) can be used to con trol GPIO via the EEPROM on the FTDI chip on earlier kernels.84 === Procedure for kernels prior to Linux 4.20 85 Because support for controlling the FTDI GPIOs was introduced in Kernel 4.20, a program (ftx_prog) can be used to configure the FTDI io-pins in the EEPROM on the FTDI chip on earlier kernels. Configuring CBUS0 as 'drive-1' makes it always output a logic high enabling the modem and removes the need (and ability) to manipulate the gpio to turn the modem on/off. 86 86 87 87 This is an open source program located here: https://github.com/richardeoin/ftx-prog 88 88 89 The following commands are used to control the GPIO: 90 {{{ 91 sudo ./ftx_prog --cbus 3 Keep_Awake #prevent suspend mode 92 sudo ./ftx_prog --load-vcp true #force the loading of the virtual com port 93 sudo ./ftx_prog --cbus 0 Drive_1 #drive GPIO 0 high to enable modem 94 sudo ./ftx_prog --dump #print FTDI EEPROM Configuration 89 Building: 90 {{{#!bash 91 sudo apt-get install git build-essential gcc make libftdi-dev 92 git clone https://github.com/richardeoin/ftx-prog.git 93 cd ftx-prog 94 make 95 }}} 96 97 The following commands are used to re-configure the CBUS0 pin to keep the modem always enabled: 98 {{{#!bash 99 sudo ./ftx_prog --cbus 0 Drive_1 # configure CBUS0 as always output high 100 }}} 101 102 And if you want to re-configure it to change it back to a GPIO (in which case you will need a Linux 4.20 kernel or newer or a userspace application to configure the ftdi-cbus gpio): 103 {{{#!bash 104 sudo ./ftx_prog --cbus 0 GPIO # configure CBUS0 as GPIO 95 105 }}} 96 106