X301 Ericsson Modul f3507g AT Command reference

View: New views
6 Messages — Rating Filter:   Alert me  

X301 Ericsson Modul f3507g AT Command reference

by axp :: Rate this Message:

| View Threaded | Show Only this Message

Hello List,


i recently got an Lenovo X301, which is fine and has built in Ericsson
f3507g which is claimed by the cdc_acm driver which provides 3 devices
/dev/ttyACM[0-2]. I can use it for its main purpose, which is 3G
Internet, but under windows i was able to use the built in GPS function
of this Module.


There are numerous postings for the X300 which has Sierra Wireless
built-in, on howto to enable GPS, but none for the Ericsson.



Anyone out there has working GPS under Linux with an Ericsson f3507g?




mfg

Ferdinand



--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

Parent Message unknown Re: X301 Ericsson Modul f3507g AT Command reference

by Nickolai Zeldovich :: Rate this Message:

| View Threaded | Show Only this Message

> Anyone out there has working GPS under Linux with an Ericsson f3507g?

Yes.  The f3507g has a number of serial interfaces, which come up as
/dev/ttyACM0 through /dev/ttyACM2 on my machine (Thinkpad W500).  I
believe the last one (USB interface# 9, /dev/ttyACM2) is used to emit
GPS NMEA sentences.  You can get a list of special commands the card
supports by sending it "AT*".  To activate NMEA on /dev/ttyACM2, send
it the following commands:

    AT+CFUN=1
    AT*E2GPSCTL=1,10,1
    AT*E2GPSNPD

After the last command, the port stops responding to any subsequent
commands, and starts emitting NMEA sentences, at which point you can
run gpsd on /dev/ttyACM2.  (You can still reconfigure the GPS
parameters via /dev/ttyACM0, as far as I can tell.)  In my case, I run
the following expect script before running gpsd:

    spawn cu -l /dev/ttyACM2
    expect "Connected."

    sleep 1
    send "AT+CFUN=1\r"
    expect "+PACSP0″

    sleep 1
    send "AT*E2GPSCTL=1,10,1\r"
    expect "OK"

    sleep 1
    send "AT*E2GPSNPD\r"
    expect "GPGGA"

Nickolai.
N��{����������x%��a�g�j���a���f��f��)���b�JZv���f��f��X��)ߣ�b��m�)䥧

Parent Message unknown Re: X301 Ericsson Modul f3507g AT Command reference

by Nickolai Zeldovich :: Rate this Message:

| View Threaded | Show Only this Message

Apologies for the earlier base64-encoded message; I'm not sure why gmail
decided to encode it that way.

> Anyone out there has working GPS under Linux with an Ericsson f3507g?

Yes.  The f3507g has a number of serial interfaces, which come up as
/dev/ttyACM0 through /dev/ttyACM2 on my machine (Thinkpad W500).  I
believe the last one (USB interface# 9, /dev/ttyACM2) is used to emit
GPS NMEA sentences.  You can get a list of special commands the card
supports by sending it "AT*".  To activate NMEA on /dev/ttyACM2, send
it the following commands:

    AT+CFUN=1
    AT*E2GPSCTL=1,10,1
    AT*E2GPSNPD

After the last command, the port stops responding to any subsequent
commands, and starts emitting NMEA sentences, at which point you can
run gpsd on /dev/ttyACM2.  (You can still reconfigure the GPS
parameters via /dev/ttyACM0, as far as I can tell.)  In my case, I run
the following expect script before running gpsd:

    spawn cu -l /dev/ttyACM2
    expect "Connected."

    sleep 1
    send "AT+CFUN=1\r"
    expect "+PACSP0″

    sleep 1
    send "AT*E2GPSCTL=1,10,1\r"
    expect "OK"

    sleep 1
    send "AT*E2GPSNPD\r"
    expect "GPGGA"

Nickolai.

Re: X301 Ericsson Modul f3507g AT Command reference

by bhaskins :: Rate this Message:

| View Threaded | Show Only this Message


---- Nickolai Zeldovich <nickolai@...> wrote:

> Apologies for the earlier base64-encoded message; I'm not sure why gmail
> decided to encode it that way.
>
> > Anyone out there has working GPS under Linux with an Ericsson f3507g?
>
> Yes.  The f3507g has a number of serial interfaces, which come up as
> /dev/ttyACM0 through /dev/ttyACM2 on my machine (Thinkpad W500).  I
> believe the last one (USB interface# 9, /dev/ttyACM2) is used to emit
> GPS NMEA sentences.  You can get a list of special commands the card
> supports by sending it "AT*".  To activate NMEA on /dev/ttyACM2, send
> it the following commands:
>
>     AT+CFUN=1
>     AT*E2GPSCTL=1,10,1
>     AT*E2GPSNPD
>
> After the last command, the port stops responding to any subsequent
> commands, and starts emitting NMEA sentences, at which point you can
> run gpsd on /dev/ttyACM2.  (You can still reconfigure the GPS
> parameters via /dev/ttyACM0, as far as I can tell.)  In my case, I run
> the following expect script before running gpsd:

Have you actually been able to run gpsd on !!! any !!! recent distro?
If so which one, and please reveal any tricks.

Thanks,
   Bert


>
>     spawn cu -l /dev/ttyACM2
>     expect "Connected."
>
>     sleep 1
>     send "AT+CFUN=1\r"
>     expect "+PACSP0″
>
>     sleep 1
>     send "AT*E2GPSCTL=1,10,1\r"
>     expect "OK"
>
>     sleep 1
>     send "AT*E2GPSNPD\r"
>     expect "GPGGA"
>
> Nickolai.

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

Re: X301 Ericsson Modul f3507g AT Command reference

by Nickolai Zeldovich :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, Oct 26, 2008 at 1:30 PM,  <bhaskins@...> wrote:
> Have you actually been able to run gpsd on !!! any !!! recent distro?
> If so which one, and please reveal any tricks.

Ubuntu 8.10 beta seems to run gpsd just fine, the only trick is to
enable GPS functionality on the f3507g, e.g. by running the expect
script below.  Then just run gpsd on /dev/ttyACM2.

Apparently, the reason for odd encoding in my prior emails was some
Unicode character that made its way into the text I was pasting; below
is hopefully an ASCII-clean version of the expect script.

Nickolai.

---

   spawn cu -l /dev/ttyACM2
   expect "Connected."

   sleep 1
   send "AT+CFUN=1\r"
   expect "+PACSP0"

   sleep 1
   send "AT*E2GPSCTL=1,10,1\r"
   expect "OK"

   sleep 1
   send "AT*E2GPSNPD\r"
   expect "GPGGA"
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

Re: X301 Ericsson Modul f3507g AT Command reference

by axp :: Rate this Message:

| View Threaded | Show Only this Message

Nickolai Zeldovich wrote:

> On Sun, Oct 26, 2008 at 1:30 PM,  <bhaskins@...> wrote:
>  
>> Have you actually been able to run gpsd on !!! any !!! recent distro?
>> If so which one, and please reveal any tricks.
>>    
>
> Ubuntu 8.10 beta seems to run gpsd just fine, the only trick is to
> enable GPS functionality on the f3507g, e.g. by running the expect
> script below.  Then just run gpsd on /dev/ttyACM2.
>
> Apparently, the reason for odd encoding in my prior emails was some
> Unicode character that made its way into the text I was pasting; below
> is hopefully an ASCII-clean version of the expect script.
>
> Nickolai.
>
> ---
>
>    spawn cu -l /dev/ttyACM2
>    expect "Connected."
>
>    sleep 1
>    send "AT+CFUN=1\r"
>    expect "+PACSP0"
>
>    sleep 1
>    send "AT*E2GPSCTL=1,10,1\r"
>    expect "OK"
>
>    sleep 1
>    send "AT*E2GPSNPD\r"
>    expect "GPGGA"
>  
Thanks Nickolai!

how is your battery lifetime with the X301 and linux?

any special tweaks?

so far,
Ferdinand
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad