hi Andras,
On Thu, Dec 27, 2012 at 3:55 PM, Andras Badics <[email protected]>wrote: > http://pastebin.com/yv0xD1pP you dont have to modified the context's APN and "name" as oFono will set them. I havent seen the org.ofono.Error.NotImplemented: Implementation not provided error on my modem What version of ofonod are u using ? u can try the latest from git. Cheers, Alok. > > On 12/27/2012 at 2:46 PM, "alok barsode" wrote:hi, > On Thu, Dec 27, 2012 at 3:34 PM, Andras Badics wrote: > > > http://pastebin.com/dwvF6Sh2 > > > > sounds good. > now do ./activate-context and pastebin the outupt of ./list-modem and > ./list-conexts. > > Cheers, > Alok. > > On 12/27/2012 at 2:17 PM, "alok barsode" wrote:hi Andras, > > On Thu, Dec 27, 2012 at 1:35 PM, Andras Badics wrote: > > > > > Hi Alok, > > > Thanks for being patient. We are slowly making progress, I hope > you > > > can bear with me. > > > Using those 2 scripts, the erros message becomes different. I > think > > it > > > sounds better: > > > "python2 activate-contextError activating /huawei_0/context1: > > > org.ofono.Error.Failed: Operation failed" > > > > > hmm I see. can u post/pastebin the output of the following commands: > > > > 1. list-modem > > 2. enable-modem > > 3. online-modem > > 4. list-contexts > > > > Maybe some settings are missing? > > > Here's my provider info from mobile-broadband-providers package: > > > Telenor mobilinternet 217.79.128.40 217.79.128.45 > > > My modem is a Huawei E398 according to lsusb, but the sticker on > it > > > says it's an E303 > > > > > > > since there are no multiple entries for telenor, the provisioning > > should > > happen automatically. > > you dont need to set the apn or any other setting. > > > > Cheers, > > Alok. > > > > > Thanks again,Andras > > > On 12/27/2012 at 12:18 PM, "alok barsode" wrote:hi Andras, > > > On Thu, Dec 27, 2012 at 9:13 AM, Andras Badics wrote: > > > > > > > Hi Alok, > > > > Maybe I have a weird modem. > > > > > > > ofono supports a lot of modem. what modem do u have > > > (manufacturer-model)? > > > > That command does the same thing as "connmanctl enable cellular" > > > which > > > > is that a blinking green light turns into a blinking blue light, > > but > > > > not a constant blue light required for connection. > > > > > > > > > > Modem's power and online are different properties. so enable > > cellular > > > does > > > not mean its online. > > > use ./enable-modem and ./online-modem scripts to both enable the > > modem > > > and > > > set it to online. > > > > And the context activation also gets the same message after that > > > > Error org.ofono.Error.NotImplemented: Implementation not > provided > > > > > > > I think this means that there is no context in the 1st place. > > > > > > Cheers, > > > Alok. > > > > > > > Thanks,Andras > > > > On 12/27/2012 at 12:19 AM, "alok barsode" wrote:hi Andras, > > > > On Wed, Dec 26, 2012 at 9:25 PM, Andras Badics wrote: > > > > > > > > > Alok this is very exciting. It is almost working! > > > > > Step #4 is not working, but all the others are and the service > > has > > > > > appeared in connman. > > > > > So step 4 returns > > > > > Error org.ofono.Error.NotImplemented: Implementation not > > provided > > > > > if the modem is powered on > > > > > and > > > > > Error org.ofono.Error.NotAttached: GPRS is not attached > > > > > > > > > ok. GPRS not attached is still fine. we missed a step here. > > > > > > > > 5 #dbus-send --system --type=method_call --print-reply > > > > --dest=org.ofono > > > > /huawei_0 org.ofono.Modem.SetProperty string:"Online" > > > > variant:boolean:true > > > > > > > > now ur modem's light should go to stable from a blinking state > > and > > > > connman > > > > should be able to connect to the service. > > > > > > > > Enjoy! > > > > > > > > Cheers, > > > > Alok. > > > > > > > > > if it is powered off > > > > > On 12/26/2012 at 9:56 PM, "alok barsode" wrote:hi Andras, > > > > > On Wed, Dec 26, 2012 at 8:15 PM, Andras Badics wrote: > > > > > > > > > > > Hi Alok, > > > > > > Thanks for caring about me. list-contexts says the > following: > > > > > > ./list-contexts File "./list-contexts", line 13 print "[ > > %s > > > ]" > > > > % > > > > > > (path) ^SyntaxError: invalid syntax > > > > > > Something's wrong with print. is this fixable? Please say > yes, > > > > dbus > > > > > > api sounds Chinese to me lol. > > > > > > > > > > > > > > > > no worries. I think it might be some pyton2/python3 issue on > > > > > archlinux. > > > > > u can google about it and maybe get a fix. I am no expert > there > > as > > > i > > > > > dont > > > > > use archlinux. > > > > > > > > > > ok, so i assume u have dbus-send and the SIM is unlocked. > > > > > > > > > > here is the sequence of commands: > > > > > > > > > > 1.#dbus-send --system --print-reply --dest=org.ofono / > > > > > org.ofono.Manager.GetModems > > > > > in the output u should see ur modem , and see its registered > > > path. > > > > it > > > > > will > > > > > be something like /huawei_0 if u have a huawei modem. > > > > > > > > > > 2. #dbus-send --system --print-reply --dest=org.ofono > /huawei_0 > > > > > org.ofono.ConnectionManager.GetContexts > > > > > check if u have any active contexts. > > > > > if not do : > > > > > 3. #dbus-send --system --print-reply --dest=org.ofono > /huawei_0 > > > > > org.ofono.ConnectionManager.AddContext string:"internet" > > > > > > > > > > running 2 command should show the context. it will be > something > > > > > like /huawei_0/context1 > > > > > > > > > > 4.#dbus-send --system --print-reply --dest=org.ofono > > > > > /huawei_0/context1 > > > > > org.ofono.ConnectionContext.SetProperty string:"Active" > > > > > variant:boolean:true set the context to be active if not set > > > active > > > > > > > > > > 5. #dbus-send --system --print-reply --dest=org.ofono > > > > > /huawei_0/context1 > > > > > org.ofono.ConnectionContext.SetProperty > string:"AccessPointName" > > > > > variant:string:"ur apn here" > > > > > set the apn here. > > > > > > > > > > Well all this is out of memory and the documentation as i dont > > > have > > > > > access > > > > > to a 3g dongle atm. > > > > > So some tweaking might be required ;) > > > > > > > > > > May the source be with you, > > > > > Cheers, > > > > > Alok. > > > > > > I don't have an active context at all. But the technology > can > > be > > > > > > enabled in connman and the modem activates, etc. > > > > > > Many thanks,Andras > > > > > > On 12/26/2012 at 9:05 PM, "alok barsode" wrote:hi Andras, > > > > > > On Wed, Dec 26, 2012 at 7:55 PM, Andras Badics wrote: > > > > > > > > > > > > > Dear Alok, > > > > > > > A million thanks for your reply! > > > > > > > The ofono test scripts don't work! > > > > > > > They all blurt out invalid syntax at print lines among > > others. > > > > I'm > > > > > > > using archlinux, everything is the latest package. > > > > > > > e.g.: > > > > > > > ./set-context-property File "./set-context-property", > line > > 7 > > > > > > > print "Usage: set-context-property " > > > > > > > ^SyntaxError: invalid syntax > > > > > > > How else can I edit contexts? > > > > > > > > > > > > > > > > > > > you can directly set the properties via dbus-send. Check the > > > > > property > > > > > > name > > > > > > in doc/connman-api.txt. > > > > > > > > > > > > btw what does list-context say? do u have a active context? > > > > > > > > > > > > Cheers, > > > > > > Alok. > > > > > > > > > > > > > Andras > > > > > > > > > > > > > > On 12/26/2012 at 8:40 PM, "alok barsode" wrote:Hi Andras, > > > > > > > On Wed, Dec 26, 2012 at 10:11 AM, Andras Badics wrote: > > > > > > > > > > > > > > > Dear Developers, > > > > > > > > > > > > > > > > I'm trying to get connman to work with my mobile > broadband > > > usb > > > > > > > stick. > > > > > > > > I was wondering if you could provide support to me. > > > > > > > > > > > > > > > > I can get ofono to power up the modem, and the > technology > > > > > appears > > > > > > in > > > > > > > > connmanctl. I can turn the technology on and off. > > > > > > > > > > > > > > > > However no related service appears and when I try to > scan > > > the > > > > > > > cellular > > > > > > > > service in connmanctl, it says not supported. > > > > > > > > > > > > > > > > I am thinking this has something to do with configuring > > the > > > > > > operator > > > > > > > > and APN, etc. But there is no way to do this. > > > > > > > > > > > > > > > > > > > > > > yes there has to be a valid APN for the service to show up > > in > > > > > > connman. > > > > > > > This has to be done from the ofono side. try the test > script > > > > > > > set-context-property to set the AccessPointName property. > > > > > > > > > > > > > > > > > > > > > > > I would appreciate your help. > > > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > > > Regards, > > > > > > > > Andras Badics > > > > > > > > > > > > > > > > Cheers, > > > > > > > Alok. > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > > > > connman mailing list > > > > > > > > [email protected] > > > > > > > > http://lists.connman.net/listinfo/connman > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > connman mailing list > > > > > > > [email protected] > > > > > > > http://lists.connman.net/listinfo/connman > > > > > > > _______________________________________________ > > > > > > > connman mailing list > > > > > > > [email protected] > > > > > > > http://lists.connman.net/listinfo/connman > > > > > > > > > > > > > _______________________________________________ > > > > > > connman mailing list > > > > > > [email protected] > > > > > > http://lists.connman.net/listinfo/connman > > > > > > _______________________________________________ > > > > > > connman mailing list > > > > > > [email protected] > > > > > > http://lists.connman.net/listinfo/connman > > > > > > > > > > > _______________________________________________ > > > > > connman mailing list > > > > > [email protected] > > > > > http://lists.connman.net/listinfo/connman > > > > > _______________________________________________ > > > > > connman mailing list > > > > > [email protected] > > > > > http://lists.connman.net/listinfo/connman > > > > > > > > > _______________________________________________ > > > > connman mailing list > > > > [email protected] > > > > http://lists.connman.net/listinfo/connman > > > > _______________________________________________ > > > > connman mailing list > > > > [email protected] > > > > http://lists.connman.net/listinfo/connman > > > > > > > _______________________________________________ > > > connman mailing list > > > [email protected] > > > http://lists.connman.net/listinfo/connman > > > _______________________________________________ > > > connman mailing list > > > [email protected] > > > http://lists.connman.net/listinfo/connman > > > > > _______________________________________________ > > connman mailing list > > [email protected] > > http://lists.connman.net/listinfo/connman > > _______________________________________________ > > connman mailing list > > [email protected] > > http://lists.connman.net/listinfo/connman > > > _______________________________________________ > connman mailing list > [email protected] > http://lists.connman.net/listinfo/connman > _______________________________________________ > connman mailing list > [email protected] > http://lists.connman.net/listinfo/connman > _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
