More about the A20 Plus (Pictures of the final product)

Hey

I found more info about the new A20, apparently it was available on taobao but idk why we can’t buy it at the moment, here is the link: https://world.taobao.com/item/537201526509.htm?fromSite=main&spm=a1z10.1-c.w4004-6565671699.4.OdxtAG

Important points:

  • Esp8285 for the wifi
  • No video mode available(there is an AT command for that)
  • 12-15$
  • Compatible with OV7670,GC0308,GC0328,GC0309 cameras (0.3M)
  • Flash

 

And we have a picture:

tb2buhgxgzyqebjy0fbxxbzapxa_882680026_290x290

cd322635060704491

 

So there is two information:

It’s surly the biggest Ax board( and maybe there is also an UART ?)

The price: it’s very close to the A6C board for the seller, the AC6 cost 7,49$ and the A20 7,49$ (50Y and 49Y) so it will be surly around 12-13$

They added also two leds surly for the flash, in the A6C AT Commands we can activate it thx to the Camera parameters commands.

 

They also made an android app for use the A20Plus camera, here some pictures:

2016-08-17_57b445dae7c4e

I found the Application and explanation here: http://pan.baidu.com/s/1o7UleBo#path=%252FGPRS%25E6%25A8%25A1%25E5%259D%2597%25E8%25B5%2584%25E6%2596%2599

You can also go to the online doc here, i found the last pictures here and they explain the code(in chinese): http://www.showdoc.cc/5627?page_id=37300

The first code is: 123456

We can find more info about the code here, but i can’t download his zip because we need to pay for it! : http://www.itdadao.com/articles/c15a342329p0.html

I found the biggest part of these informations on this page:

http://bbs.ai-thinker.com:8008/forum.php?mod=viewthread&tid=2141

Pinout and other pictures of my previous post: https://raymondtunning.wordpress.com/2016/09/08/a20-the-new-gprsgsm-product/

Details of the A6C(like the A20 with no wifi), At commands for control the camera, demo etc: https://raymondtunning.wordpress.com/2016/09/08/best-wireless-cam-solution-a6c/

The AI-Thinker Ax “program”

I’ve discovered with this page: http://www.aliexpress.com/item/GPRS-module-GSM-module-A6C-SMS-Speech-board-minimum-system-board-A6C-adapter-plate-A6C-module/32709458659.html?spm=2114.30010308.3.116.Fp9BF9&ws_ab_test=searchweb201556_0,searchweb201602_2_10057_10056_10065_10068_10055_10054_10069_10059_10058_10073_10017_10072_10070_10060_10061_10052_10062_10053_10050_10051,searchweb201603_4&btsid=042d14e1-ba67-412b-bd4b-ac37c6d9666e that AI-thinker made a page for test the A6/A6C/A7.

But the negative point is it’s in chinese… it’s really not easy to understand but it’s still a great idea:

http://test.ai-thinker.com/

 

htb1nacllxxxxxc0xfxxq6xxfxxxa

 

I made a pdf copy if the link is dead(it’s only for the A6C):

 

gprs-module-gsm-module-a6c_sms-_-speech_-board_minimum-system-board-a6c-adapter-plate-a6c-module-antenna-camera-in-modules-from-consumer-electronics-on-aliexpress

Best Wireless Cam solution : A6C ?

free-shipping-camera-gprs-module-gsm-module-a6c-text-voice-development-board-the-minimum-system-board

 

I’ve discovered the A7, an anwsome solution for have GPS and GPRS in the same chip thx to the great Andreas Spiess youtube channel:

But he he did not talk about the A6C module, maybe because the module was not annonced at this moment, let’s me tell you the avantages of this module:

  • Size: If you know the others cam solutions for the arduino and tiny devices, you surly know the ArduCam, and it’s a BIG module because the Arduino can’t be connected directly to the Camera or we need a lot connections so a big module like this one:
    57
    OV7670

    The A6C has the same cam(OV7670) but it’s more smaller and we need just 2new connection for the Arduino, RX/TX just for the cam!a6c-module-03

  • Price: Surly the important point because we can have smaller, better résolution, better gprs etc but much more expensive! I think for exemple to the Raspberry pi Zero and his high definition camera, normaly they cost around 25$ and with a good Gsm/gprs module around 50$. I also wanted to do a wireless camera with a Esp8266, it’s a cheap module but the cameras are really expensive, like this one: http://www.uctronics.com/arducam-2mp-v2-mini-camera-shield-with-esp8266-nano-esp-12f-evaluation-kits.html and i didn’t find a solution above 25$…  But with the high price we have also better résolution, 2M against 0.3M max for the A6C but personaly i don’t know what can happen to a wireless module so i prefer a cheap one which do the basic job. His price is around 12$, with the camera which cost normaly around 3.5$. But the module is likely to cost less in the future because i’ve found only few sellers.

 

I think there is no better deal for a wireless Cam module at this moment, 12$ is a great price and it can be really interesting for the makers community which don’t want to spend more than 15$ for send a picture through a wireless module.

DEMO

 

supported_cam
Camera

AT Commands

AT+CAMSTART         (Start the Cam and choose the resolution)

  • AT+CAMSTART=0       (QVGA: 320×240)

  • AT+CAMSTART=1         (VGA: 640×480)

  • AT+CAMSTART=2        (QQVGA: 160×120)

 

AT+CAMSTOP       (Stop the camera)

AT+CAMCAP         (Take a picture, the default format is .JPG)

AT+CAMRD          (Read the content of the picture)

  • AT+CAMRD=fromaddr,toaddr;

 

AT+CAMREC (Not available for the moment)

AT+CAMCFG (Camera configuration)

  • AT+CAMCFG=mode,param

This is pure Reverso traduction because i don’t understand what they really say(in chinese):

  • 0 indicates that the flash mode, the parameter is 0, Off, 1, 2 Open Automatically
  • 1 indicates whether a night market, the parameter is 0, no night vision, 1 open the night vision
  • 2 indicates that the image quality, parameters 0,1,2 //7,10,14,20
  • 3 indicates that the image is rotated, the parameter is 0, indicating that will not rotate 1 rotate 90 degrees, 2 rotate 180 degree and 3 rotate 270 degree
  • 4 The exposure parameters -2,-1,0,1,2
  • 5 brightness, parameters -2,-1,0,1,2
  • 6 white balance, parameter 0-auto,1-daylight,2- daylight (0x08),3-cloudy(0x09),4- (0x0a) tungsten lamps
  • 7 contrast parameters 1-5;

 

Interesting Docs:

Pinout:

a6_a7_a6c_datasheet-en (Page 15 for the A6C)

AT Commands(in chinese)

ai-thinker_a6_a7_a6c_at_v1-02 (Page 171 for the A6C)

 

Few interesting links:

Module in AliExpress:   http://www.aliexpress.com/item/Free-Shipping-Camera-GPRS-module-GSM-module-A6C-text-voice-development-board-the-minimum-system-board/32713287145.html?spm=2114.30010308.3.2.ywlegh&ws_ab_test=searchweb201556_0,searchweb201602_2_10057_10056_10065_10068_10055_10054_10069_10059_10058_10073_10017_10072_10070_10060_10061_10052_10062_10053_10050_10051,searchweb201603_4&btsid=e228f014-6743-4419-9334-4f7f6f0fad21

Doc: http://www.electrodragon.com/w/GSM_GPRS_A6_Module

How to use it: http://www.electrodragon.com/w/File:A6C_Cam_Capture.zip  (You can open with Google Chrome or IE)

Doc from IA-Thinker(there is a part in chinese :/) : http://wiki.ai-thinker.com/lib/exe/fetch.php/modules/datasheet/a6/ai-thinker_a6_a7_a6c_at_v1.02.pdf

 

 

Tcp Communication A6 Module

If you want to test the tcp communication with the A6 Module you can follow this tutorial (but use the AT commands for the A6) BUT before, make sure the port is open, go in your router and create a  “NAT”, choose the port you want(something like 747), internal and external(the same), for the device choose the internal IP of your computer.

You can check if the port his open with this website:

http://www.yougetsignal.com/tools/open-ports/

(You must creat the server before check the port or it will not work!)

Check his channel because he has a lot of things about Gprs/gsm module, they are for the SIM900 but the A6 is close to this module.

TCP with Gprs Gsm A6 Module

Good news for the A6, there is a simple way for TCP, i wrote in the previous article the long way with AT+CGACT=1,1 because AT+CIICR did not work for me but Simon f found the good order for use it, so i give you his code:

 

**Power Up**

AT+CSTT=”free”,””,””

 

OK

AT+CGDCONT=1,”IP”,”free”

 

OK

AT+CIICR

(we can wait a lot of time, if you see COMMAND NO RESPONSE! do nothing, this mess is send if a command don’t return a message after a while)

 

+CTZV:16/6/8, 1:33:8:8

 

+CGREG:5

 

OK

 

+CGREG:5

AT+CIPSTART=”TCP”,”speedtest.tele2.net”,21

 

+CDNSGIP:1,”speedtest.tele2.net”,”90.130.70.73″

 

OK

 

CONNECT OK

 

OK

 

AT+CIPCLOSE               (If you want to close the actual tcp connection)

AT+CIPSHUT                 (If you want to stop the internet connection)

I invite you to go to see his comments for more info and his article!

A6 Gsm/Gprs Module PinOut and data

There is a new module, very cheap around 4$( Here). We can call/send sms and normaly connect to the website and surly use MQTT(i will explain why after). The good thing is we don’t need to spend more money for use it, there is a antenna and we just need to connect the speakers and a mic on the pins for use it. So it’s very close to the SIM800L(Here with bluetooth and rf in it!).

I recieved the module a week ago but i found nothing about the pinout, and the only things writed on it was 1, 12 and chineses things, maybe rx, tx ? No, with google translation i discovered it was like “made in shenzhen”…  I tried different combination based on the videos, but nothing worked. On the official page they write for AT Commands “Included in the download link” so maybe the solution is in this file ? But i can’t find the link :(.

I finaly found the Holy link here yesterday:    http://www.dx.com/fr/p/gprs-a6-serial-gprs-gsm-module-core-developemnt-board-for-arduino-433790#.V037dZGLSUk

https://drive.google.com/folderview?id=0B6uNNXJ2z4CxcWZ0N2ZVNTFnVFk&usp=sharing

We find everything even the software used in the video!

A6PinOutGsmGprsModule
A6 Gsm/GPRS Module Pinout

How use it:

  1. Connect UART_TXD to RX of the FTDI
  2. Connect UART_RXD to TX of the FTDI
  3. Connect GND to the GND of the FTDI
  4. Connect VCC5.0 To the PWR_KEY pin
  5. Connect a Micro Usb for the power(with any smartphone charger)
  6. After 4-5 second you can remove the connection between VCC5.0 and PWR_Key

You can open The arduino software, in tools select the good port(not COM1), open the serial monitor and choose 115200baud. Write “AT”, and if you see “OK” it works!

If you don’t know how exacly to do the connections, you can see how the Esp8266 works with a FTDI, it’s very close, for exemple:

esp8266-reflash-firmware

The good new is the AT commands are very close to the Commands for others Gprs/Gsm modules like SIM800/SIM900 so it’s surly possible to use the same library.

I’ve noticed the CIPMUX command can’t be used, maybe it’s CMUX ?

 

How call ?

ATD+the phone number

For exemple: ATD0785957436

Push enter and you will recieve the call.

 

How send a message ?

AT+CMGF=1

AT+CMGS=”0785957436″   (It’s the phone number)

>(write the message here)                (push Ctrl-Z and Enter, it doesn’t work in the Arduino Serial monitor but you can do it in SSCOM, the software in the Zip)

 

You can see all your previous message with:

AT+CMGR=1

for an another message change the number

AT+CMGR=2

AT+CMGR=10

AT+CMGR=12

AT+CMGR=18

AT+CMGR=24

Etc

 

And TCP/IP Connection ?

If i’m right this is the key for the MQTT connection to website etc so the most interesting part. I tried to do like in this page:

https://vsblogs.wordpress.com/2013/11/28/tcp-connection-over-gprs-using-sim900-and-at-commands/

/** First test if everything is okay **/

=> AT

<= AT /** This should come back. SIM900 default is to echo back commands you enter **/

<= OK /** This string should tell you all is well**/

=>AT+CPIN? /**This is to check if SIM is unlocked. This sample assumes unlocked SIMs**/

<= +CPIN: READY /** If your response contains this, then it means SIM is unlocked and ready**/

=>AT+CREG? /**This checks if SIM is registered or not**/

<=+CREG: 0,1 /**This string in the response indicates SIM is registered**/

=>AT+CGATT? /**Check if GPRS is attached or not**/

<=+CGATT: 1 /**A response containing this string indicates GPRS is attached**/

//if you have CGATT:0, write CGATT=1 and even if you have an error check again

=>AT+CIPSHUT /**Reset the IP session if any**/

<=SHUT OK /**This string in the response represents all IP sessions shutdown.**/

//It Never works for me, i’ve +CME ERROR:50

=>AT+CIPSTATUS /**Check if the IP stack is initialized**/

<=STATE: IP INITIAL /**This string in the response indicates IP stack is initialized**/

=>AT+CIPMUX=0 /**To keep things simple, I’m setting up a single connection mode**/

//Not really important, i think for the A6 it’s AT+CMUX=0

<=OK /**This string indicates single connection mode set successfully at SIM 900**/

//I think it’s better to write that before:AT+CGDCONT=1,”IP”,”your_apn”

=>AT+CSTT= “APN”, “UNAME”, “PWD” /**Start the task, based on the SIM card you are using, you need to know the APN, username and password for your service provider**/

<= OK /**This response indicates task started successfully**/

=> AT+CIICR /**Now bring up the wireless. Please note, the response to this might take some time**/

<=OK /**This text in response string indicates wireless is up**/

//It never works for me :/

=>AT+CIFSR /**Get the local IP address. Some people say that this step is not required, but if I do not issue this, it was not working for my case. So I made this mandatory, no harm.**/

//It never works :/

<= xxx.xxx.xxx.xxx /**If previous command is successful, you should see an IP address in the response**/

=>AT+CIPSTART= “TCP” , “http://www.vishnusharma.com”, “80” /**Start the connection, TCP, domain name, port**/

//You can also use something like AT+CIPSTART=”TCP”,”www.google.fr”,”80″

<= CONNECT OK /**This string in the response indicates TCP connection established**/

=>AT+CIPSEND /**Request initiation of data sending (the request)**/

<= > /**The response should be the string “>” to indicate, type your data to send**/

=> xxxxxx /**Just type anything for now**/

=>#026 /**Now type the sequence #026. This tells the terminal.exe to send the hex code 0x1a (which is Ctrl+Z) to indicate end of data sending**/

<= xxxxxxxxxx /**You should get some response back from the server…it would generally be a complain that the request string was not valid…but that is a different subject…you have established the connection**/

/**To close the connection**/

=>AT+CIPSHUT /**Request shutting down of the current connections**/

<=SHUT OK /**Indicates shutdown successful**/

I think i can’t connect because my operator sends a message for activate internet on the phone, i need to install something after that so i can’t do it with this kind of module :/.

Let’s me know if it works for you!

Here an another page wich can be useful if you want to use the arduino and A6:

http://arduino.stackexchange.com/questions/3993/atcstt-throws-an-error

EDIT:

I bought a new Sim card it works but it’s different than in my previus exemple(and the doc exemple).

*POWER UP*

AT+CPIN=1234           (only if you have a Sim code)

AT+CREG?

(+CREG:1,5         CREG should be like 0,1 or 0,5 so we need to change that)

AT+CREG=0

AT+CGATT?

(+CGATT:0 it’s not attach to the GPRS network, +CGATT:1 It’s attach)

AT+CGATT=1

(it can take a lot of time and write COMMAND NO RESPONSE, everytime it worked for me, just check again with AT+CGATT?)

AT+CGDCONT=1,”IP”,”free”            (free is the apn name of my operator, for your operator search in google “apn settings youroperator”)

(Maybe you will need to add AT+CSTT if you need to use your username and password for use internet with your phone:

AT+CSTT=”free”,”raymond”,”password”          Because i don’t have username and  password i write like that:

AT+CSTT=”free”,””,”” )

AT+CGACT=1,1

AT+CIPSTART=”TCP”,www.google.com”,80

(>+CDNSGIP: 1,”www.google.com”,”216.58.209.36″

OK

CONNECT OK)

AT+CIFSR                          (The IP Adresse)

>10.27.156.148

 

So for the MQTT ?

I found here a library for the Sim800 with MQTT: https://github.com/rmap/rmap/tree/master/arduino/sketchbook/libraries/sim800

The commands seems to be the same exept for few of them, so it can works surly easily but i have not tried because i can’t do TCP connection, i will try it soon with an another sim card.

 

Power Consumption

I used a usb meter so the result are not great but it can give you an interesting overview:

Idk how much it is for the Sim800L, maybe the A6 is better for that.

If i change nothing, so i can call, send message etc, the power is around 0.06w/0.13w/0.20w and when i call it can reach 2W.

It’s for 5v so it’s around 0.03A

There is a low-power mode and they say it use only <1mA, but they don’t explain how to use it.