Some little technical blog

Sierra Wireless EM7345 AT commands

Em7345-putty2

AT commands are very helpful for troubleshooting your device and changing the settings that are not available from standard Windows settings. For example, you can choose the access technology – 2G, 3G, 4G and even stick to particular frequency bands.

EM7345 is using Intel (formerly Infineon) AT command set and it’s not compatible with Quallcomm AT command set. All basic AT commands like AT+CFUN are more or less the same for all 3G/4G devices, but advanced ones, starting from AT+X, are unique to Intel XMM platform devices.

No official documentation for AT commands was released by Intel, all I was able to find is some source code fragments for Samsung phones (that are based on the earlier XMM platform, like XMM 6380, or so)  on GitHub.

To use AT commands, first you have to enable EM7345 AT command port, as I described in this post.

There are many cases when your newly installed EM7345 doesn’t work. Let’s start step by step.

AT+CFUN?

should return: +CFUN: 1,0

1 means the device is turned on. If it’s not 1, make sure your EM7345 is turned on in Windows Connection Manager. Or try to turn it on using the AT command:

AT+CFUN=1

Let’s check if the SIM card is working and recognized by the EM7345:

AT+CIMI

should read from your card and display your IMSI number.

Check your SIM card status:

AT+CPIN?

should return: +CPIN: READY. That means your SIM card is properly recognized and no SIM card PIN is required to enter.

Let’s check if your EM7345 is SIM locked:

AT+CLCK=”PN”,2

should return +CLCK: 0

0 means your device is not locked and can work with any SIM card. If it is 1, then bad luck, your EM7345 is SIM locked and will work only with SIM card of the operator it is locked to.

Let’s check which access technology is currently used:

AT+XREG?

returns something like +XREG: 0,8,BAND_LTE_20,0

it means your device is currently using LTE, frequency band 20. For 3G, the band will be BAND_UMTS_I, for example. That means 3G band I. All actual band frequencies you can find in Google.

How to change the access technology?

AT+XACT=n

where n is: 0 – for 2G (EDGE), 1 – for 3G, 2 – for 4G/LTE.

You can also check your current access technology configuration:

AT+XACT?

response: +XACT: 0,0,,900,1800,1900,850,1,2,4,5,8,101,102,103,104,105,107,108,113,117,118,119,120

the first number is n number above. Then come numbers 900,1800,1900,850. Those are bands currently enabled for 2G technology. So the configuration is to use only 2G, and use the above bands. If the band is not listed, it won’t be used by the EM7345. This is very useful when you want to stick to only one access technology and even some particular band. Then we see numbers 1,2,4,5,8. Those are 3G bands. And finally, numbers starting from 101 and up to 120. Those are 4G/LTE bands. 101 means LTE band 1, 102 stands for LTE band 2 and so on.

How do we set the bands? For example to use only LTE band 20, use the following command:

AT+XACT=2,,,120

To stick to LTE  bands 7 and 20, use:

AT+XACT=2,,,107,120

You get the idea.

What about automatic selection of access technologies? For example in some areas where 4G is not avaialble and you want the device to use 3G and then go back to 4G when you’re back  to the coverage? Use this:

AT+XACT=6,2,1,900,1800,1900,850,1,2,4,5,8,101,102,103,104,105,107,108,113,117,118,119,120

That tells your device to use all access technologies and the bands listed in the command (6 number) with the priority of 4G/LTE. This is the default factory EM7345 setting. What 2 and 1 numbers mean I don’t know yet.

If your SIM card seems to be ok, but you cannot get a working connection, try to check for connection errors:

AT+XEER

AT+CEER

AT+NEER

Each of it will get you some text error report if your EM7345 cannot connect to a network.

Your device frozen or you get “1 CDC error”? No need to reboot your laptop, just use:

AT+CFUN=16

This will reboot your EM7345, and it will reappear in Device Manager shortly.

Want to check your EM7345 for internal errors? Use:

AT+XLOG=0

This will list all recorded errors (exceptions). Firmware version 1.1 had some bugs, and every time “1 CDC” error appeared, it got logged and appeared in this list. Since version 1.2 (1415.09) I see no errors in this log.

To clear this list of errors, use:

AT+XLOG=2

 

20 Responses to Sierra Wireless EM7345 AT commands

  • Thanks for researching all of these. Documentation on this card is hard to come by. If anyone is interested enough to dig further, use AT+CLAC for a list of available commands. Generally putting a query (? or =?) on the end of a command will either show you current settings or provide a list of supported subcommands. Google can then track down specifics.

    I’m not sufficiently motivated to delve much more as you’ve addressed my main issue (card locked to LTE). So many thanks again.

  • Awesome! thanks for these commands, now just to find out why my ISP is blocking LTE on non phone devices, switching it to AT+XACT=2 reveled i am getting signal but i get the error “33 requested service option not subscribed” but in my phone it works !

    • Try to check your LTE network registration status:
      AT+CEREG?
      you’ll get a response:
      +CEREG: 0,1
      1 means you’re registered to a network
      3 means registration denied by a network
      An operator can deny your LTE network registration in many cases. For example, in some countries they do it just because you didn’t pay or your LTE subscription has expired. Also they can deny some type of devices based on IMEI, for example, all devices besides phones can be rejected to register on a network.

  • Excelent blog! Thanks, zukota.

    There is the most valuable information Intel/Sierra/laptop vendors can’t (won’t) provide for customers.

    FYI the newest fw, 1445.02, from some China carrier, is suitable for the rest LTE carriers. At least in Russia. But it’s unavailable in public.

    • Interesting! How did you know about 1445.02? The latest I have is 1442.05 from Dell (http://downloads.dell.com/FOLDER02765379M/1/Communications_Driver_W9CFX_WN64_1.0.15_A02.EXE) but it won’t flash into EM7345 because it’s for Telit LN930 and has a different signing key I believe. I’ve been trying to extract and replace secpack from FLS file in order to flash Telit firmware into my EM7345, but still don’t have enough information about FLS file format. I have tools to extract contents of FLS file, but no tools to pack it back.

      • That fw is being flashed for some customers in Russia (at least 2) by Lenovo supportes, remotely. One of them has shared it, but it’s accessible after registration only.
        I’ve met an issue one guy has reported – fw can’t be flashed into em7345. Seems it’s because of different fw types – FIH and ? (I don’t remember) for different type of tablets. After unsaccessful fw flashing (with error he didn’t remember) vid/pid became 8087/0911. After CDC MBIM item deletion modem ports (flash port, at, modem, trace) are hidden.

        Sorry for the delay with answer, my previouse post was hidden too long time. ))

      • one link, perhaps you’ll find useful:
        Infineon FlashTool & Comneon 7 CDCs Driver
        http://forum.xda-developers.com/showthread.php?t=2716673

  • These AT commands enable many useful functions. For example, my mobile provider has a nasty habit of load shedding data connections. But they aren’t decent enough to send through a disconnect command. So I wind up with my EM7345 thinking it’s still connected but having no service.

    Using Windows or Lenovo’s connection utilities to disconnect and reconnect doesn’t fix the problem as the EM7345 seems stuck on this limbo connection. Even disabling and re-enabling the adaptor doesn’t seem to work. The only fix seemed to be restarting the laptop … until now!

    Resetting the EM7345 using an AT command works. After a few seconds the adaptor reappears and automatically reconnects to the network (or at least does on mine since I’ve disabled the PIN). To make this process “one click” it’s easy to set up .bat files.

    1. Download plink (i.e the putty command line utility … Google knows where)
    2. In the same directory, create a .bat file containing the AT command to reset the EM7345 (e.g reset.bat) with the following content

    @echo off
    AT+CFUN=16

    3. In the same directory create another .bat file to actually run the process (e.g make_it_so.bat) with the following content.

    reset.bat | \path\to\plink -serial comXX

    4. Replace \path\to with the relevant directory you’ve put plink in and replace XX with the EM7345’s COM port number on your machine
    5. create a shortcut for the second bat file and send to desktop
    6. click on this whenever required … and profit!

    • Why don’t use the simplest batch file with single string?
      @echo AT+CFUN=16 >comXX

      It’s a native solution to work with com ports.

      • Yeah, good point.

        Though I’ve had to modify your script a little since higher number ports aren’t handled natively so well:

        echo AT+CFUN=16 >\\.\comXX

  • Greetings, my signal on 7345 shows UMTS ,when i conntect to website it dumps it into HSPA, any suggestion ?

    • This is normal. UMTS is just basic 3G, and when your connection sees some data coming through, it switches to HSPA(+) for a faster data throughput.

      • Greetings,
        Thank you for your reply.

        Question, which AT+XACT command or technology to use for Poland PLUS GSM 4glte, which band and so on, because lte doesn’t display at all.
        You would be a miracle. : LOL

  • Hi,

    There appears to be a command reference on the Sierra website:

    http://source.sierrawireless.com/resources/airprime/software/airprime—em73xx-7655-8805—at-command-reference/

    You can download it after registration. However, the document doesn’t mention EM7345. Has anyone an idea whether this is the right documentation?

    Christoph

    • This documentation is for Sierra Wireless modules based on Quallcomm chipset. EM7345 is based on Intel chipset and I’m not aware of any command reference for it ever available for public.

  • can someone confirm that he can start his gps module with the following command?

    AT+XLCSLSR=1,1,,,,,,,,,,

    i managed to start it with that under linux talking directly to /dev/ttyACM0

  • Thanks for the article. I was having a problem with reception at work where LTE was only getting one bar and basically not working, but now I can force 3G and at least get a reasonable connection. Lifesaver!

  • What is AT command to restore the factory settings? AT&F ?

Leave a Reply

Your email address will not be published. Required fields are marked *