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 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
