libera/#maemo/ Sunday, 2022-01-09

KotCzarnyn9 is so dumb, 'you need sim card before you can use update time automatically'08:54
KotCzarnyeven if you have wifi connected08:55
KotCzarnywhat idiot thought it was a good design08:55
siceloisn't N900 like that too?09:51
sicelobecause they both don't do ntp time ootb, but do nitz instead, hence sim card09:51
KotCzarnystill, bad design09:54
sicelo:-)10:22
sicelonot sure if it's just mine, but i noticed android also doesn't do ntp natively ... they do nitz as well10:22
KotCzarnymaybe depends on version/build10:29
KotCzarnymine always syncs time whenever there is any working net10:30
bencohmaybe they didn't want to mess with it because of the side-effect it might have on some networks10:42
KotCzarnythen just add configurability, and let user decide10:47
KotCzarnyat this moment it doesnt work if someone wanted to use n9 as a wifi only calling/watching10:48
sicelohttps://source.android.com/devices/tech/connect/time-source ... at least all along, android preferred nitz.10:49
sicelojust tested that adb command on my android 11 device, and sure enough, it gets nitz time10:49
KotCzarnytry disabling gsm , desynch time and check if it gets time with wifi10:49
siceloKotCzarny: why not install ntpdate or similar on the N9? at least that's what i did on my N900, and added an ifup hook. so each time i connect to a network, i get update instantaneously10:50
KotCzarnysicelo, i'm not saying it's not possible, but ootb it's a bad design10:50
KotCzarnyand requires user to search for working repos, install few packages, etc10:51
siceloit does, but it's wrong10:58
sicelo:-)10:58
sicelohonestly, that's why even on android i installed an ntp client10:58
KotCzarnyi havent touched any droid higher than 8-9, so hard to say what they are doing now10:59
siceloor maybe i should take out my sim ...10:59
KotCzarnyenable plane mode?10:59
KotCzarnyand turn on wifi, should be the same outcom10:59
siceloi was on plane mode11:00
siceloand got a time update, which is about 3 minutes behind the correct time11:00
KotCzarnylol?11:00
sicelowhat?11:01
KotCzarny3 minutes desynch is a lot11:01
KotCzarnyunless you mean 'it got correct time with a delay of 3 min'11:01
siceloi'm sure it's nitz ... i know my operator's clock is out of sync (that's precisely why even on android i installed an ntp client)11:01
sicelojust done it without sim. still time is wrong by almost 3 min ... i get correct date though11:03
siceloso yeah, no idea what's up with android and ntp11:03
KotCzarnyi think you can call 112 without sim11:04
siceloof course11:04
siceloso yes ... i'm likely being nitz'd either way :D11:04
sicelothat link from android.com says ntp is first preference from Android 12 onwards11:05
siceloso i'm sure you're also not really getting ntp time :P11:05
KotCzarnybut n9 is stubborn and doesnt want to get time wiithout *working* gsm network11:05
sicelonow i have to juggle the time thing again on my phone :'(11:07
sicelobecause the ntp application isn't root (and phone isn't rooted), it can't set the time directly11:07
KotCzarnydont have spare phone for tests?11:08
siceloi was testing on my recent Android 11 phone - my daily. I know the behavior of my Android 8 one since I used that one for even longer11:09
joergsicelo: isn't 3 min the offset meanwhile accumulated on raw GPS time?12:59
joergoops nope >>such that there is now an 18 second difference between GPS time and UTC time<<13:11
joerg3 minutes must be a total glitch of your NTP or NITZ13:12
drathir_torjoerg: keep on mind gps sync (cold start) could take a time...13:13
drathir_torjoerg: however not sure if gsm network sync is possible in emergency (no sim) connection mode...13:14
drathir_torjoerg: in 4 and especially 5G that could in theory works bc them as good remember heavely operate at time based sync with bts but not sure if that shared with user...13:17
joergthat's a good question but alas impossible to answer since the radio stacks are never open source13:30
joergjust occurred to me right now that the modem might still _receive_ signals even in no_SIM / airplane mode13:31
joergthen, it's indeed plausible the modem searches for carriers to do a 911 call when needed13:32
joergand searching for carrier means decoding the data in carrier13:32
drathir_torjoerg: hmmm... not sure of that if passive listen have any reliable usage purposes even if able to collect nerby bts info in such mode i assume, but w/o actively ping the station for extra data them could be not as accurate i assume... like there is possible made list of backup tower to switch into, but w/o active ping tover the data could be too inaccurate for use...13:38
joergto ping a tower you first have to get to know of the frequency and ID of the tower, so the data is highly useful to shorten / eliminate the scanning time when dialing 911. Old featurefones had "select network / available networks" function that took up to several minutes to find all networks available in your location13:43
joergthis data got even stored to sim so on next power-up the time needed to scan could get shortened13:43
bencohn900 has that too :)13:46
joergok, directly from Harald Welte:  <LaF0rge> joerg: NITZ is in MM INFO, and that happens only over a fully-established bi-directional dedicated channel14:06
joergIOW no time data without SIM and login, or actually establishing a 911-call14:07
sicelomaybe it wasn't nitz ... but whatever it is, it gives me time that's 3 minutes behind correct ntp time14:20
siceloanyway, i'd choose n900/n9 behavior any day, hehe. better to know you don't have correct time, than to think you have correct time, and wonder why your OTP codes don't work right14:20
joerg:-)14:25
joerghttps://en.wikipedia.org/wiki/Mobility_management  MM INFO14:25
joerghaha! >> Additionally, unlike 3GPP2, which transmits GPS-sourced, millisecond resolution time via the sync channel, for NITZ, the "accuracy of the time information is in the order of minutes".[<< https://en.wikipedia.org/wiki/NITZ14:41
joerg>><sicelo> just done it without sim. still time is wrong by almost 3 min<< embedded RTC?14:58
sicelommm, i don't know, but i doubt14:59
joergsimple to test: wrap phone tightly into alu foil before powering up ;-)15:00
joergand don't get fooled by false assumptions like I were: I bought a dedicated microwave oven as poor man's faraday cage | anechoic chamber. Turned out the phone still had signal inside the oven15:03
joerglambda/2 seals, haha. Only work for a particular frequency they are tuned to15:04
KotCzarnylol15:05
KotCzarnyisnt gsm freq lower than mw ?15:06
joergyep, GSM is15:06
joerg900/1800 vs microwave 240015:07
joergor US: 850/190015:07
KotCzarnyyeah, so it should block it to some extent15:07
KotCzarnymaybe phone had quite good sensitivity15:07
joergwell, a lambda/2 seal works by tuning the exact geometry of a gap and edges to match the wavelength of the particular frequency you want to block. All other ferquencies (except odd harmonics) may pass15:09
KotCzarnywell, foil the door then, i guess15:09
joergnowadays all microwave ovens use lambda/2 seals15:09
joergoh sorry, those are named lambda/4 seals15:25
joergaka quarter-wave choke15:32
joerghttps://patents.google.com/patent/US6867404B2/en15:35
joergalso nice https://www.freepatentsonline.com/3956608.pdf same topic15:44
joergI could have known, learned it the hard way15:44
joergKotCzarny: indeed the signal was significantly attenuated, but not as much as would be needed to block out the phone from network16:01
joergactually if you own a microwave, it's very simple to test: place mobile phone into oven, DO NOT POWER OVEN UP, and - using a second phone - call the number off phone in oven16:05
KotCzarnyor even simpler, just look at the screen16:05
joergI just did and received a call without any indications of any problem16:05
KotCzarnydisabling screen blanking first though16:06
joerglooking at the screen is a tad tricky inside microwave oven16:06
KotCzarnymmm, flashlights16:06
KotCzarnyjust kidding16:06
joergalso doesn't tell you if the phone may transmit out of the chamber16:06
KotCzarnyscren is visible16:06
KotCzarnywouldnt it lose conenctivity as it pings the tower periodically?16:07
joergphone starting to ring though is a clear indication of a two-way communication established between bts and phone16:07
joergphones don't ping bts very frequently, only up to once every 10 hours16:08
KotCzarnystill interesting fact, i would think that 0.5-1mm metal walls would block the gsm anyway16:08
joergthe walls do, the o.5mm gap between door rim and oven body however only blocks 2400MHz16:09
joergI thought exactly like you, until I bought me an oven for exactly that purpose. 10 minutes after unboxing, I packed it back into its box ;-D16:10
KotCzarnywouldnt just replacing the plastic seal with more metallic one help greatly?16:11
joergno, the opposite is true. The gap may be as small as a few micrometers. As long as there's no tight galvanic contact on 100% of area, such gap will leak mirowaves16:12
joergunless it's designed as quaterwave-choke, which you defeat by adding anything metallic there16:13
joergI seen very old comercial microwave ovens back in 1975 or somesuch, which indeed hat a metal fabric elastic seal and a plain stainless steel rim on oven body16:14
joerghad*16:14
KotCzarnyso it would be possible to still convert it into a quite good faraday cage16:15
joergfor this to work you need proper contact of fabric to door steel sheet 100% of length where it's mounted to door, and that fabric directly touching the metal body of oven when door closed16:16
joergand even then it's tricky to get those seals tight16:17
joergalternative: steel can (cookie can, coffee, sugar, whatever) with steel lid. May or may not work16:18
KotCzarnymight be too thin16:18
KotCzarnybut i guess phone ring test is easy to do16:19
joergif the lid has electrical contact to the can, it might work. No matter how "thin" the wall of the can16:19
joergwhat always works: alu foil bag, edges of foil carefully folded a 2 or 3 times16:21
joergor, if you're curious, use wire mesh, with mesh size <2mm16:23
joerginstead of the alu foil16:24
joergyet to get tested: using rescue blanket, you can see through that one a maybe 0.1%16:25
joergprobably too dark to read the display16:25
joerganyway rescue blanket has only one electrically conductive side, if at all16:25
joergso you'd need to make a real sack of one seamless piece tied together with a zip tie in one point16:27
joergsilver side on the inside, hoping the zip tie will create some electrical contact between the pleats16:28
joergmulti-layer, i.e. wrapping a sheet of foil several times around the phone, first one direction to form a tube, then rolling up the 2 ends of that tube several turns, should work too16:31
joerg_should_, I'm not sure16:32
joergmay only steel can I have here to test is filled with sugar :-/16:36
joergmy*16:36
KotCzarnyi use plastic jars, with quite strong walls16:36
KotCzarnyit's nice to see what is inside16:37
KotCzarny:)16:37
joergof course, but such stuff is almost unobtainium here meanwhile16:37
KotCzarnyput the phone inside pc case16:37
KotCzarny:)16:37
joergwell, at least not found frequently "in the wild"16:37
KotCzarnyj/k16:37
joergindeed a PC case is _supposed_ to be RF-tight. But usually isn't16:38
KotCzarnyyeah, lots of holes16:39
drathir_torsicelo: oh and in theory You should normally get ntp sync over wifi too...20:19
sicelotheory is the keyword ;)20:22
sicelowhatever the phone is using to get time sync when i'm on wifi with plane mode on or sim out, i get time that's 3 min behind. i guess that's ntp. as for what servers the thing uses, i'm not even sure i want to know20:23
* drathir_tor now wonder if fridge would block better than microwave... ^^ ;p20:24
KotCzarnyfridge has a rubber seal on the door, ie. wide open for the em waves to go20:24
KotCzarnyhttps://source.android.com/setup/start/android-12-release20:25
KotCzarnyStarting in Android 12, the framework prioritizes the Network Time Protocol (NTP) time source over the Network Identity and Time Zone (NITZ) source by default.20:25
siceloat least using a real ntp client has been working reliably for me, so i'm good. android isn't really something i have patience to tweak a lot20:25
KotCzarnyhttps://source.android.com/devices/tech/connect/time-source20:26
KotCzarnyif you have adb you can try some commands20:26
KotCzarnyTo check how the device time is set, run the following command:20:26
KotCzarnyadb shell dumpsys time_detector20:26
siceloi did :p20:27
siceloi pasted this link earlier20:27
KotCzarnyahm20:27
KotCzarnyi just got back home20:27
KotCzarnyand didnt scroll far enough20:27
KotCzarnyanyway, it seems droid12 prefers ntp over nitz20:28
drathir_torsicelo: more crazy idea fm rds sync ?20:28
KotCzarnyadb shell settings put global ntp_server <new-ntp-server>20:28
siceloyes, i have 11 and 8, and 4 on the droid 420:28
KotCzarnyadb shell settings get global ntp_server20:29
KotCzarnycheck what it is configured to20:29
siceloand really, i'm happy with my setup on android with a third party ntp client. we were on N9/N900 :-)20:29
KotCzarny:)20:29
sicelodrathir_tor: sync time from fm? :D20:32

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!