**** BEGIN LOGGING AT Tue Aug 03 02:59:57 2010 Aug 03 05:25:21 luke-jr: we have long vacations in finland :) Aug 03 05:26:23 kvalo: they're seriously not back yet? :/ Aug 03 05:26:48 no wonder N900 is so expensive Aug 03 05:26:49 * luke-jr ducks Aug 03 05:31:09 luke-jr: I don't know. most people come back from vacation either this week or next. Aug 03 05:31:23 sigh Aug 03 08:19:32 i think standard holiday is about 5 weeks or so. they tend to take it all at once during the summer when its above subfreezing. :) Aug 03 14:02:43 ljp: that's 10% of a year! Aug 03 19:21:55 denkenz: I guess supporting voice-only is now done, could you have a look please? http://git.profusion.mobi/cgit.cgi/jprvita/ofono/commit/?h=huawei_voiceonly_sim Aug 03 19:23:01 about the problem with lazy modems on cold boot, I wrote some code but I'm not sure if I got it properly Aug 03 19:25:23 what would be the sim state value from SYSINFO in this case? Aug 03 19:25:39 Good question Aug 03 19:25:48 hehe Aug 03 19:26:18 + if ((data->sim_state == 1 || data->sim_state == 3) && Aug 03 19:26:18 + ofono_modem_get_boolean(modem, "HasVoice") == TRUE) { Aug 03 19:26:25 Please follow proper if indentation rules Aug 03 19:26:42 + if (data->gprs && data->gc) Aug 03 19:26:43 + ofono_gprs_add_context(data->gprs, data->gc); Aug 03 19:26:51 newline before the if Aug 03 19:27:34 + if (data->sim_state == 1 || data->sim_state == 2) { Aug 03 19:27:42 Have you tested this part with PIN locked SIMs? Aug 03 19:27:52 actually nevermind Aug 03 19:27:58 I don't have any :( Aug 03 19:28:18 any SIM can be pin locked Aug 03 19:28:44 just look at how oFono does PinLock Aug 03 19:28:49 or is it LockPin() Aug 03 19:29:22 + if ((data->sim_state == 1 || data->sim_state == 3) && Aug 03 19:29:22 + ofono_modem_get_boolean(modem, "HasVoice") == TRUE) Aug 03 19:29:27 Same thing here, proper if indentation Aug 03 19:29:48 see doc/coding-style.txt Aug 03 19:30:00 ok Aug 03 19:31:10 + if (data->sim_state == 4 || data->sim_state == 255) Aug 03 19:31:10 + return; Aug 03 19:31:11 + Aug 03 19:31:23 For this one, in case of sim_state == 4, you might want to add phonebook atom Aug 03 19:31:27 But that is a nitpick Aug 03 19:31:44 right, I'll fix it Aug 03 19:31:52 Otherwise it looks fine to me Aug 03 19:32:07 Just make sure to test it with a PIN locked SIM and a cold-booted modem Aug 03 19:32:51 so, for a cold-boot do I just start ofono, plug the modem and then enable-modem real quickly? Aug 03 19:33:39 It sort of depends on the modem, I think Huaweis auto-register by default, so its hard to test Aug 03 19:33:45 but yeah, that seems to be the best strategy Aug 03 19:34:28 PIN lock is a good test here, because it prevents the modem from fully initializing before oFono is ready Aug 03 19:34:51 ok, although it doesn't seem very deterministic :) Aug 03 19:34:59 I'll have a look at pin lock too Aug 03 19:35:19 Yeah there's a race, but nothing we can do about it Aug 03 19:35:35 Just see if the current code works reasonably well Aug 03 19:35:42 We can fix it later on if someone has issues Aug 03 19:35:59 all right Aug 03 20:05:53 denkenz: is it necessary that the modem supports voice (HasVoice property) for phonebook? Aug 03 20:20:07 nope Aug 03 20:20:15 jprvita: That one's separate Aug 03 20:20:57 I've tested with my modem here and I just get [ org.ofono.Phonebook ], without no properties under it Aug 03 20:21:09 That's correct Aug 03 20:21:15 that interface is only methods Aug 03 20:21:24 ahn, ok then Aug 03 20:21:44 since on the current HEAD it's only enabled if modem HasVoice, I thought was the case Aug 03 20:24:06 that might have been a bug or something Aug 03 20:27:46 ok, so I'll take it out from the if Aug 03 20:39:47 does this means I can't lock my modem: PinRequired = none ? Aug 03 20:54:25 denkenz: ^ Aug 03 20:54:46 and also, cold boot tests have passed Aug 03 21:27:30 how can i simulate an incoming call or sms ? Aug 03 21:33:49 jprvita: No, you have to know your PIN first Aug 03 21:34:05 jprvita: Then you can call SimManager.LockPin("pin", "your pin") Aug 03 21:34:19 jprvita: Next cold boot it will ask for a PIN Aug 03 21:34:41 orioni: If you use phonesim, enter a number and hit "Call" on the GUI Aug 03 21:35:18 i want to simulate one from the comandline Aug 03 21:35:30 so i can see the GUI , and change it a bit Aug 03 21:35:45 orioni: You can export phonesim GUI elsewhere Aug 03 21:35:55 orioni: e.g. using xhost Aug 03 21:36:15 Another way is to use phonesim in no-gui mode and dial a magic callback number Aug 03 21:37:47 dialing 199 will result in an incoming call in 5 seconds Aug 03 21:38:25 thanx Aug 03 22:29:57 jprvita: It might be a good idea to use an enum for those sim_state checks Aug 03 22:30:11 jprvita: That way its immediately clear what state is being referred to Aug 03 22:30:40 jprvita: Otherwise it looks good to me, but test with a PIN-locked SIM first Aug 03 22:31:00 If you need a quick walkthrough, let me know **** ENDING LOGGING AT Wed Aug 04 02:59:57 2010