Wednesday, December 3, 2014

Flashing GL865-QUAD's firmware

If you bought a GSM Click board from MikroElektronika, chances are that the GL865-QUAD modem comes with older firmware. That might work for you, but my board came with version 10.00.144, which doesn't support SSL.

The GL865-QUAD chip can be easily upgraded via its AUX serial interface. Note that the AUX port is not the same serial port we use to operate the modem normally via AT commands, and it's actually not broken out to external pins so a bit of soldering is required.

Set up


A quick look at the datasheet reveals the location of the TX/RX pins:


I used a couple of breadboard jumper cables soldered directly to those pins:


To communicate with the GL865-QUAD I used this FTDI USB-serial converter from Sparkfun. According to Telit's datasheet, the AUX port is 2.8V CMOS logic, so I bridged across the two pads next to the 3.3V mark on the FTDI board with a bit of solder:



The GL865 hardware guide states that the absolute maximum input on 2.8V CMOS pins is 3.1V. I found the output of the FTDI chip was slightly over 3.1V, so I simply tied the TX/RX pairs together and hoped for the best. It turned out okay, but if you want to be extra careful, I suggest you use a simple level converter like this:

GL865 pin 45 (TXD_AUX) -------------- FTDI RXD
GL865 pin 44 (RXD_AUX) ----+---|<|--- FTDI TXD
                           |  1N4148
                           /
                           \ 4K7
                           /
                           |
GL865 any GND pin      ----+--------- FTDI GND

The diode will provide the necessary ~0.6V drop so that the FTDI output is within safe levels while the resistor pulls the CMOS input down to 0V when the FTDI TXD outputs a logic 0.

My whole setup looked like this:


Besides the RX/TX cables, I tied both the GL865 and FTDI grounds together (blue cable), and of course you need a 3.3V source to power the whole board. I used some batteries and a 3.3V regulator for this (not shown in the picture above).

Get the firmware


As of today, the latest firmware version is 10.01.140. It's not publicly available neither on Telit nor MikroE's websites, but you can request it directly through MikroE's contact page. Ask them for the XFP tool, too. They answer within 24 hours. The XFP tool runs on Windows, if you are on Linux or OS X you can run it from a Windows virtual machine.

Flash the firmware


With the GSM Click powered off, load up Xfp, select the firmware and hit program. As soon as Xfp says "Linking", power on the GSM Click. It has to be done in that very order. If you hit the program button after the Click has booted, Xfp will stay in a never ending "Linking" loop. It takes about 10 minutes to finish:



Test it!

To check the firmware version you can use the AT+CGMR command, which should output something like this:

--> AT+CGMR
<-- 10.01.140\r\n

And... done!

35 comments:

  1. Hi Javi can you contact me at mutalib@ukm.edu.my . this regarding trackuino project. tq

    ReplyDelete
  2. Thank you for posting this, really helped me out. Also here's the FW: http://www.voipgsm.ru/down/4sm/bin/GL865-QUAD-10.01.140.bin

    ReplyDelete
  3. Hi Javi. I'm applying the instructions, Xfp tool starts to write "Linking" in status bar and sending character 'U' to serial port continously, after a few seconds I power on the GL865 module, Xfp tool communicates with module, GL865 stops flashing status led, I assume it gets in flashing mode because module doesn't respond to AT command's in that mode. But everything stops at that point. Xfp tool says it's "Programming" but there isn't any activity in the serial port. After a minute Xfp pops up a messagebox saying Timeout error with code -9. How can I solve the problem I use Aux port and tried both Trace service and AT1 Instance in aux port settings using command AT#SII. They are both didn't solved my problem. Please help :)

    ReplyDelete
    Replies
    1. I can't help much because it's always worked for me as long as the programming / power-on sequence is done right. Maybe try a different version of xfp? Quick google and some forums suggest so.

      Delete
  4. I have been reading out a lot of your articles and that i ought to say pretty nice stuff. I will certainly bookmark your internet website
    Devops Online Training
    Adobe cq5 Training
    Dell Boomi Training

    ReplyDelete

  5. this blog post is really helpful especially with me that is just starting learning about devops Jobs in Hyderabad follow in 2017.It is very informative and you explain it well

    ReplyDelete
  6. Firmware playing a key role in many electronic systems, MaxCure has good equipment for Orthopedics for knee procedures.

    ReplyDelete
  7. In electronic world, there was a complete firmware systems only. Good article to read. keep updating the articles. thank you.

    In Queen's NRI Hospitals - Vishakapatnam , have good equipment's for all treatments.

    ReplyDelete
  8. Hi Javi, I need your support and advice to do a sounding balloon project. First, what card do I need (Arduino Mega, Trackuino, Intel Galileo, APRS, etc), and what kind of transmitter and receiver do I need and where do I get them?

    I hope to have your support please, it is for an educational project.

    You can also write to my email: fah_cite@hotmail.com

    Receive a cordial greeting. Best regards. Federico A. Heredia

    ReplyDelete
  9. Great article, resonated with me from start to finish about Health care.Orthopedic Surgeon in Hyderabad

    ReplyDelete
  10. I appreciate that you took a simple, how to article by explaining the process step by step and how to about Health care.Best Heart Hospital in Hyderabad

    ReplyDelete
  11. How does this fit into APRS? Since the frequencies for APPRS are much lower.

    ReplyDelete
  12. Boa noite, posso usar um cabo RS232 para fazer a conexão.

    ReplyDelete
  13. I have a strong aversion to routine. But when you have kids, if you, the adult, don't establish a routine, the kids will take over and life will descend into chaos really fast. john barban after dinner routine

    ReplyDelete
  14. social media in any kind of services or business field is really going to give them the hundred percent results in their Social Media Marketing campaigns. SMM can be learned with digital marketing courses. data science course syllabus

    ReplyDelete
  15. thank you very much
    i like it

    http://www.freewing-model.com

    ReplyDelete
  16. https://www.kingfordpcb.com/pcb-layout/

    ReplyDelete
  17. SreeManju Hospital is the top hospital in Hyderabad. Our doctors are highly qualified and experienced. They diagnose the problem from basic level after they will provide the treatment for the patients. Best Hospital in Kukatpally has taking care about the patients at healthy atmosphere.
    Best Hospital Kukatpally

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. This is actually amazing and very useful information .I admire the valuable information you offer in your articles. Thanks for posting it....And i would like to share our website robotics project centers in chennai

    ReplyDelete
  20. thank you , good idea, i like them , it can help me

    ReplyDelete
  21. I think it is actually very necessary to hire a professional for all cleaning activities. The reason is mainly because in order to get a proper cleaning of your house for long term.포천출장마사지
    수원출장마사지
    성남출장마사지
    안산출장마사지
    용인출장마사지
    가평출장마사지
    이천출장마사지

    ReplyDelete
  22. This is great. Thanks for sharing this post! Here for more info

    ReplyDelete