* RE: Using ofono for location service [not found] <222E70FA67D72A4FB8EEDF5AF01724ACC99C73@BGSMSX102.gar.corp.intel.com> @ 2015-03-12 11:56 ` Rajashekharaiah, Kiran KumarX 2015-03-12 14:45 ` Denis Kenzior 0 siblings, 1 reply; 8+ messages in thread From: Rajashekharaiah, Kiran KumarX @ 2015-03-12 11:56 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2148 bytes --] Hi Denis, > Following are the logs: > ./test/gn3 > Connecting modem /he910_0... > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_location_reporting_enabl > e() lr=0x82e09e0 > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_portcfg_check_cb() > lr=0x82e09e0 ok=1 > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_gps_enable_cb() > lr=0x82e09e0 ok=1 > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_gps_ctl_cb() > lr=0x82e09e0 ok=1 > ofonod[2389]: src/modem.c:get_modem_property() modem 0x82e2ba0 > property GPS > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_location_reporting_disab > le() lr=0x82e09e0 > ofonod[2389]: > drivers/telitmodem/location-reporting.c:telit_gps_disable_cb() > lr=0x82e09e0, ok=1 Everything looks as it should here. > > The test script I am using is: > > import dbus > import sys > import glib > > bus = dbus.SystemBus() > > if len(sys.argv) == 2: > path = sys.argv[1] > else: > manager = dbus.Interface(bus.get_object('org.ofono', '/'), > 'org.ofono.Manager') > modems = manager.GetModems() > path = modems[0][0] > > print("Connecting modem %s..." % path) modem = > dbus.Interface(bus.get_object('org.ofono', path), > > 'org.ofono.LocationReporting') > > fd = modem.Request() > What do you expect the script to do actually? Once you obtain the file descriptor, your client must be around to do something with it (e.g. read NMEA strings). As soon as the client(UNIX process) who performed the 'Request()' operation exits, oFono closes the fd and shuts down the NMEA port on the modem. So everything is working as it should. Kiran: I am facing problem while reading from the file descriptor I got from modem.request(). One observation is, I get "modem=/dev/ttyACM0 aux=/dev/ttyACM3 gps=/dev/ttyACM5" from ofonod logs, but /dev/ttyACM5 is not accepting AT commands when I try from minicom. Should I change gps port also to /dev/ttyACM3? Regards, Kiran ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using ofono for location service 2015-03-12 11:56 ` Using ofono for location service Rajashekharaiah, Kiran KumarX @ 2015-03-12 14:45 ` Denis Kenzior 0 siblings, 0 replies; 8+ messages in thread From: Denis Kenzior @ 2015-03-12 14:45 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 629 bytes --] Hi Kiran, > Kiran: I am facing problem while reading from the file descriptor I got from modem.request(). One observation is, I get > "modem=/dev/ttyACM0 aux=/dev/ttyACM3 gps=/dev/ttyACM5" from ofonod logs, but /dev/ttyACM5 is not accepting AT commands when I try from minicom. > Should I change gps port also to /dev/ttyACM3? I'm not familiar with how GPS is setup on the he910. From what I remember it is a dedicated port that is activated using $GPS* related commands. The port must be dedicated (so not /dev/ttyACM3) since the file descriptor is being passed to an untrusted client. Regards, -Denis ^ permalink raw reply [flat|nested] 8+ messages in thread
* Using ofono for location service @ 2015-03-06 11:55 Rajashekharaiah, Kiran KumarX 2015-03-06 17:45 ` Denis Kenzior 0 siblings, 1 reply; 8+ messages in thread From: Rajashekharaiah, Kiran KumarX @ 2015-03-06 11:55 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 420 bytes --] Hi, I am trying to use ofono on a linux box with TELIT HE910. How can I enable stand-alone gps using ofono, so that I can get GPS data without cellular connection? Also when I tried running "test-gnss" for testing AGPS, I get the following error(with ofonod daemon running in background): NameError: name 'gnss' is not defined Does this mean AGPS is not enabled? If so how can I enable it? Regards, Kiran [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 2315 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using ofono for location service 2015-03-06 11:55 Rajashekharaiah, Kiran KumarX @ 2015-03-06 17:45 ` Denis Kenzior 2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX 2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX 0 siblings, 2 replies; 8+ messages in thread From: Denis Kenzior @ 2015-03-06 17:45 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1016 bytes --] Hi Kiran, On 03/06/2015 05:55 AM, Rajashekharaiah, Kiran KumarX wrote: > Hi, > > I am trying to use ofono on a linux box with TELIT HE910. How can I > enable stand-alone gps using ofono, so that I can get GPS data without > cellular connection? > The location-reporting atom is enabled in pre-sim, so in theory you should be able to use the modem as a GPS device without a SIM. From what I remember, oFono HE910 GPS support requires fairly new firmware and a special setting to work correctly. See doc/telit-modem.txt for more information. > Also when I tried running “test-gnss” for testing AGPS, I get the > following error(with ofonod daemon running in background): > > *NameError: name 'gnss' is not defined* > Yes, sounds like no modems with the org.ofono.AssistedSatelliteNavigation interface were found. > ** > > Does this mean AGPS is not enabled? If so how can I enable it? > > ** Have you powered up your telit HE 910 via enable-modem? Regards, -Denis ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Using ofono for location service 2015-03-06 17:45 ` Denis Kenzior @ 2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX 2015-03-11 16:31 ` Denis Kenzior 2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX 1 sibling, 1 reply; 8+ messages in thread From: Rajashekharaiah, Kiran KumarX @ 2015-03-11 13:06 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 3094 bytes --] Hi Denis, -----Original Message----- From: ofono [mailto:ofono-bounces(a)ofono.org] On Behalf Of Denis Kenzior Sent: Friday, March 06, 2015 11:16 PM To: ofono(a)ofono.org Subject: Re: Using ofono for location service Hi Kiran, On 03/06/2015 05:55 AM, Rajashekharaiah, Kiran KumarX wrote: > Hi, > > I am trying to use ofono on a linux box with TELIT HE910. How can I > enable stand-alone gps using ofono, so that I can get GPS data without > cellular connection? > The location-reporting atom is enabled in pre-sim, so in theory you should be able to use the modem as a GPS device without a SIM. From what I remember, oFono HE910 GPS support requires fairly new firmware and a special setting to work correctly. See doc/telit-modem.txt for more information. Kiran: I followed the doc/telit-modem.txt(I set AT#PORTCFG=8 and rebooted the modem)and the firmware version is 12.00.004. After running the ofonod and test/enable-modem, I ran a script to get location info. It gets disabled immediately. One more observation is, I get "modem=/dev/ttyACM0 aux=/dev/ttyACM3 gps=/dev/ttyACM5" from ofonod logs, but /dev/ttyACM5 is not accepting AT commands when I try from minicom. Following are the logs: ./test/gn3 Connecting modem /he910_0... ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_enable() lr=0x82e09e0 ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_portcfg_check_cb() lr=0x82e09e0 ok=1 ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_enable_cb() lr=0x82e09e0 ok=1 ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_ctl_cb() lr=0x82e09e0 ok=1 ofonod[2389]: src/modem.c:get_modem_property() modem 0x82e2ba0 property GPS ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_disable() lr=0x82e09e0 ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_disable_cb() lr=0x82e09e0, ok=1 The test script I am using is: import dbus import sys import glib bus = dbus.SystemBus() if len(sys.argv) == 2: path = sys.argv[1] else: manager = dbus.Interface(bus.get_object('org.ofono', '/'), 'org.ofono.Manager') modems = manager.GetModems() path = modems[0][0] print("Connecting modem %s..." % path) modem = dbus.Interface(bus.get_object('org.ofono', path), 'org.ofono.LocationReporting') fd = modem.Request() Regards, Kiran > Also when I tried running "test-gnss" for testing AGPS, I get the > following error(with ofonod daemon running in background): > > *NameError: name 'gnss' is not defined* > Yes, sounds like no modems with the org.ofono.AssistedSatelliteNavigation interface were found. > ** > > Does this mean AGPS is not enabled? If so how can I enable it? > > ** Have you powered up your telit HE 910 via enable-modem? Regards, -Denis _______________________________________________ ofono mailing list ofono(a)ofono.org https://lists.ofono.org/mailman/listinfo/ofono ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using ofono for location service 2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX @ 2015-03-11 16:31 ` Denis Kenzior 0 siblings, 0 replies; 8+ messages in thread From: Denis Kenzior @ 2015-03-11 16:31 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1783 bytes --] Hi Kiran, > Following are the logs: > ./test/gn3 > Connecting modem /he910_0... > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_enable() lr=0x82e09e0 > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_portcfg_check_cb() lr=0x82e09e0 ok=1 > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_enable_cb() lr=0x82e09e0 ok=1 > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_ctl_cb() lr=0x82e09e0 ok=1 > ofonod[2389]: src/modem.c:get_modem_property() modem 0x82e2ba0 property GPS > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_location_reporting_disable() lr=0x82e09e0 > ofonod[2389]: drivers/telitmodem/location-reporting.c:telit_gps_disable_cb() lr=0x82e09e0, ok=1 Everything looks as it should here. > > The test script I am using is: > > import dbus > import sys > import glib > > bus = dbus.SystemBus() > > if len(sys.argv) == 2: > path = sys.argv[1] > else: > manager = dbus.Interface(bus.get_object('org.ofono', '/'), > 'org.ofono.Manager') > modems = manager.GetModems() > path = modems[0][0] > > print("Connecting modem %s..." % path) > modem = dbus.Interface(bus.get_object('org.ofono', path), > 'org.ofono.LocationReporting') > > fd = modem.Request() > What do you expect the script to do actually? Once you obtain the file descriptor, your client must be around to do something with it (e.g. read NMEA strings). As soon as the client(UNIX process) who performed the 'Request()' operation exits, oFono closes the fd and shuts down the NMEA port on the modem. So everything is working as it should. Regards, -Denis ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Using ofono for location service 2015-03-06 17:45 ` Denis Kenzior 2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX @ 2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX 2015-03-12 14:39 ` Denis Kenzior 1 sibling, 1 reply; 8+ messages in thread From: Rajashekharaiah, Kiran KumarX @ 2015-03-12 6:25 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 3737 bytes --] Hi Denis, > Also when I tried running "test-gnss" for testing AGPS, I get the > following error(with ofonod daemon running in background): > > *NameError: name 'gnss' is not defined* > Yes, sounds like no modems with the org.ofono.AssistedSatelliteNavigation interface were found. > ** > > Does this mean AGPS is not enabled? If so how can I enable it? > > ** >> Have you powered up your telit HE 910 via enable-modem? Kiran: I executed in the following order and ppp is up, but still I get the error: *NameError: name 'gnss' is not defined*. ofonod -> enable-modem -> activate-context When I run list-modem I get the following output, which does not list "org.ofono.AssistedSatelliteNavigation": [ /he910_0 ] Features = sms net gprs ussd gps sim Emergency = 0 Powered = 1 Lockdown = 0 Interfaces = org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.Phonebook org.ofono.NetworkRegistration org.ofono.ConnectionManager org.ofono.CallMeter org.ofono.SupplementaryServices org.ofono.VoiceCallManager org.ofono.CallBarring org.ofono.CallSettings org.ofono.CallForwarding org.ofono.MessageWaiting org.ofono.LocationReporting org.ofono.SimManager Online = 1 Model = HE910 Revision = 12.00.004 Type = hardware Serial = 357164040824024 Manufacturer = Telit [ org.ofono.SmartMessaging ] [ org.ofono.PushNotification ] [ org.ofono.MessageManager ] Alphabet = default UseDeliveryReports = 0 Bearer = cs-preferred ServiceCenterAddress = +919845087001 [ org.ofono.Phonebook ] [ org.ofono.NetworkRegistration ] Status = registered Strength = 80 Name = airtel LocationAreaCode = 34181 Mode = auto MobileCountryCode = 404 Technology = umts CellId = 27398329 MobileNetworkCode = 45 [ org.ofono.ConnectionManager ] Powered = 1 Attached = 1 Bearer = hsdpa Suspended = 0 RoamingAllowed = 0 [ org.ofono.CallMeter ] Currency = CallMeter = 0 AccumulatedCallMeter = 0 PricePerUnit = 0.0 AccumulatedCallMeterMaximum = 0 [ org.ofono.SupplementaryServices ] State = idle [ org.ofono.VoiceCallManager ] EmergencyNumbers = 08 000 999 110 112 911 118 119 [ org.ofono.CallBarring ] VoiceOutgoing = disabled VoiceIncoming = disabled [ org.ofono.CallSettings ] HideCallerId = default CallingLinePresentation = enabled VoiceCallWaiting = enabled CalledLinePresentation = disabled ConnectedLineRestriction = disabled ConnectedLinePresentation = disabled CallingLineRestriction = permanent CallingNamePresentation = unknown [ org.ofono.CallForwarding ] ForwardingFlagOnSim = 0 VoiceNoReplyTimeout = 20 VoiceNotReachable = VoiceBusy = VoiceNoReply = VoiceUnconditional = [ org.ofono.MessageWaiting ] VoicemailMessageCount = 0 VoicemailMailboxNumber = VoicemailWaiting = 0 [ org.ofono.LocationReporting ] Type = nmea Enabled = 0 [ org.ofono.SimManager ] Retries = [pin2 = 3] [puk2 = 10] [pin = 3] [puk = 10] MobileCountryCode = 404 FixedDialing = 0 SubscriberNumbers = BarredDialing = 0 CardIdentifier = 89914500050200371777 LockedPins = MobileNetworkCode = 45 SubscriberIdentity = 404450520037177 Present = 1 PinRequired = none Regards, Kiran ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Using ofono for location service 2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX @ 2015-03-12 14:39 ` Denis Kenzior 0 siblings, 0 replies; 8+ messages in thread From: Denis Kenzior @ 2015-03-12 14:39 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 240 bytes --] Hi Kiran, > When I run list-modem I get the following output, which does not list "org.ofono.AssistedSatelliteNavigation": The he910 driver does not support this at the moment. Patches are always welcome. Regards, -Denis ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-03-12 14:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <222E70FA67D72A4FB8EEDF5AF01724ACC99C73@BGSMSX102.gar.corp.intel.com>
2015-03-12 11:56 ` Using ofono for location service Rajashekharaiah, Kiran KumarX
2015-03-12 14:45 ` Denis Kenzior
2015-03-06 11:55 Rajashekharaiah, Kiran KumarX
2015-03-06 17:45 ` Denis Kenzior
2015-03-11 13:06 ` Rajashekharaiah, Kiran KumarX
2015-03-11 16:31 ` Denis Kenzior
2015-03-12 6:25 ` Rajashekharaiah, Kiran KumarX
2015-03-12 14:39 ` Denis Kenzior
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.