Using AT COMMANDS to send SMS with the ADC Value read from the ADC port using the EHS6T LAN module | Telit Cinterion IoT Developer Community
March 20, 2018 - 4:12pm, 2338 views
Hi everybody.
I´m trying to develop an AC current read value application with the EHS6T Lan module.
I´m using a arduino module that gives me a DC value 2,5 to 5 V.
I successfully read the value on the gemalto module. (0 - 1200 according to the data sheet).
I want to do some calculation on the gemalto module in order to send the AC current value using sms.
It´s possible to program the EHS6T LAN with AT COMMANDS ??
Thanks a lot!
Hello,
Generally to develop a solution with the wireless module you have more than one possibility. You can use some external microprocessor to interact with the module on a physical interface with AT commands and then you implement your application logic on this micro-controller. You can implement a Java MIDlet and place it directly on the module. Inside that MIDlet you can control hardware interfaces with Java API and you have additionally the API for AT commands, so you can send AT commands to the module. There is no API for SMS so you can use this AT commands API for this.
Additionally as you have the LAN terminal there is already an additional micro-controller built in which is responsible for the LAN part. There is an OpenWrt Linux system and it has access to the EHS6 module over USB interface. So you could probably use this for your application logic.
Best regards,
Bartłomiej
Hi,
You can write a Java MIDlet and read the ADC using ADCListerner interface and ADC class.
Sending an SMS from Java is also easy, using the ATCommandListener interface and ATCommand class.
Using e.g. the java standard out, you can pass information to the OpenWRT side.
For instance, USB1 equals to /dev/ttyACM1. You can read the data on the OpenWRT side like this:
while :; do read X < /dev/ttyACM1; echo $X > /tmp/all outputs; done &.
About ADC: https://iot-developer.thalesgroup.com/tutorial/conceptboard-java-multiadc
About SMS: https://iot-developer.thalesgroup.com/tutorial/how-receive-sms-message
http://pastebin.com/1rjhG4rA
Best regards,
Antero
Antero Markkula
Communication and Mechatronics
Enkom Active Oy – www.enkom-active.fi
Upseerinkatu 3 A, 02600 Espoo, Finland
Mobile: +358 400 411368
Office: +358 10 204 0000
Fax: +358 10 204 0010
E-mail: antero.markkula@enkom-active.fi