BGS5T GPIO6 and GPIO8 always 0 | Telit Cinterion IoT Developer Community
February 28, 2016 - 7:29pm, 4331 views
Hello,
I am having a similar problem as https://iot-developer.thalesgroup.com/threads/bgs5t-input-gpio-allways-0
I have done everything in that post and I am able to correctly define GPIO21 and GPIO7 as input or output however I am having problems configuring GPIO8 and GPIO6. I have tried to configure them as inputs using various methods and none of them seem to work.
^SCFG: "Call/ECC","0"
^SCFG: "GPRS/AutoAttach","enabled"
^SCFG: "Gpio/mode/ASC1","std"
^SCFG: "Gpio/mode/DAI","gpio"
^SCFG: "Gpio/mode/DCD0","std"
^SCFG: "Gpio/mode/DSR0","std"
^SCFG: "Gpio/mode/DTR0","std"
^SCFG: "Gpio/mode/FSR","gpio"
^SCFG: "Gpio/mode/PULSE","gpio"
^SCFG: "Gpio/mode/PWM","gpio"
^SCFG: "Gpio/mode/RING0","std"
^SCFG: "Gpio/mode/SPI","rsv"
^SCFG: "Gpio/mode/SYNC","std"
^SCFG: "Ident/Manufacturer","Cinterion"
^SCFG: "Ident/Product","BGS5"
^SCFG: "MEShutdown/Fso","0"
^SCFG: "MEopMode/SoR","on"
^SCFG: "Radio/Band","15"
^SCFG: "Radio/OutputPowerReduction","4"
^SCFG: "Serial/Interface/Allocation","2","2"
^SCFG: "Serial/USB/DDD","0","0","0409","1E2D","0059","Cinterion Wireless Modules","Cinterion BGx USB Com Port",""
^SCFG: "Tcp/IRT","3"
^SCFG: "Tcp/MR","10"
^SCFG: "Tcp/OT","6000"
^SCFG: "Tcp/WithURCs","on"
^SCFG: "Trace/Syslog/Otap","0"
^SCFG: "URC/Ringline","local"
^SCFG: "URC/Ringline/ActiveTime","2"
^SCFG: "Userware/Autostart","1"
^SCFG: "Userware/Autostart/Delay","0"
^SCFG: "Userware/Passwd",
^SCFG: "Userware/Stdout","asc0",,,,"off"
^SCFG: "Userware/Watchdog","1"
Any ideas? Thanks
Hello,
It seems that on the module everything is configured properly for GPIO lines 8 and 6 ("Gpio/mode/PULSE" and "Gpio/mode/PWM" are configured as GPIO). GPIO8 can also be used for kicking the terminal's hardware watchdog and should not be used for anything else if used for watchdog. Do you use the terminal's watchdog? I can see that you are using the module's watchdog so you probably don't need the other one. If you were able to configure the module and terminal and successfully use other GPIO lines these should also be working.
Can you write more details how you are using GPIO's? And please check the ATI1 reply also.
Regards,
Bartłomiej
Hello,
I use the terminal watchdog for restarting a frozen midlet. The GPIOs are used simply to output data to std out and to shutdown the terminal. I will disable the module watchdog and see if I can get GPIO8 to work but that still doesn't explain what is going on with GPIO6.
ATI1
Cinterion
BGS5
REVISION 01.100
A-REVISION 00.000.02
Thanks.
Hello,
If you are using the watchdog that is controlled by Java dedicated API it has nothing to do with GPIO8.
If you are using the watchdog that is configured on terminal's ASC0 with 1200baud - that one can be controlled by GPIO8 (there was a hardware change in the past - in the early versions GPIO22 was used instead of GPIO8).
Are you sure that you have configured the direction on the terminal as described in the HW description for terminal and with AT commands as described in the AT commands specification and have configured the hardware properly (connected power to VCCref)? Can you describe how exactly you have done this and how the problem is detected?
There is an update for your firmware.
Regards,
Bartłomiej
Hello,
I have configured GPIO6 using the serial interface at 1200 baud with the command "WD=GPIO_DIR,993,21". I have also tried using "at^sspi=" and the command "<aD41000>". The commands are both accepted however when I try read the value of GPIO6 it is always 0. I have used the commands "AT^SCPIN=1,5,0" and "AT^SGIO=5" which always gets me 0.
I also have a simple java midlet that simply reads out the GPIO state via InPort5V. I am able to configure GPIO7 and GPIO22 without any problems using the methods described but I always have problems with GPIO6 and GPIO8.
Where can I find the updated firmware? I have tried contacting my vendor.
Thanks.
Hello,
The command "WD=GPIO_DIR,993,21" sets the following directions: "1111100001" so it seems that the GPIO6 is set as output. But <aD41000> should set it as input.
Maybe the terminal is damaged if you are sure that other GPIO's are working correctly.
I've sent you the updated firmware - please try.
Regards,
Bartłomiej
Hello
We are facing same issue to configure a new BGS5T terminal. The GPIO's 6,7,8, and 20 ***** to be input in order to detect digital status (Vccref+5Vout to gnd- pull down) and GPIO 21 ***** to be output.
We set the WD=ON,1,1 and WD=GPIO_DIR,993,21 via ASC0 1200 bauds. It seems that we missing commands to set each GPIO properly (e.g. SCFG commads). Based on I described as GPIO's configuration mode, please let me know wich commands I'm missing to realize.
Thanks in advance
Hi,
Could you please add your AT^SCFG? response?
Best regards,
Michał