Open Source Telephony
 help / color / mirror / Atom feed
From: Yorn <yorn@gmx.net>
To: ofono@ofono.org
Subject: Re: Ublox Toby Modem
Date: Wed, 20 Apr 2016 16:11:27 +0200	[thread overview]
Message-ID: <57178E0F.7000904@gmx.net> (raw)
In-Reply-To: <57178134.7070200@endocode.com>

[-- Attachment #1: Type: text/plain, Size: 6795 bytes --]

+ adding ofono mailinglist as it may be of interest

Point is, that I am trying to run the u-blox on ofono+connman and 
had/have some questions regarding the setup.
I compiled the git version of the ofono for a freescale vf610 board with 
an onboard ublox usb adapter and got quite far.

A manual setup on pppd+peer+provider+chat script gave me a clean 
internet connection.

Now I want to integrate that with ofono/connman. I got ofono finding the 
module, advertise it as a cellular technology to connman, but no service 
is showing up.

I will go on setting up the umts high throughput profile.

So the rest of the story can be found below!

@Dragos:
without any changes, I got
lsusb:
1546:1146 U-Blox AG (which is high performance?)

online modem runs without any complains, but without any changes
root(a)colibri-vf:~/test# ./online-modem
Setting modem /ublox_0 online...


BR - Yorn (Jörn)


Am 20.04.2016 um 15:16 schrieb Dragos Tatulea:
> Hi Jörn,
>
> Can we take this discussion to the connman/ofono ml? Other people
> might find this useful.
>
> On 04/20/2016 03:01 PM, Jörn wrote:
>> Hi Dragos,
>>
>> I got python to work for the test scripts, this is what it gave [1]. I believe I am just a minute away ..
>>
> Good.
>
>> I got the connection up and running on a manual (old fassioned) way with pppd, chat and provider script. However I am not an expert on ofono/connman yet (but trying hard ...).
>>
>> I firstly wanted to use 2g/3g with high performance mode (as I saw your effort has been put on this point, right?). I am rather not sure, how to configure that without having a connman service.
> The AT Commands Examples [1] documents that (USB configuration section).
> You should change the mode manually. A successful set will yield the
> following ids from lsusb:
>
> 1546:1140 U-Blox AG
>
>
>> BR - Jörn
>>
>> [1]
>> root(a)colibri-vf:~/test# ./activate-context
>> Error activating /ublox_0/context1: org.ofono.Error.NotAttached: GPRS is not attached
>> root(a)colibri-vf:~/test# ./list-contexts
>> [ /ublox_0 ]
>>      [ /ublox_0/context1 ]
>>          Username =
>>          AuthenticationMethod = chap
>>          Protocol = ip
>>          Name = Internet
>>          Settings = { }
>>          IPv6.Settings = { }
>>          Active = 0
>>          AccessPointName =
>>          Password =
>>          Type = internet
>>
>> root(a)colibri-vf:~/test# ./list-modems
>> [ /ublox_0 ]
>>      Features = net gprs sim
>>      Emergency = 0
>>      Powered = 1
>>      Lockdown = 0
>>      Interfaces = org.ofono.NetworkRegistration org.ofono.ConnectionManager org.ofono.SimManager
>>      Online = 1
>>      Model = TOBY-L210
>>      Revision = 09.71
>>      Type = hardware
>>      Serial = 352255060097262
>>      Manufacturer = u-blox
>>      [ org.ofono.NetworkRegistration ]
>>          Status = roaming
>>          Strength = 60
>>          Name = Tele2 M2M (E-Plus)
>>          LocationAreaCode = 0
>>          Mode = auto
>>          MobileCountryCode = 262
>>          Technology = hspa
>>          CellId = 16
>>          MobileNetworkCode = 03
>>      [ org.ofono.ConnectionManager ]
>>          Powered = 1
>>          Attached = 0
>>          Bearer = none
>>          RoamingAllowed = 0
>>      [ org.ofono.SimManager ]
>>          ServiceProviderName = Tele2 M2M
>>          Retries = [pin2 = 3] [puk2 = 10] [pin = 3] [puk = 10]
>>          MobileCountryCode = 240
>>          FixedDialing = 0
>>          SubscriberNumbers =
>>          PreferredLanguages = en
>>          BarredDialing = 0
>>          CardIdentifier = 89462046051001005763
>>          LockedPins =
>>          MobileNetworkCode = 07
>>          SubscriberIdentity = 240075810199181
>>          Present = 1
>>          PinRequired = none
>>
>>
> Hmm, not sure what the roaming state is. But it looks like it's not yet
> ready to attach the gprs context (Attached is not yet 1).
>
> Can you try running online-modem script? Maybe it will work.
>
>>
>> Am 20.04.2016 um 12:59 schrieb Dragos Tatulea:
>>> Hi Jörn,
>>>
>>> On 04/20/2016 12:02 PM, Jörn wrote:
>>>> Hi Dragos,
>>>>
>>>> thanks for your quick reply!
>>>>
>>>> What I did is the following:
>>>>
>>>> connmanctl> enable cellular
>>>> Error cellular: Already enabled  <- due to the second time
>>>> cconnmanctl> technologies
>>>> /net/connman/technology/cellular
>>>>     Name = Cellular
>>>>     Type = cellular
>>>>     Powered = True
>>>>     Connected = False
>>>>     Tethering = False
>>>> /net/connman/technology/ethernet
>>>>     Name = Wired
>>>>     Type = ethernet
>>>>     Powered = True
>>>>     Connected = True
>>>>     Tethering = False
>>>> connmanctl> services
>>>> *AO Wired                ethernet_00142d4ac28f_cable
>>>>
>>>> Is there something else to activate?
>>>>
>>>> I am actually trying to transfer the python test scripts to my embedded system, but there is no python3 available on open embedded, and so I do not have dbus access from there :(.
>>>>
>>> The python scripts are really useful. Especially to investigate the state
>>> of oFono. See list-modems and list-contexts.
>>>
>>>> I am not sure, what a context is...
>>>>
>>> A context is oFono's concept of a "connection to internet" :). For 2/3G there
>>> are 3 states to enable the internet connection:
>>> * enable the modem (done by connman in your case)
>>> * register to the network (might be done by connman, list-modems will
>>>     help you debug that)
>>> * activate context (sometimes done by connman, list-contexts will
>>> tell you the state of the context)
>>>
>>>   
>>>> BR - Jörn
>>>>
>>>>
>>>> Am 20.04.2016 um 11:20 schrieb Dragos Tatulea:
>>>>> Hi Jörn,
>>>>>
>>>>> On 04/20/2016 09:44 AM, Jörn wrote:
>>>>>> Hi Dragos
>>>>>>
>>>>>> I saw, you wrote some code for the toby ublox modem on ofono.
>>>>>> I am actually setting up an embedded system using that modem and got some issues with the latest ofono git and connman.
>>>>>>
>>>>>> The ofono deamon seem to recognize the modem and connman shows the cellular technologie but there is no service shown on connman.
>>>>>>
>>>>> Are you using LTE or 2/3G? If 2/3G, did you activate the context? Connman
>>>>> will create a service for every activated context.
>>>>>    
>>> So, are you using LTE or 2/3G? And also, which version of Toby are you
>>> using and in which mode (high throughput, fairly compatible or backward
>>> compatible). We used only high throughput mode so far.
>>>
>>> Thanks
> Once again, let's move the discussion to the mailing list please.
>
> [1] - https://www.u-blox.com/sites/default/files/AT-CommandsExamples_AppNote_(UBX-13001820).pdf
>
> Thanks


       reply	other threads:[~2016-04-20 14:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <57178134.7070200@endocode.com>
2016-04-20 14:11 ` Yorn [this message]
2016-04-20 14:18   ` Ublox Toby Modem Dragos Tatulea
2016-04-20 14:24     ` Yorn
2016-04-20 15:01       ` Dragos Tatulea
2016-04-20 17:54         ` Yorn
2016-04-21  9:03           ` Dragos Tatulea
2016-04-21 10:06             ` Yorn
2016-04-21 18:37             ` Yorn
2016-04-22 10:23               ` Dragos Tatulea
2016-04-22 11:51                 ` Yorn
2016-04-22 15:36                   ` Dragos Tatulea
2016-04-24 13:03                     ` Yorn
2016-04-20 15:02       ` Denis Kenzior
2016-04-20 16:34         ` Yorn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57178E0F.7000904@gmx.net \
    --to=yorn@gmx.net \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox