**** BEGIN LOGGING AT Mon Oct 26 02:59:58 2009 Oct 26 04:25:35 holtmann: maaate ! Oct 26 04:26:02 holtmann: still in ,jp ? Oct 26 04:26:03 benh: Got it working? Oct 26 04:26:08 hehe nah Oct 26 04:26:10 Yep. Still here. Oct 26 04:26:19 red wine decided otherwise :-) Oct 26 04:26:27 was having a quick look tho with the E169 modem today Oct 26 04:26:30 and it doesn't seem to behave Oct 26 04:26:41 used atgen on ttyUSB0 Oct 26 04:27:01 I see the modem, it sees the manuf, fw, etc... Oct 26 04:27:26 but list-modem (after enable) takes forever and doesn't return anything useful Oct 26 04:27:27 It should use the huawei driver. Oct 26 04:27:31 looks like it's not hooking up to Optus Oct 26 04:27:34 ah ok Oct 26 04:27:46 well, I don't have it hooked up to udev Oct 26 04:27:56 so it uses what I tell it :-) Oct 26 04:28:10 and I didn't see there was a huawei driver :-) Oct 26 04:28:18 You might need to update plugins/udev.c Oct 26 04:28:31 benh@pasglop:~/hackplace/ofono-stuff/ofono$ grep hawei . -r Oct 26 04:28:33 returns nothing Oct 26 04:29:09 It is huawei :) Oct 26 04:29:10 ok, that's no big deal, I can also live with static config Oct 26 04:29:39 it's just that in drivers/* I don't see any mention of "huawei" :-) Oct 26 04:29:46 drivers$ ls Oct 26 04:29:46 atmodem calypsomodem hfpmodem isimodem Oct 26 04:29:49 It is in plugins. Oct 26 04:29:59 oic Oct 26 04:30:22 so drivers/ is the library stuff that the plugins use ? Oct 26 04:30:29 Yep. Oct 26 04:32:14 plugins/ofono.rules is the udev rules files where you might have to add your modem VID/PID. Oct 26 04:32:29 I want some more advanced auto-detection features, but didn't have time for it yet. Oct 26 04:32:39 that's ok Oct 26 04:32:47 it wants serial port 0 ? Oct 26 04:32:51 out of the 4 ? Oct 26 04:32:59 so far enable-modem is falling over Oct 26 04:33:09 You have 4 in this one. Mine only has 2 :( Oct 26 04:33:46 ok, it's somewhat unhappy Oct 26 04:33:46 The atgen should not be doing CFUN=1 which the huawei plugin does. Oct 26 04:33:49 I'll have to dig Oct 26 04:33:55 I think these are needed on these cards. Oct 26 04:34:14 dbus.exceptions.DBusException: org.ofono.Error.Failed: Operation failed Oct 26 04:34:14 when trying to set Powered Oct 26 04:34:19 ofonod[3758]: plugins/huawei.c:huawei_enable() 0x9884b40 Oct 26 04:34:20 ofonod[3758]: src/modem.c:get_modem_property() modem 0x9884b40 property Device Oct 26 04:34:23 iis all I see with -d Oct 26 04:34:37 might need to dig a bit more deep, but not right now with a screaming crook kid Oct 26 04:34:48 env OFONO_AT_DEBUG=1 ./src/ofonod -n please. Oct 26 04:34:57 unless I failed to get bloody network mangler off the port Oct 26 04:35:00 ok Oct 26 04:35:27 it doesn't even go there Oct 26 04:35:34 I must have network mangler hogging the port Oct 26 04:36:02 Could be. Oct 26 04:36:37 hrm, ofonod is threaded ? Oct 26 04:37:40 bah Oct 26 04:37:45 something's bonkers, I'll dig later Oct 26 04:37:47 don't bother Oct 26 04:37:56 I can always toy with the sim for GUI Oct 26 04:38:09 have to take care of the sick boy now, ttyl Oct 26 04:45:12 It is not threaded. You can enable thread safe usage of D-Bus and GLib, but I would advise against it. Oct 26 05:02:42 yeah me too :-) Oct 26 05:02:58 was just asking for strace vs. strace -f (fork rather than threaded) Oct 26 05:03:01 anyway, I'll debug that later Oct 26 05:03:11 probably something stupid I do Oct 26 06:23:17 holtmann: muah Oct 26 06:23:22 holtmann: config file parsing is silly Oct 26 06:23:31 if (!g_strcmp0(driver, "atgen") || !g_strcmp0(driver, "g1") || Oct 26 06:23:32 !g_strcmp0(driver, "calypso") || Oct 26 06:23:32 !g_strcmp0(driver, "hfp")) Oct 26 06:23:32 set_device(modem, keyfile, group); Oct 26 06:23:39 that isn't going to do set_device for huawei Oct 26 06:23:43 which then barfs out Oct 26 06:24:16 I would have done the config file parsing differently, agnostic +/- to the type of plugin Oct 26 06:24:23 just pick up whatever's there and stick it into the properties Oct 26 06:24:29 up to the driver to fetch what it wants Oct 26 06:26:03 It can be fixed. Oct 26 06:26:11 right Oct 26 06:26:16 I just added a case for huawei and that works Oct 26 06:26:41 do you agree with my other approach ? Oct 26 06:26:48 maybe restrict to a known series of property names Oct 26 06:26:54 code would even be smaller :-) Oct 26 06:27:00 I might cook up a patch for you Oct 26 06:27:04 so it sees the modem now Oct 26 06:27:09 and the operator Oct 26 06:27:16 warns me that SMS don't work tho :-) Oct 26 06:27:34 is this something that needs reverse engineering or just not implemented yet ? Oct 26 06:28:21 btw, it also doesn't seem to find out my own phone # but that isn't a big deal Oct 26 06:30:52 I suppose I should just subscribe to the list and shoot patches Oct 26 06:32:21 benh: i think you're supposed to use udev Oct 26 06:32:45 at least, that was what denkenz told me when i complained about lack of mbm string in that if statement Oct 26 06:33:16 dilinger: yeah well, I need to fix that too :-) Oct 26 06:33:26 dilinger: but I like having static config files working too Oct 26 06:33:33 dilinger: not all embedded devices may want to use udev Oct 26 06:33:53 dilinger: (as a general principle that is) Oct 26 06:34:05 i don't disagree Oct 26 06:34:29 just letting you know that my patch was rejected Oct 26 06:34:32 besides, just sticking everything you find in the .conf into properties should be simpler code anyway, things like lists of "known drivers" for a given property like above are a receipe for long term breakage and trouble :-) Oct 26 06:34:33 http://lists.ofono.org/pipermail/ofono/2009-October/000493.html Oct 26 06:35:13 hm, maybe it was holtmann who told me. regardless, there you go. Oct 26 06:35:36 dilinger: yeah, holtmann rejection isn't that dead on :-) Oct 26 06:35:42 anyway, I'll think it through a bit more Oct 26 06:35:53 but it looks fishy to have this list regardless ... Oct 26 06:36:06 even if we end up requiring udev for some drivers Oct 26 06:36:19 i ended up just requiring udev for the debian package Oct 26 06:36:21 as I said... those magic lists are just breakage waiting to happen :-) Oct 26 06:36:41 maybe if ofono's behavior is changed, i can make it a Recommends rather than a hard Depends Oct 26 06:37:11 I would still keep it a depend in something like debian to be honest Oct 26 06:37:25 anyway, that is rather unimportant right now :-) Oct 26 06:37:37 I'll send patches to make that shit work here and we'll see Oct 26 15:41:25 the doc/sim-api.txt file says the MobileNetworkCodeLength property is a uint8 but the dbus spec only spec of uint>=16, is that an error? Oct 26 15:59:50 Dbus spec? Oct 26 16:00:26 Ah I think I see what you mean, uint8 means 'byte' Oct 26 16:08:34 ah yes I must be tired to not have thought of that ^^; Oct 26 16:08:35 thanks Oct 26 16:09:03 http://dbus.freedesktop.org/doc/dbus-specification.html this dbus sorry to not have been clear Oct 26 16:18:28 other question, when ofono need a Pin for a modem it change the PinRequired property value and when you enter the pin correctly it set it to 'none' again. Is that correct? Oct 26 16:19:54 yep Oct 26 20:08:27 holtmann: Ping Oct 27 00:25:39 denkenz: ping Oct 27 02:57:14 hi, aybody here? Oct 27 02:57:32 could I ask a question? **** ENDING LOGGING AT Tue Oct 27 02:59:56 2009