Re: GTA02 Setting time from phone network using NITZ ?
On 09/22/2012 10:26 AM, Adam Ward wrote: According to http://www.scribd.com/doc/30428306/54/AT-CTZU-Automatic-Time-Zone-Update I should be able to chat to the modem to get some information. But the following command does not return anything: root@neo:~# chat -vse '' 'AT+CTZU=?' '' '' > /dev/ttySAC0 < /dev/ttySAC0 send (AT+CTZU=?^M) send (^M) This is a gsm fw bug. I was not able to get time from operator, vodafone CZ supports this, but not calypso. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QtMoko / GTA02 Setting time from phone network using NITZ ?
On Sat, 22 Sep 2012 09:55:43 PM Neil Jerram wrote: [snip] > > FWIW, from a quick look at > devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp, I see that the > suspend code includes > > // Turn off timezone notifications. > chat("AT+CTZR=0"); > chat("AT%CTZU=0"); > > and the resume ("wake") code includes > > // Turn on timezone notifications again. > chat( "AT+CTZR=1" ); > chat( "AT%CTZU=1" ); > > and that the code for a CTZU response appears to handle both date/time > and timezone: > > void NeoModemService::ctzu( const QString& msg ) > { > // Timezone information from the network. Format is > "yy/mm/dd,hh:mm:ss+/-tz". > > So maybe I was wrong about time and timezone being separate. I was looking at this code earlier while I was seeking a way to trace what is happening. That is when I was trying to figure out the chat command. See my reply to Timo [1] for some searchings on the specification. > > Also note that > > (1) there could still be missing bits of support higher up, for actually > doing anything useful with this information > > (2) I wonder if it's also necessary to do the "Turn on" actions when the > phone first boots up? This is what I want to trace, but I cannot see how to do it :) I am not clear on whether this is a QtMoko bug or a GTA02 bug, or a combination of the two, so I have changed the subject to reflect this. Do other distributions on the GTA02 have this bug ? [1] http://lists.openmoko.org/pipermail/community/2012-September/067506.html ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
On Sat, 22 Sep 2012 03:56:57 PM Timo Juhani Lindfors wrote: > Adam Ward writes: > > I know that Telstra in Australia sends both. > > Do you know how it sends that? I have been unable to find any kind of > specification that describes this. I only find references to timezone > information. > When my "normal" phone looses the date/time settings, I get prompted for them with a date/time dialogue. After a few seconds this dialogue will disappear and the correct date and time gets populated. I am trying to replicate this now, but the phone will not loose the date/time. I know it happened when I changed networks earlier this month. I went from Telstra to Optus, and it has happened for me on both networks. I figure they both implement NITZ in full. Specification wise, the wikipedia page [1] indicates it is not only timezone setting information. I also get a hit on www.etsi.org when searching for "nitz specification" that references Universal Time [2]. One of the wiki sources indicates the implementation is optional. However searching on "nitz universal time specification" gets some clarification on the issue: not only is it optional, different manufactures have different interpretations [3]. [1] http://en.wikipedia.org/wiki/NITZ [2] http://www.etsi.org/deliver/etsi_ts/122000_122099/122042/08.00.00_60/ts_122042v08p.pdf [3] http://www.3gpp.org/ftp/tsg_sa/tsg_sa/TSGS_06/Docs/PDF/sp-99637.pdf ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
Adam Ward writes: >> >> Time and time zone are two different things. In my (patchy and >> non-scientific) experience, mobile networks often do tell you the time >> zone, but not the time. >> > > I know that Telstra in Australia sends both. My current phone would get the > correct details after traveling between timezones when I was on that network. > I will find out in a few weeks if Optus does the same. FWIW, from a quick look at devices/neo/src/plugins/phonevendors/neo/vendor_neo.cpp, I see that the suspend code includes // Turn off timezone notifications. chat("AT+CTZR=0"); chat("AT%CTZU=0"); and the resume ("wake") code includes // Turn on timezone notifications again. chat( "AT+CTZR=1" ); chat( "AT%CTZU=1" ); and that the code for a CTZU response appears to handle both date/time and timezone: void NeoModemService::ctzu( const QString& msg ) { // Timezone information from the network. Format is "yy/mm/dd,hh:mm:ss+/-tz". So maybe I was wrong about time and timezone being separate. Also note that (1) there could still be missing bits of support higher up, for actually doing anything useful with this information (2) I wonder if it's also necessary to do the "Turn on" actions when the phone first boots up? Regards, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
Adam Ward writes: > I know that Telstra in Australia sends both. Do you know how it sends that? I have been unable to find any kind of specification that describes this. I only find references to timezone information. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
> > Time and time zone are two different things. In my (patchy and > non-scientific) experience, mobile networks often do tell you the time > zone, but not the time. > I know that Telstra in Australia sends both. My current phone would get the correct details after traveling between timezones when I was on that network. I will find out in a few weeks if Optus does the same. > > Do you know that NeronGPS can sync both time and time zone for you? - > obviously, subject to having a GPS fix. > I want to play with the GPS stuff at a later date, but it is a powerdraw as well. In the first instance I would like the datetime to come from the phone network when the network supports it. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
> > Adam, > > I do not know the details of the distribution you are using, but I could > imagine that the part of the software which controls the modem is > 'eating up' the responses of the AT cmds you are sending down with > chat(1). Concerning the time update, I'm using ntpdate(1) > to get the correct time from Internet. > > matthias I had considered that, and I am not sure of how to get around it. I know about ntpdate, but that assumes an internet connection is available. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
Adam Ward writes: > I have a GTA02 which I acquired a few years back and until now I have not > really done anything with it. Now I want to use it as my main phone. > > The automatic setting of the date/time from the providors network (in this > case it is Optus) does not work in qtmoko. The provider does support this as > I have a another phone that gets this information. > > I see there is an old bug from the Nokia days: > http://docs.huihoo.com/qt/qtextended/4.4/release-4-4-3.html > BUG 231983 > > According to > http://www.scribd.com/doc/30428306/54/AT-CTZU-Automatic-Time-Zone-Update > I should be able to chat to the modem to get some information. Time and time zone are two different things. In my (patchy and non-scientific) experience, mobile networks often do tell you the time zone, but not the time. Do you know that NeronGPS can sync both time and time zone for you? - obviously, subject to having a GPS fix. > But the following command does not return anything: > root@neo:~# chat -vse '' 'AT+CTZU=?' '' '' > /dev/ttySAC0 < /dev/ttySAC0 > send (AT+CTZU=?^M) > send (^M) > > syslog shows: > Jan 1 08:13:45 neo chat[1109]: send (AT+CTZU=?^M) > Jan 1 08:13:46 neo chat[1109]: send (^M) > > Is there a way to automatically log the AT chat commands ? > Do I have the correct /dev/tty ? > > More generally, is this a problem with the calypso firmware, or qt extended / > qtmoko or something else ? I'm afraid I don't know about those points. Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: GTA02 Setting time from phone network using NITZ ?
El día Saturday, September 22, 2012 a las 04:26:01PM +0800, Adam Ward escribió: > I have a GTA02 which I acquired a few years back and until now I have not > really done anything with it. Now I want to use it as my main phone. > > The automatic setting of the date/time from the providors network (in this > case it is Optus) does not work in qtmoko. The provider does support this as > I have a another phone that gets this information. > > I see there is an old bug from the Nokia days: > http://docs.huihoo.com/qt/qtextended/4.4/release-4-4-3.html > BUG 231983 > > According to > http://www.scribd.com/doc/30428306/54/AT-CTZU-Automatic-Time-Zone-Update > I should be able to chat to the modem to get some information. > > But the following command does not return anything: > root@neo:~# chat -vse '' 'AT+CTZU=?' '' '' > /dev/ttySAC0 < /dev/ttySAC0 > send (AT+CTZU=?^M) > send (^M) > > syslog shows: > Jan 1 08:13:45 neo chat[1109]: send (AT+CTZU=?^M) > Jan 1 08:13:46 neo chat[1109]: send (^M) > > Is there a way to automatically log the AT chat commands ? > Do I have the correct /dev/tty ? > > More generally, is this a problem with the calypso firmware, or qt extended / > qtmoko or something else ? Adam, I do not know the details of the distribution you are using, but I could imagine that the part of the software which controls the modem is 'eating up' the responses of the AT cmds you are sending down with chat(1). Concerning the time update, I'm using ntpdate(1) to get the correct time from Internet. matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: g...@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
GTA02 Setting time from phone network using NITZ ?
I have a GTA02 which I acquired a few years back and until now I have not really done anything with it. Now I want to use it as my main phone. The automatic setting of the date/time from the providors network (in this case it is Optus) does not work in qtmoko. The provider does support this as I have a another phone that gets this information. I see there is an old bug from the Nokia days: http://docs.huihoo.com/qt/qtextended/4.4/release-4-4-3.html BUG 231983 According to http://www.scribd.com/doc/30428306/54/AT-CTZU-Automatic-Time-Zone-Update I should be able to chat to the modem to get some information. But the following command does not return anything: root@neo:~# chat -vse '' 'AT+CTZU=?' '' '' > /dev/ttySAC0 < /dev/ttySAC0 send (AT+CTZU=?^M) send (^M) syslog shows: Jan 1 08:13:45 neo chat[1109]: send (AT+CTZU=?^M) Jan 1 08:13:46 neo chat[1109]: send (^M) Is there a way to automatically log the AT chat commands ? Do I have the correct /dev/tty ? More generally, is this a problem with the calypso firmware, or qt extended / qtmoko or something else ? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community