I see these GSM/GPRS modules that you can use with a microcontroller but all of them use the microcontroller to control the module using AT commands.
After a bit of googling i saw this GSM/GPRS IC 'SIM808'. Looking at it's datasheet i see that it has GPIO pins, UART, Bluetooth, GPS, I2c communication and an ADC!!!!.
As you can see this ic is really powerful but i have no idea how to program it. (i'm quite okay at programming AVRs using C)
My question is how do you do this?
How do you write programs and upload them to this ic? (it would be really good if it was C++ or even C)
The Datasheet
https://cdn-shop.adafruit.com/datasheets/SIM808_Hardware+Design_V1.00.pdf
Answer
You use the AT command set to read/write the GPIO and ADC, for example to read the ADC (page 149):
>AT+CADC?
+CADC:1,2800
OK
The first line is to read the ADC, the second is the response, with the status (1 = OK/Good), and the value (0-2800 integer). There are similar AT commands for reading the GPIO (AT+SGPIO
/AT+CGPIO
) or the PWM (AT+SPWM
).
It is possible you could write custom firmware for the module, but that would have to be done through reverse engineering the processor/circuit.
No comments:
Post a Comment