**** BEGIN LOGGING AT Thu Feb 03 02:59:57 2011 Feb 03 03:42:29 sabotage: pong Feb 03 04:10:48 I'll have to ping again tomorrow, not in front of the system I'm trying to debug Feb 03 04:11:16 short story is that no modem is being found at all (IFX) Feb 03 04:12:25 0.38 ofono, nothing changed except the platform firmware, so wondering if there are known issues on nCDK's with certain FW versions Feb 03 04:12:54 oh, and getting udev event timeouts related to rfkill Feb 03 04:13:03 I'll ping again in the morning **** ENDING LOGGING AT Thu Feb 03 08:26:13 2011 **** BEGIN LOGGING AT Thu Feb 03 08:30:17 2011 Feb 03 13:49:02 holtmann: do the canceled messages need another status in history? Feb 03 13:50:09 i.e. do i really need to create a OFONO_HISTORY_SMS_STATUS_SUBMIT_CANCELED or i can use the _FAILED one? Feb 03 15:49:33 demarchi: Submit canceled is fine Feb 03 15:59:00 denkenz: did you take a look to the v4 of bluetooth server support patch ? Feb 03 16:05:26 padovan and you need to agree first ;) Feb 03 16:05:59 I have half a mind to accept padovan's series, and then fix it up Feb 03 16:06:12 so you can submit your patches on top of his Feb 03 16:31:49 fdanis: Actually that Bluetooth code need a lot of fixes. Feb 03 16:33:08 We need to get rid of btio stuff inside oFono, and write a proper APIfor Server linsten in BlueZ. Feb 03 16:33:26 That is my thought on this at the moment. Feb 03 16:35:32 So how hard is it to fix up the current series? Feb 03 16:36:28 Are the patches from fdanis already taking care of these cases? Feb 03 16:36:48 I will just add the per adapter structure, to avoid the leaking that fdanis reported. Feb 03 16:36:50 padovan: I try to avoid those problems in patch I sent Feb 03 16:37:00 Let me see your patch. Feb 03 16:51:35 oui, il semblerait que le CE France est pas mal, mais ça se met doucement en place Feb 03 16:51:58 ils ont l'air d'avoir des prix sur pas mal de choses Feb 03 16:52:46 sorry, I made a mistake Feb 03 17:02:26 fdanis patches seems to solve the issue Feb 03 17:02:43 fdanis: have you tested that with my DUN patches on top? Feb 03 17:03:01 padovan: no Feb 03 17:03:48 padovan: how do you perform your test ? Feb 03 17:04:26 fdanis: maybe we can use your bluetooth patches and mine DUN server patches. Feb 03 17:05:05 fdanis: bind the listening channel to a dev/rfcomm and then use gsmdial on it. Feb 03 17:05:33 +#define TIMEOUT (60*1000) /* Timeout for user response (milliseconds) */ Feb 03 17:05:39 padovan: we test it with a simple plugin only logging strings received from the remote device Feb 03 17:05:44 fdanis: it should be 60 only. Feb 03 17:05:59 ok Feb 03 17:06:57 is the TIMEOUT in second ? Feb 03 17:09:15 balrog-k1n: here? Feb 03 17:09:44 in this case yes, we do the *1000 inside bluetooth_send_ Feb 03 17:13:06 ok, thanks Feb 03 17:13:37 denkenz: yes Feb 03 17:13:59 balrog-k1n: question Feb 03 17:14:01 + sim_fs_op_cache_fileinfo(fs, error, length, structure, record_length, Feb 03 17:14:01 + access, file_status); Feb 03 17:14:02 + Feb 03 17:14:02 if (structure != op->structure) { Feb 03 17:14:02 ofono_error("Requested file structure differs from SIM: %x", Feb 03 17:14:03 op->id); Feb 03 17:14:14 Should sim_fs_op_cache_fileinfo be moved below the if there? Feb 03 17:14:37 Otherwise if the file requests a structure that doesn't match, we don't have the entire file cached Feb 03 17:15:07 denkenz: iirc i moved it above it because the fileinfo won't change next time, Feb 03 17:15:12 so there's no point re-reading it Feb 03 17:15:32 Yes, but we have to be careful of e.g. EFecc style files Feb 03 17:15:38 we request two different structures Feb 03 17:16:00 so you cache the info but the structure doesn't match Feb 03 17:16:04 so you don't cache the contents Feb 03 17:16:14 the next time around you get the right structure, but no contents Feb 03 17:16:14 that's one of the use cases i think.. we would read the file info twice otherwise Feb 03 17:16:42 once we read the contents, we cache them Feb 03 17:17:02 at the first try we just cache the fileinfo Feb 03 17:17:13 yeah, but if the structure doesn't match on the first request, we don't read the contents Feb 03 17:17:24 right Feb 03 17:18:00 so until now, as i see it, the order was: read fileinfo (dtructure doesn't match), re-read fileinfo (match), read contents Feb 03 17:18:21 with the patch we read fileinfo and cache it, the second time we jsut read the contents Feb 03 17:18:58 what about the actual blocks / records of the EF? Feb 03 17:19:27 we read them when the structure matches on the second try? Feb 03 17:20:09 my intent was that there's no functionality change Feb 03 17:20:18 we just avoid re-reading the fileinfo/header Feb 03 17:20:25 hmm, *checks* Feb 03 17:20:40 so it looks like this will work Feb 03 17:20:51 read a file -> cache info Feb 03 17:20:56 structure doesn't match Feb 03 17:21:04 read a file -> get cache Feb 03 17:21:11 read record -> fail Feb 03 17:21:13 go to the sim Feb 03 17:21:22 fdanis: you registering twowatches to the same io channel, use somthing like the the pending_auth I did in my patches. Feb 03 17:21:33 we already did that anyway, for block files Feb 03 17:21:39 sim_fs_op_read_record and sim_fs_op_read_block are handling this right? Feb 03 17:21:50 we cached only the blocks that we had read so far Feb 03 17:23:38 Ok, looks like we indeed do this right, nice Feb 03 17:27:20 padovan: yes, to change the callback Feb 03 17:27:29 padovan: is there any problem ? Feb 03 17:29:04 denkenz, balrog-k1n Feb 03 17:29:07 ping Feb 03 17:29:42 denkenz, balrog-k1n: ping Feb 03 17:30:00 yes? Feb 03 17:31:34 http://pastebin.com/u13TPx5r Feb 03 17:31:54 thats the one i'm preparing now, is it ok? Feb 03 17:32:39 balrog-k1n: Can you resubmit patch 5 real quick? Feb 03 17:32:40 Applying: Implement ofono_sim_context api. Feb 03 17:32:41 if (op->current < total) { Feb 03 17:32:41 fatal: 1 line adds whitespace errors. Feb 03 17:33:32 Jeevaka: That looks sweet Feb 03 17:35:13 will continue with the work and send it to you and balrog-k1n to verify the content Feb 03 17:41:52 fdanis: you are leaking one Feb 03 17:45:20 padovan: which one ? auth_watch or client_event related one ? sorry I do not see it Feb 03 17:47:51 is it the client_data structure in auth_cb() ? Feb 03 17:50:39 denkenz: do you still need me to resubmit (was away for a moment) Feb 03 17:50:48 yes Feb 03 17:50:56 ok Feb 03 17:50:58 it does not apply even with whitespace amending Feb 03 17:51:46 also, please submit this one as a separate patch: Feb 03 17:51:47 - if (cf->ussd_watch) Feb 03 17:51:47 + if (cf->ussd_watch) { Feb 03 17:51:47 __ofono_modem_remove_atom_watch(modem, cf->ussd_watch); Feb 03 17:51:48 + cf->ussd_watch = 0; Feb 03 17:51:48 + } Feb 03 17:55:54 i'll just skip it since it doesn't make practical difference Feb 03 17:57:24 ok Feb 03 18:00:22 oops, i'll resend again, i forgot to check what the whitespace issue was Feb 03 18:02:03 padovan: ping Feb 03 18:03:07 fdanis: pong Feb 03 18:03:24 fdanis: you add a watch to client_event, and never remove it. Feb 03 18:05:06 padovan: it will be automatically removed by glib when the callback client_event will return false Feb 03 18:05:20 balrog-k1n: 2nd version still doesn't apply Feb 03 18:05:48 padovan: do you know how to use phonesim in GPRS mode to perform the test ? Feb 03 18:06:32 fdanis: yeah, but then we will have to call to callbacks in the watch Feb 03 18:06:45 client_event and auth_watch Feb 03 18:07:17 padovan: ? Feb 03 18:07:49 padovan: I am not sure to understand how you want I perform the test Feb 03 18:08:02 s/call to/call two/ Feb 03 18:09:13 see what I did in my patches, there is a pending_auth to workaround this. Feb 03 18:09:59 fdanis: suppose you are listening on then Feb 03 18:10:24 then "rfcomm -i hci1 0 1 Feb 03 18:10:38 gsmdial -b -n /dev/rfcomm0 Feb 03 18:11:27 while (server->client_list) { Feb 03 18:11:27 g_source_remove((guint) server->client_list->data); Feb 03 18:11:39 fdanis: this seem wrong, what are you removing here? Feb 03 18:12:10 padovan: where ? Feb 03 18:12:40 sorry, I found it Feb 03 18:14:08 fdanis: check for msg ==NULL in cancel_authorization(struct cb_data *user_data) Feb 03 18:14:35 I remove the clients io channels connected to the server Feb 03 18:16:30 padovan: about auth_cb and client_event, the source using auth_cb is removed before creating the one using client_event, I do not think there is a problem here Feb 03 18:17:42 I don't like the idea of readding the watch. Feb 03 18:17:56 client_event will be called (so related source will be removed) when remote disconnects Feb 03 18:19:17 ok, so I will change this to only use one watch and one callback Feb 03 18:19:38 Ok, good. Feb 03 18:20:56 padovan: we are trying to test it with fdalleau, but we do not know how to set phonesim in GPRS mode to be able to use the dun_gw Feb 03 18:21:05 do you know how to do this ? Feb 03 18:23:14 test/enable-modem test/online-modem should be enough Feb 03 18:23:22 yeah Feb 03 18:23:25 denkenz: it applies here Feb 03 18:23:34 well, the third version Feb 03 18:23:48 fdanis: or you have connman running and it does the work to online the modem to you. ;) Feb 03 18:25:05 balrog-k1n: Yeah, tried all of them by now Feb 03 18:25:06 Applying: ofono_sim_context api header changes. Feb 03 18:25:06 Applying: Implement ofono_sim_context api. Feb 03 18:25:07 error: patch failed: src/simfs.c:474 Feb 03 18:25:07 error: src/simfs.c: patch does not apply Feb 03 18:25:07 Patch failed at 0002 Implement ofono_sim_context api. Feb 03 18:30:15 indeed, i'll re-rebase Feb 03 18:30:43 must be a conflict with soem change made today Feb 03 18:31:11 padovan: test seems to work for Bluetooth side (connection and authorization), but I got a crash in PPP session Feb 03 18:32:45 which crash? Feb 03 18:34:42 padovan: io is NULL in g_at_io_write() called by can_write_data() Feb 03 18:34:42 latest trace are : Feb 03 18:34:42 PPP: lcp: pppcp_this_layer_finished: current state 2:CLOSED Feb 03 18:34:42 Entering new phase: 0 Feb 03 18:36:28 fdanis: do you have tun/tap enabled in your kernel? Feb 03 18:37:21 denkenz: i sent another version, sorry for the errors Feb 03 18:37:39 padovan: standard ubuntu with VPN, so I think yes Feb 03 18:40:10 padovan: do this needs ofono to be started as root ? Feb 03 18:43:58 yes Feb 03 18:44:13 surely yes. Feb 03 18:44:52 works better Feb 03 18:45:37 I will update my patches tomorrow Feb 03 18:47:30 padovan, denkenz: do you want I integrate your patches with them ? Feb 03 18:51:54 fdanis: just send your bluetooth patches, my DUN Server should work fine if your patches are ok. Feb 03 18:52:00 But test will be needed. Feb 03 18:52:14 padovan: ok Feb 03 18:59:45 padovan: I can always merge the latest ones from fdanis if they are closer Feb 03 19:01:49 denkenz: they are, but sitll need fixing. If you want go ahead, the Frederic send delta patches. Feb 03 19:02:17 Do those work with your emulator stuff? Feb 03 19:04:15 I think so, I can test them now. Feb 03 19:06:51 then lets do that Feb 03 19:09:25 denkenz: fdanis patches doesnt build Feb 03 19:09:34 hah Feb 03 19:15:02 padovan: what is the problem ? Feb 03 19:16:13 fdanis: use --enable-maintainer-mode in ./configure and you'll see. Feb 03 19:16:20 ok Feb 03 19:18:50 plugins/bluetooth.c: In function ‘server_stop’: Feb 03 19:18:50 plugins/bluetooth.c:464: error: cast from pointer to integer of different size Feb 03 19:18:51 plugins/bluetooth.c: In function ‘client_event’: Feb 03 19:18:51 plugins/bluetooth.c:494: error: cast to pointer from integer of different size Feb 03 19:18:51 plugins/bluetooth.c: In function ‘auth_cb’: Feb 03 19:18:52 plugins/bluetooth.c:553: error: cast to pointer from integer of different size Feb 03 19:18:59 and another 8-10 the same Feb 03 19:19:25 Please use G_POINTER_TO_UINT for this Feb 03 19:19:26 padovan: I just do make distclean, ./bootstrap-configure and make : no problem Feb 03 19:19:42 denkenz: ok Feb 03 19:20:06 GPOINTER_TO_UINT and GUINT_TO_POINTER Feb 03 19:20:21 denkenz: but I do not get those errors Feb 03 19:20:25 and get a 64 bit machine since you will get this wrong as some point ;) Feb 03 19:20:44 yes, it breaks on 64 bit because uint is 4 bytes, while pointer is 8 Feb 03 19:20:52 denkenz: ok, I am currently on 32 bits ubuntu Feb 03 19:23:34 are those the only problem? Since I can fix this up quickly Feb 03 19:24:11 Or I go on to something else and let you guys figure this out ;) Feb 03 19:28:44 denkenz: sorry, but I have to go, I will only be able to update the patches tomorrow, or send patches to fix what Padovan founds Feb 03 21:56:47 hello Marcel Feb 03 22:01:25 Hi Marcel, do u have a min? Feb 03 22:01:57 Hi holtmann, do u have a min? Feb 03 22:07:47 denkenz:ping Feb 03 22:10:29 Jeevaka: pong Feb 03 22:11:27 in outlook, table alignment is crappy Feb 03 22:12:17 do you see in proper formatting when you apply patch? Feb 03 22:17:15 Jeevaka: It looks fine, but you have spaces and tabs mixed so it shows a bunch of red for me Feb 03 22:18:49 will fix thepaces to tabs Feb 03 22:20:04 highlight RedundantWhitespace ctermbg=red guibg=red Feb 03 22:20:04 match RedundantWhitespace /\s\+$\|\t\+\ze \+[^*]\| \+\ze\t/ Feb 03 22:20:07 If you use vim Feb 03 22:22:34 ok, thanks for the tips Feb 03 23:05:01 Jeevaka: you might want to use a macro like this in your $HOME/.vimrc too: http://codepad.org/5mVl4Eli Feb 03 23:06:13 demarchi: thanks. **** ENDING LOGGING AT Fri Feb 04 02:59:57 2011