**** BEGIN LOGGING AT Tue May 25 02:59:57 2010 May 25 04:54:50 denkenz: what about my patches to oFono, any comments? May 25 07:25:47 holtmann: take a look on patches 1 to 3 from my last patch series on oFono mailing list, there is a gdbus change there and the same change to the -d option I did for BlueZ. May 25 07:34:16 Why this is_registered() thing? May 25 07:36:02 holtmann: see patch 2/9. In hfp we need that to avoid call the Disconnect method if the interface is not there anymore. May 25 07:36:22 we did a hack to fix this for the release 0.18 May 25 07:36:53 my patch intends to replace this: 766a0bcfa50069dbdfe7ddae7018e963e73f95ec May 25 07:38:37 I don't consider this a hack. May 25 07:38:59 Adding the is_registered is a hack for me since you just lost track of what you have done on D-Bus. May 25 07:41:54 Ok, so let the code as is. May 25 07:43:03 holtmann: and patch 3/9 adds the OPTIONAL_FLAG to -d option. May 25 07:43:16 That is fine with me. May 25 07:44:03 Ok, nice. May 25 08:01:16 There's a unit test that keeps failing: May 25 08:01:16 /testsms/Test SMS Assembly Serialize: ** May 25 08:01:18 ERROR:unit/test-sms.c:1118:test_serialize_assembly: assertion failed: (l != NULL) May 25 08:10:32 akiniemi: You might have to wait until Denis wakes up. May 25 11:23:25 ofonod: double free or corruption (out): 0x00000000006df1e0 *** May 25 11:23:51 from gdb: May 25 11:23:57 #7 0x00007ffff7bd58a6 in udev_device_unref () from /lib/libudev.so.0 May 25 11:23:57 #8 0x000000000040fc5e in udev_event (channel=0x6da660, condition=G_IO_IN, user_data=0x6d9140) at plugins/udev.c:466 May 25 11:24:00 #9 0x00007ffff79328c2 in g_main_dispatch (context=0x6d2000) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:1960 May 25 11:24:20 I was plugging and unplugging my huawei modem May 25 11:26:28 I had some patches of my own, though May 25 12:07:04 kvalo: Possible, but I haven't seen that yet. May 25 12:07:28 Sure that this is udev_device_unref? Can we get the full backtrace. May 25 12:07:50 denkenz: So I am going for the next release soon. What pending patches do you have? May 25 12:08:38 holtmann: I'll send the full backtrace to the list May 25 12:09:01 Please also include anything that might have shown up with OFONO_AT_DEBUG=1. May 25 12:11:43 holtmann: I was able to reproduce it three times already May 25 12:12:21 but first lunch :) May 25 12:47:34 kvalo: Do you see my responses on the mailing list. For some reason, I don't see my own emails :( May 25 12:49:01 akiniemi: Hmm, test-sms works for me May 25 12:50:04 holtmann: Go ahead with the release, I can wait to push for a little bit, still need to cleanup the pending patches May 25 12:50:37 denkenz: I will see about Kalle's patches. Seems he got most of the Huawei stuff working. Please have a second look at them. May 25 12:50:41 Might want to review kvalo's gprs patches though May 25 12:50:51 I did. Just my emails don't make it to the list today. May 25 12:51:39 heh, any highlights? May 25 12:54:53 We will see. We might get Huawei working. May 25 12:57:27 kvalo: how about treating SIMST properly, as a sim inserted condition May 25 12:57:38 kvalo: You don't actually need to hack around with the powered state May 25 12:57:57 holtmann: nope, I don't see any mail from you May 25 12:58:27 Also, whats the point of using SYSINFO and SIMST? May 25 12:59:05 denkenz: I haven't looked at sim insertion code at all. May 25 12:59:37 denkenz: I'm using SYSINFO in case SIMST comes fast and we miss it May 25 12:59:50 kvalo: Ok, so SYSINFO is used for query, fair enough May 25 13:00:05 I should have added a comment for that May 25 13:00:06 kvalo: sim insertion is easy, just remove ofono_sim_inserted from pre_sim May 25 13:00:27 kvalo: and notify ofono_sim_inserted when SIMST/SYSINFO tell you sim is ready May 25 13:00:30 heh, too easy ;) May 25 13:03:45 kvalo: btw, for numbers you don't care about, feel free to use skip_next May 25 13:04:01 denkenz: cool May 25 13:04:41 + g_at_chat_send(data->chat, "AT^SYSINFO", NULL, sysinfo_cb, modem, NULL); May 25 13:04:50 Always send a prefix for AT commands May 25 13:05:13 The huawei plugin abuses this a bit May 25 13:05:58 + /* follow sim state */ May 25 13:05:59 + g_at_chat_register(data->event, "^SIMST:", huawei_simst_notify, May 25 13:06:01 + FALSE, modem, NULL); May 25 13:06:10 Do the registration only after powered has been set to true May 25 13:06:36 denkenz: I guess I don't need to check the sim state in huawei plugin at all? sim.c handles that, right? May 25 13:07:00 it should May 25 13:07:16 its fine to check it for race condition between SIMST and SYSINFO May 25 13:07:17 at least ofono_sim_inserted_notify() does May 25 13:07:26 both ways should work May 25 13:07:46 I'll leave the sim_state to huawei pluging May 25 13:07:50 plugin May 25 13:08:02 Btw, in theory SIMST can notify us of SIM removed too May 25 13:08:36 I was actually to do that also May 25 13:08:50 so if SIMST is zero, call sim_notify(false) May 25 13:09:55 yep May 25 13:10:22 you can also do it this way: May 25 13:10:38 cfun=1 -> sysinfo? -> register for SIMST May 25 13:11:14 but isn't there a race then? May 25 13:11:33 why? May 25 13:11:55 Unless the firmware sends us the SIMST during SYSINFO execution May 25 13:12:05 what prevents that? May 25 13:12:31 In general unsolicited notifications should not be sent during command execution May 25 13:12:43 Some modems fuck this up (like the Freerunner) May 25 13:12:55 I was just about to ask can we trust that :) May 25 13:12:56 leave it as is if you're worried May 25 13:13:09 ok May 25 13:32:09 denkenz: I did the sim inserted and a problem is that voicecall commands are executed too early: May 25 13:32:13 May 25 16:30:08 tukki ofonod[12092]: > AT+CRC=1\r May 25 13:32:17 May 25 16:30:08 tukki ofonod[12092]: < \r\n+CME ERROR: SIM busy\r\n May 25 13:32:57 or did I do something wrong, I have to check May 25 13:34:52 no mistake May 25 13:35:22 should I move ofono_voicecall_create() to post_sim()? May 25 13:37:37 yeah, that's one way to do it May 25 13:37:48 denkenz: but is that ok? May 25 13:39:38 kvalo: you cannot possibly receive calls if sim is not ready May 25 13:40:18 add watch for sim state and say +crc=1 in post sim? May 25 13:43:13 pessi: true May 25 13:43:32 pessi: I'll look at that option also. I just don't have any hardware to test voicecalls May 25 13:44:29 all plugings call ofono_voicecall_create() from pre_sim. hmm May 25 13:46:41 so you can make emergency call May 25 13:47:04 ah May 25 13:47:24 I really do not want to touch atmodem/voicecall.c :) May 25 13:49:08 blah, I just ignore the errors for now. with my modem it's not possible to make calls anyway. May 25 13:59:12 We should really remove voicecalls from datacard modems May 25 13:59:23 its pointless May 25 14:02:17 Only the em770 can in theory do voicecalls, so feel free to remove it from huawei plugin May 25 14:03:53 denkenz: ok, I'll send a patch May 25 14:13:18 kvalo: May 25 14:13:20 + } else if (gcd->state == STATE_DISABLING) { May 25 14:13:21 + cbd = cb_data_new(gcd->down_cb, gcd->cb_data); May 25 14:13:25 Err, how about using ppp_shutdown? May 25 14:13:27 holtmann: can you resend your comments? May 25 14:13:41 CGACT is useless there May 25 14:14:05 actually, that entire if else makes no sense May 25 14:14:09 denkenz: I don't have the patch in front of me, but shouldn't that be in ppp_disconnect()? May 25 14:14:39 you get a ppp disconnect when the context is down May 25 14:14:58 true May 25 14:15:07 so sending CGACT (to deactivate the context) is useless ;) May 25 14:15:14 sure is :) May 25 14:16:36 Rest seems fine May 25 14:16:47 cool May 25 14:17:19 And you probably don't need the timeout patch May 25 14:17:20 now I need to fix connman to work without gateway and then I can finally (hopefully?) use my 3G from UI :) May 25 14:17:38 denkenz: otherwise connman is in some weird state May 25 14:17:40 since you won't be sending the CGACT May 25 14:17:48 ah May 25 14:17:53 yeah, very good point May 25 14:18:45 The hup is a separate thing that we need to fix May 25 14:19:03 For now your hardware can be activated once and deactivated, then you need to reboot the modem ;) May 25 14:19:06 oh yeah. I really want that one fixed :) May 25 14:19:15 yeah, that's not a problem May 25 14:19:22 as long as ofono doesn't crash :) May 25 14:19:41 nod May 25 14:21:03 pessi: About the opaqueness for EFiccid, the spec only mentions this for 1st G sims May 25 14:21:11 pessi: Is this still the case for 2G+? May 25 14:37:59 holtmann: For Daniele's patch, I imagine we'd need the proper automake magic too May 25 14:38:22 holtmann: Or is dbus-glib part of glib? May 25 14:49:10 denkenz: We are not including dbus-glib. Ever. May 25 14:49:33 That is the GObject based crack. May 25 14:50:05 holtmann: Ok, feel free to reply then, this is for a .c example May 25 14:50:12 Using libdbus plain and simple from command line tools is easy enough. May 25 14:50:39 Since my emails don't make it to the mailing list today, I have to wait. May 25 14:51:52 holtmann: I hope you get it fixed May 25 14:52:15 weird, very seldom I see this after ppp shutdown: May 25 14:52:16 They are just queued up somewhere. For sure they left my mailserver. May 25 14:52:19 ofonod[12701]: < \r\nNO CARRIER\r\n May 25 14:52:36 Embedded in the HDLC framing ;) May 25 14:53:09 heh :) May 25 14:53:28 probably a race between the firmware sending the NO CARRIER and performing a hup May 25 14:53:49 denkenz: yeah, now I can manage without the ugly timeout patch May 25 14:54:40 denkenz: there are Phase 2+ sims with nonstandard ICCIDs May 25 14:58:21 denkenz: sorry, misspelt your name! May 25 14:59:30 pessi: Ok fair enough, I will look again a bit later May 25 14:59:38 pessi: Can you resubmit the others based on Aki's comments? May 25 14:59:58 kvalo: no worries May 25 21:14:55 denkenz: ...sent May 25 21:54:04 pessi, akiniemi: Can we get rid of the (Nokia-D/Helsinki) from Pekka's patches? May 25 21:58:10 denkenz: mine? May 25 21:58:41 pessi: Yeah, I see Pessi Pekka (Nokia-D/Helsinki) May 25 21:58:47 On the patches Aki just pushed May 25 21:59:06 So that author info is completely screwed up May 25 21:59:08 May 25 21:59:30 Before I saw: Pekka Pessi May 25 21:59:32 Which is fine May 25 21:59:43 annoying how nokia exchange server does that... May 25 22:00:21 Exchange screws the from line May 25 22:01:02 Well, it used to work, so can you guys go back to that? :) May 25 22:01:32 All your other patches the author field is fine, only the last 4 are screwed up May 25 22:06:28 nice that it seem to use hungarian notation, too May 25 22:06:48 exactly, it should be first last name always in the author field May 26 01:10:02 padovan: your patches seem having some style problems. can u use checkpatch.pl to verify them? May 26 01:10:43 zhenhua: sure. May 26 01:10:59 I'll check. May 26 01:12:19 padovan: thanks. because i want to rebase my patches on top of yours. :-) May 26 01:46:30 denkenz: Unfortunately, the data in ber-tlv of send sms 1.4.1 is in format of octet, instead of septet. Thus our parse_dataobj_gsm_sms_tpdu() couldn't handle it correctly. May 26 02:14:51 yang_office: You're saying DCS gave 8-bit coding but UDL was set to 160? May 26 02:16:49 yang_office: If so, that's a bug in the test May 26 02:19:46 most likely they confused 8-bit with 7 bit coding May 26 02:55:47 denkenz: According to the ber-tlv, TP-DCS is 0xF4, which means it's coded in 8-bit data, and class 0. TP-UDL is 0xA0 (160), and followed by 160 bytes. In all ways, the TP-UD (not TP-UDL) can't be more than 140 bytes, as I think. May 26 02:56:40 I will comment these in the test. May 26 02:59:08 denkenz: what's the purpose for PPP server side extension? this part is not clear to me **** ENDING LOGGING AT Wed May 26 02:59:57 2010