+ 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@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@colibri-vf:~/test# ./activate-context
Error activating /ublox_0/context1: org.ofono.Error.NotAttached: GPRS is not
attached
root@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@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
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono