Trouble using GPIO | Telit Cinterion IoT Developer Community
March 9, 2021 - 6:08pm, 1632 views
I've been trying to use the GPIO interface for the first time in the BGS5T but I'm experiencing some difficulties.Basically my goal is to activate the 5V signal whenever I need. I chose the GPIO20.
I've tried to send the AT^SCPIN=1,19,1,1<CR>, which is returning OK, but when I measure the voltage between that pin and the GND it always gives around 1,30V.
Am I missing something?
Do you have the hardware description document for the terminal? If not, please check out here: https://iot-developer.thalesgroup.com/documentation/download-documentati...
SCPIN configures GPIO for the module but in case of the terminal you also have to configure the GPIO direction for the terminal hardware. You can do it on ASC0 with baudrate 1200 or over i2c interface. Additionally you need to power the GPIO interface over VCCref. You can use +5Vout for this (up to 100mA).
I can't access the documentation, but I'm sure I have the correct one.
So, can you wrap it up in simple instructions?
1. I have to power with 5V the VCC Ref (I may use the 5V out that the GPIO has).
2. What command must I use through the ASC0 with 1200bps?
3. Then I may use AT^SCPIN=1,19,1,1<CR> or AT^SCPIN=0,19,1,1<CR> to activate/deactivate the output?
4. May I use these two ATCommands through Java applications?
Thanks once again for your kind help
You may connect 1.8...5.5V. 5V for 5V IO operation. You may use +5Vout for this with the restriction that you can draw up to 100mA from all pins.
For configuration over ASC0 please see '126.96.36.199 Set GPIO Direction'. This can only be done by external application - the physical connection to ASC) interface on the casing is necessary. You can't do it by Java MIDlet.
With i2c you can configure the GPIO level shifters from the MIDlet also. Please see the chapter '188.8.131.52 I2C Commands' with the examples. In case of Java MIDlet you can use the provided API for i2c interface instead of AT commands.
Here you can find a simple example of configurations with i2c for ConceptBoard done from the MIDlet:
Please also note that some GPIO lines can be configured alternatively for other interfaces. Please check AT^SCFG command for this. In case of any changes the reboot is necessary.
After this configurations done you can use SCPIN command.
Thank you for your answer.
Sadly the provided link is not available. Can you check it?
I'm sorry for this. Here's the working link: https://iot-developer.thalesgroup.com/showcase/really-simple-way-integra...