Changes between Version 35 and Version 36 of expansion/gw16130


Ignore:
Timestamp:
07/06/2020 06:14:29 PM (2 years ago)
Author:
Tim Harvey
Comment:

updated ftx-prog instructions

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16130

    v35 v36  
    8282}}}
    8383
    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 control GPIO via the EEPROM on the FTDI chip on earlier kernels.
     84=== Procedure for kernels prior to Linux 4.20
     85Because 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.
    8686
    8787This is an open source program located here: https://github.com/richardeoin/ftx-prog
    8888
    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
     89Building:
     90{{{#!bash
     91sudo apt-get install git build-essential gcc make libftdi-dev
     92git clone https://github.com/richardeoin/ftx-prog.git
     93cd ftx-prog
     94make
     95}}}
     96
     97The following commands are used to re-configure the CBUS0 pin to keep the modem always enabled:
     98{{{#!bash
     99sudo ./ftx_prog --cbus 0 Drive_1 # configure CBUS0 as always output high
     100}}}
     101
     102And 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
     104sudo ./ftx_prog --cbus 0 GPIO # configure CBUS0 as GPIO
    95105}}}
    96106