**** BEGIN LOGGING AT Fri Sep 17 02:59:57 2010 Sep 17 03:24:59 holtmann: Have the btio issues been solved? Sep 17 06:42:09 pessi: ping? Sep 17 12:06:20 Sep 17 15:02:49 dell-m520 ofonod[20897]: Pcui:> AT+CLCK="SC",0,"1234"\r Sep 17 12:06:20 Sep 17 15:02:49 dell-m520 ofonod[20897]: Pcui:< \r\n+CME ERROR: SIM PIN required\r\n Sep 17 12:07:09 now that's strange, I try to enter pin and modem says that pin is required Sep 17 12:32:06 kvalo: CPIN required? Sep 17 12:32:35 denkenz: modemconf is only for guys running maemo Sep 17 12:33:02 kvalo: dns is known problem Sep 17 12:33:43 pessi: thanks, I'll check CPIN. I'm new with AT commands :/ Sep 17 12:33:52 pessi: ah, good to know about dns Sep 17 12:33:56 sameo: ^ Sep 17 12:36:34 ah crap, I was using wrong script :) Sep 17 12:36:42 * kvalo hides in the corner Sep 17 12:36:50 ..and uses enter pin Sep 17 12:43:18 pessi, kvalo: that's not known to me. Sep 17 12:45:28 with huawei I get nameservers, so I assume this is n900 specific bug? Sep 17 12:48:35 kvalo: n900 gives you no nameservers? Sep 17 12:49:06 akiniemi: I see them in the connman service, but resolv.conf is empty Sep 17 12:49:55 kvalo: If you use DNS proxy, then you will never see them. Sep 17 12:50:07 holtmann: he doesn't Sep 17 12:50:08 The /etc/resolv.conf stays at 127.0.0.1 Sep 17 12:50:37 That is weird then. I have no problem with that. Sounds like a race condition. Does list-contexts from oFono has the nameservers in there. Sep 17 12:50:41 holtmann: I don't use dns proxy, with huawei I see my operator's servers Sep 17 12:51:23 Check list-contexts script if oFono reports them correctly. Sep 17 12:51:58 it has to, because I was able to see them with 'cmcc show saunalahti'. but I'll try again Sep 17 12:53:36 pessi: btw, I still see two "Elisa" contexts Sep 17 12:56:08 [ /isimodem1/context1 ] Sep 17 12:56:08 Username = Sep 17 12:56:08 Protocol = ip Sep 17 12:56:08 Name = 3G Connection Sep 17 12:56:08 Settings = { Interface=gprs0 Netmask=255.255.255.255 Method=static DomainNameServers=193.229.0.40,193.229.0.42, Address=85.156.54.89 } Sep 17 12:56:10 kvalo: Remove the /var/lib/ofono and start fresh. Latest git repos should not give you double contexts. We fixed that. Sep 17 12:56:31 holtmann: ok, will try that Sep 17 12:56:38 So they are there. No idea why ConnMan doesn't like them :( Sep 17 13:01:12 holtmann: nice, now there's only one context. thanks! Sep 17 13:02:41 pessi: I see 20 seconds stalls quite often: Sep 17 13:02:44 4 bytes from 130.233.224.254: icmp_req=14 ttl=123 time=50.8 ms Sep 17 13:02:44 64 bytes from 130.233.224.254: icmp_req=15 ttl=123 time=78.5 ms Sep 17 13:02:44 64 bytes from 130.233.224.254: icmp_req=16 ttl=123 time=19015 ms Sep 17 13:02:44 64 bytes from 130.233.224.254: icmp_req=17 ttl=123 time=18045 ms Sep 17 13:03:12 kvalo: you use meego on n900 or external n900? Sep 17 13:03:35 Crappy network, crappy antenna, missing calibration, ... Sep 17 13:03:35 All of these come to mind ;) Sep 17 13:03:53 or all together ;) Sep 17 13:03:55 this is middle of nowhere, but coverage is quite good Sep 17 13:04:02 pessi: external Sep 17 13:04:42 I wonder if we get technology (HSDPA) changes? Sep 17 13:05:12 pessi: at least older nokia phones were always switching between 2g and 3g in my place Sep 17 13:05:48 next time I go to the city, I'll test there and see if I get similar symptoms Sep 17 13:12:21 kvalo: The ISI driver has RAT support. Just lock is down to 2G or 3G. Sep 17 13:12:41 set-tech-preference Sep 17 13:13:15 holtmann: cool, I'll try that. thanks Sep 17 13:15:59 kvalo: that could be a handover from 3G to 2G Sep 17 13:17:40 I did set-tech-preference and I haven't seen that 20s stall yet. Sep 17 13:24:46 pessi, akiniemi: I haven't seen these stalls at all when using cellular data within n900 (ie. normal maemo stuff, no pc connected). it seems that something is very different when using ofono Sep 17 13:59:52 holtmann: I replied to you about huawei initialisation. do you have any ideas? I have about an hour before I have to go Sep 17 14:00:32 kvalo: Why is post_online reached with an invalid SIM state? Sep 17 14:01:17 denkenz: I only see the valid state after I have called sim_inserted() Sep 17 14:01:47 I'm confused now Sep 17 14:01:59 maybe it has something to do CFUN like you mentioned yesterday... Sep 17 14:02:32 So basically you can only get to post_online once the SIM PIN has been entered Sep 17 14:03:07 this was the case even with sim lock disabled Sep 17 14:03:17 I'll test it again just to be sure Sep 17 14:03:45 If that is the case, then the firmware is being stupid Sep 17 14:03:59 Basically it goes something like this: Sep 17 14:04:21 You plug in dongle, Real Time OS on dongle starts Sep 17 14:04:32 udev detects device, oFono signals its existence Sep 17 14:05:14 At this point, both the Real Time OS and oFono are trying to initialize Sep 17 14:05:20 So there's a race Sep 17 14:05:49 Something (the driver) needs to throttle oFono until the modem is truly ready Sep 17 14:06:16 There are really two paths: Sep 17 14:06:21 sim pin set, and sim pin not set Sep 17 14:06:36 let's first worry pin not set case Sep 17 14:07:26 So the unset case is actually tricky Sep 17 14:08:09 What you need to do is check CPIN? when powering up the modem Sep 17 14:08:29 If the PIN is READY, you need to wait until the sim is initialized Sep 17 14:08:35 denkenz: from huawei.c? Sep 17 14:08:58 It is a good start for now Sep 17 14:09:11 We might have to migrate this with a quirk to sim atom driver Sep 17 14:09:21 But lets get something working reliably Sep 17 14:09:43 Only after it has been initialized, signal sim_inserted Sep 17 14:17:28 kvalo: It is still funny that you reach post_online state with an invalid sim state Sep 17 14:17:31 denkenz: I just sent a mail showing how my state doesn't chagnge Sep 17 14:17:40 *change Sep 17 14:17:42 post_online implies IMSI has been read Sep 17 14:18:31 denkenz: so sim_inserted() somehow triggers my modem to initialise Sep 17 14:18:39 Has this modem ever gone into sim state 1? Sep 17 14:19:04 It might be that this particular huawei firmware is weird and only does sim state 1 when it registers to the network Sep 17 14:19:21 yes, after sometime call to sim_inserted() Sep 17 14:19:39 sim_inserted doesn't do anything magic Sep 17 14:19:56 It just tells oFono there's a SIM and it can be queried for CPINs and stuff Sep 17 14:20:14 ok, I'll try to find what triggers it Sep 17 14:20:21 netreg stuff then, maybe? Sep 17 14:20:40 Dunno, check your logs Sep 17 14:20:55 does SIMST get signaled shortly before/after a CREG notification? Sep 17 14:21:43 Because that's 8 seconds with an invalid sim state from your Email Sep 17 14:21:46 That is an eternity Sep 17 14:22:00 denkenz: I'm not that good with ofono logs :) but let me grep a bit Sep 17 14:22:57 Actually 2 seconds / timeout, so that's 15+ seconds Sep 17 14:22:57 Sep 17 17:07:19 dell-m520 ofonod[2331]: Pcui:< \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n Sep 17 14:23:00 Sep 17 17:07:19 dell-m520 ofonod[2331]: drivers/atmodem/sim.c:at_crsm_read_cb() crsm_read_cb: 90, 00, 24 Sep 17 14:23:03 Sep 17 17:07:19 dell-m520 ofonod[2331]: Pcui:> AT+CRSM=178,28480,5,4,24\r Sep 17 14:23:06 Sep 17 17:07:19 dell-m520 ofonod[2331]: Pcui:< \r\n+CRSM: 144,0,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"\r\n\r\nOK\r\n\r\n^SRVST:1\r\n\r\n^MODE Sep 17 14:23:09 :5,4\r\n\r\n^SIMST:1\r\n Sep 17 14:23:36 Sep 17 15:43:29 dell-m520 ofonod[21354]: Pcui:> AT+CRSM=178,28480,5,4,24\r Sep 17 14:23:36 Sep 17 15:43:29 dell-m520 ofonod[21354]: Pcui:< \r\n^SRVST:1\r\n Sep 17 14:23:36 Sep 17 15:43:29 dell-m520 ofonod[21354]: Pcui:< \r\n^MODE:5,4\r\n\r\n^SIMST:1\r\n Sep 17 14:24:29 And when does CFUN=1 get sent in these logs? Sep 17 14:24:51 Sep 17 15:43:28 dell-m520 ofonod[21354]: Pcui:> AT+CFUN=1\r Sep 17 14:25:10 So 1 second, why are we in an invalid sim state? Sep 17 14:25:56 Something doesn't add up Sep 17 14:26:02 Sep 17 17:07:18 dell-m520 ofonod[2331]: Pcui:> AT+CFUN=1\r Sep 17 14:26:46 what does AT+CFUN=1;+CFUN=5 do? Sep 17 14:27:00 it's in huawei_enable() Sep 17 14:27:19 That is pessi's change, basically it is attempting to power on the huawei and put it into offline state Sep 17 14:27:32 CFUN=5 means rx/tx off Sep 17 14:27:35 so 5 is offline? Sep 17 14:27:38 ah, ok Sep 17 14:27:38 e.g. radio off Sep 17 14:30:22 So now I'm really confused, is your SYSINFO reporting a different sim state than SIMST? Sep 17 14:30:28 Or is SIMST getting ignored ;) Sep 17 14:31:52 I haven't noticed any differences between the two. where did you see that? Sep 17 14:32:42 I'm just looking at the code, we have: Sep 17 14:32:43 /* follow sim state */ Sep 17 14:32:43 g_at_chat_register(data->pcui, "^SIMST:", simst_notify, Sep 17 14:32:43 FALSE, modem, NULL); Sep 17 14:33:04 and simst_notify should set the sim state to 1 Sep 17 14:33:19 So ~1 second after CFUN=1 we should be AOK Sep 17 14:33:34 Yet your log shows you polling sim state for 15 seconds and it being 0 Sep 17 14:33:55 (the one in your email reply to ofono ML) Sep 17 14:34:07 but that's without sim_inserted() call Sep 17 14:34:30 and hence set_online() won't be called Sep 17 14:34:38 AFAIK Sep 17 14:35:05 Yeah, but you still set the internal state variable, no? Sep 17 14:35:39 what do you mean? I didn't see any SIMST messages in that case. Sep 17 14:36:10 whoa Sep 17 14:36:39 I'll send a full log to the ml. what information should I hide? IMSI? Sep 17 14:37:02 Might be a good idea Sep 17 14:37:08 anything else? Sep 17 14:37:25 Your subscriber numbers maybe, if you have them set Sep 17 14:37:33 ok, thanks Sep 17 14:38:28 So try taking out CFUN=5 and see if this stuff works normally Sep 17 14:38:36 I suspect pessi never tested the CFUN=5 change Sep 17 14:39:33 ok Sep 17 14:40:33 me? testing? naaah Sep 17 14:41:47 and I managed to fish out my huawei modem from junk box and it turned out to be ZTE. same qualcomm crap, I suppose, but not huawei Sep 17 14:42:02 same quality ;) Sep 17 14:42:04 pessi: and no huawei is alike :) Sep 17 14:44:00 yeah, now I get SIMST earlier Sep 17 14:44:51 Ok, so maybe we have to it like this: Sep 17 14:45:31 cfun=1, query pin state, if ready, wait until simst:1 then send cfun=5 Sep 17 14:47:03 hmph, and where to find a windows pc to say at+zcdrun? all the managers have left Sep 17 14:47:07 ok, I'll try that next week. unless someone else is faster :) Sep 17 14:48:29 kvalo: nod Sep 17 14:48:40 denkenz: so simst:1, cfun=5 and then sim_inserted()? Sep 17 14:49:19 kvalo: Probably like simst:1, cfun=5 -> callback, in the callback set_powered(TRUE); sim_inserted(TRUE) Sep 17 14:49:44 just thinking out loud Sep 17 14:50:34 I was just about to ask about power. so now I enabled it when simst:0 Sep 17 14:50:58 so you think I should do it on simst:1? Sep 17 14:51:07 Powered is less important actually Sep 17 14:51:21 oFono will not do anything until sim_inserted is signaled Sep 17 14:51:31 However, there's a brief second where your radio is on Sep 17 14:51:49 so if you're on an airplane and plug in your dongle, that is bad ;) Sep 17 14:51:58 heh Sep 17 14:52:58 ok, I now understand this better. thanks for the help Sep 17 14:53:02 so you can do cfun=1 -> set_powered(true), then sim pin query, simst:1, cfun=5 -> sim_inserted(TRUE) Sep 17 14:54:25 oh yeah, there's also that 255 state. Sep 17 14:54:39 that's why I added that polling in the first place Sep 17 14:54:58 because I don't see any SIMST messages when modem goes from 255 to 0 Sep 17 14:55:11 Yeah, and some huaweis don't even bother reporting SIMST in the first place Sep 17 14:55:17 I think jprvita's did that Sep 17 14:55:59 I'll take a look at it first thing monday morning. but have a nice weekend everyone Sep 17 14:56:22 thanks, you too Sep 17 14:57:00 thanks, I will :) Sep 17 17:18:45 there are few items in the PRD that needs our response -- can you please help me answer them by answer Y or N whether it will be supported by MeeGo 1.2 assumption by end of year Sep 17 17:19:38 oops Sep 17 20:49:25 denkenz : few questions on CME and SS error mapping? Sep 17 20:49:38 yeah? Sep 17 20:50:34 is there any spec which has information on mapping of SS errors specified in 3gpp ts 24.080 to cme errors? Sep 17 20:51:07 I'm not aware of one Sep 17 20:54:19 then how are the error codes from network are mapped to the the CME errors? Sep 17 20:54:47 for example in CUSD, CCFC cases Sep 17 20:56:42 Don't know, see error codes in 24.008 and 27.007 and compare them to 24.080 Sep 17 20:57:37 i have already compared, there is no one to one match Sep 17 20:58:21 then falling back to 'no cause can be specified' might be better Sep 17 20:58:30 i think so Sep 17 20:59:02 In AT Modems, I think thats the best way Sep 17 20:59:35 does isi provide more info? Sep 17 21:00:10 ideally, it should provide Sep 17 21:01:58 So I suggest we use 'no cause given' at first Sep 17 21:02:05 And if we find a better way, we fix it Sep 17 21:03:27 isi provides more information Sep 17 21:04:13 ok Sep 17 21:04:23 Yeah, ISI is overall a better protocol and gives way more info/control Sep 17 21:04:57 But both need to work... Sep 17 21:06:58 ok **** ENDING LOGGING AT Sat Sep 18 02:59:57 2010