**** BEGIN LOGGING AT Mon Aug 09 02:59:57 2010 Aug 09 13:57:18 denkenz: was there a script for enabling pin query on the sim? Aug 09 13:57:51 kvalo: don't think so Aug 09 13:58:34 kvalo: whats "pin query" ? checking if pin is correct even though you already are in READY state? Aug 09 14:00:10 asac: I mean query for the sim pin which you need to unlock the sim (if it's locked) Aug 09 14:00:41 ah kk Aug 09 14:01:32 denkenz: so it's just matter of calling LockPin() in SimManager interface? do you think that will work with my huawei? or will it break something on the modem? ;) Aug 09 14:02:04 list-modems and enter-pin are for checking whether pin is needed, we never made a lock-pin script Aug 09 14:02:09 kvalo: Should work just fine Aug 09 14:02:30 denkenz: cool, thanks. I'll give it a try Aug 09 14:15:59 denkenz: worked great with my huawei. I'll send patches to the list, apply them if you think they are useful Aug 09 15:37:00 i've got semi-working ofono on n900: sms && ussd - ok, but any call (incoming or outgoing) resets modem. any idea? Aug 09 15:38:05 also gprs stuff resets modem too (commented out initialization in isi_modem_post_online as workaround) Aug 09 17:12:37 e-yes: can you you get tcpdump on your device? Aug 09 17:14:18 pessi, yes, I'll try Aug 09 17:14:41 e-yes: if you can, make a tcpdump on phonet0 interface (snaplen 1500) Aug 09 17:25:04 pessi, http://slil.ru/29547555 and log: http://pastebin.com/92kF1Cu3 Aug 09 17:25:43 tcpdump -nei phonet0 -s 1500 -w ofono.dump (correct?) Aug 09 17:30:31 hi pessi‼ Aug 09 17:42:52 e-yes: yes Aug 09 17:46:08 bleh, latest git ofono doesn't even build -.- Aug 09 17:52:45 what is wrong? 1d44994 compiles cleanly? Aug 09 17:53:06 e-yes: and did it crash the modem this time? Aug 09 17:58:28 pessi, Link phonet0 (2) is down -- after i called to n900. also "<6>[ 6053.545349] omap_ssi omap_ssi: Hardware BREAK on port 1" in dmesg Aug 09 18:02:49 ok Aug 09 18:03:03 do you have maemo sscd and csd running? Aug 09 18:08:58 no Aug 09 18:09:18 it's not maemo, it's android Aug 09 18:20:19 pessi: not for me Aug 09 18:20:28 calypsomodem.c☹.text+0x4): undefined reference to `calypso_stk_exit' Aug 09 18:20:30 etc etc Aug 09 18:21:48 pessi, if i call in very short period of a time after I set modem online property, I see call in logs (status=CALL_STATUS_COMING, CALL_STATUS_PROCEEDING, CALL_STATUS_MT_ALERTING). But after call termination, on econd call, I've got reset anyway Aug 09 18:22:42 may be smth wrong with cmt_* switches? how can i set up it properly? Aug 09 18:23:16 luke-jr: rerun bootstrap Aug 09 18:24:42 e-yes: nope, you just need to activate the infoserver Aug 09 18:25:02 luke-jr: and make distclean before that Aug 09 18:26:35 sigh Aug 09 18:26:39 this is what Makefiles are for Aug 09 18:26:40 e-yes: call isi_infoserver_create in isimodem.c pre-sim Aug 09 18:26:40 :p Aug 09 18:28:47 luke-jr: automake maintainer-mode enables autodetection for that. or was it that it disables it? I never remember which they it is :) Aug 09 18:29:23 bootstrap-configure has --enable-maintainer-mode Aug 09 18:33:44 pessi, thanks. it seems i forget to add isimodem/infoserver.c and gisi/server.c to compilation Aug 09 18:35:10 e-yes: do you do cmt gpio handling in C or with udev/shell scrip? Aug 09 18:35:58 and which kernel you run, vanilla N900 or something mode excotic? Aug 09 18:36:00 just echos in shell script Aug 09 18:38:49 pessi: I run vanilla Fremantle compiled with GCC 4.4, but no Maemo userland Aug 09 18:41:18 pessi, it works! thank you indeed! Aug 09 18:52:04 my turn Aug 09 18:54:49 soon as it finished building… Aug 09 19:00:58 pessi? ☺ Aug 09 19:01:29 ? Aug 09 19:01:47 I will likely need help in a minute when ofono finishes building again Aug 09 19:01:51 err, just finished Aug 09 19:02:05 last time I tried, it didn't see a modem at all Aug 09 19:06:52 path = properties["Modems"][0] Aug 09 19:06:53 IndexError: list index out of range Aug 09 19:06:55 ☹ Aug 09 19:12:10 you have to power it up Aug 09 19:12:26 and turn it on using GPIO lines Aug 09 19:13:38 fine, let's try my blob hack to do that… Aug 09 19:14:21 same error Aug 09 19:14:32 FWIW: ofonod[696]: plugins/usbpnmodem.c:usbpn_status_cb() Phonet link phonet0 (2) is up Aug 09 19:14:52 and uncomment lines from modem.conf ? Aug 09 19:14:58 dd Aug 09 19:15:00 did* Aug 09 19:15:14 Driver=isimodem ? Aug 09 19:16:41 Driver=n900modem Aug 09 19:17:20 isimodem is commented to require Maemo Aug 09 19:17:55 isimodem doesn't help either Aug 09 19:18:53 luke-jr: it requires the gpio line magic Aug 09 19:19:54 so turn it back off via gpio and then back on? Aug 09 19:21:17 meh, I'll reboot… Aug 09 19:24:14 pessi: so how exactly do I start it? Aug 09 19:24:17 from scratch Aug 09 19:28:22 #!/bin/sh Aug 09 19:28:22 cd /sys/devices/platform/gpio-switch/ && Aug 09 19:28:23 { echo inactive > cmt_rst/state echo active > cmt_rst/state echo active > cmt_en/state echo inactive > cmt_en/state Aug 09 19:28:26 } Aug 09 19:28:28 uh-oh Aug 09 19:28:43 add some semicolons Aug 09 19:28:47 before or after starting ofono? Aug 09 19:28:54 after Aug 09 19:29:06 when you see plugins/usbpnmodem.c:usbpn_status_cb() Phonet link phonet0 (2) is up Aug 09 19:29:20 it is up and running Aug 09 19:29:34 it didn't do that Aug 09 19:30:10 don't I need to set the i2c address at some point? Aug 09 19:30:34 oh yes Aug 09 19:30:59 so hack usbpnmodem to accept "phonet" prefix instead of usbpn Aug 09 19:32:39 USB? Aug 09 19:33:50 plugins/usbpnmodem.c configures the usb modems on pc Aug 09 19:33:59 how is it relevant on N900? Aug 09 19:34:07 hack it to configure phonet0 Aug 09 19:39:08 ofonod[1687]: plugins/usbpnmodem.c:usbpn_status_cb() Phonet link phonet0 (7) is up Aug 09 19:39:30 still no success w/ test/enable-modem tho Aug 09 19:41:17 you removed the "expect phonet interface name" if () ? Aug 09 19:41:46 and you have to comment Device=phonet0 entry from modem.conf, I guess Aug 09 19:43:47 still doesn't work with that Aug 09 19:47:49 aha, recompiled but forgot install Aug 09 19:48:36 luke-jt: git reset --hard HEAD and apply the n900 patch I sent to mailing list ? :-) Aug 09 19:48:43 s/r/t/ Aug 09 19:48:43 what mailing list? ☺ Aug 09 19:49:14 dbus.exceptions.DBusException: org.ofono.Error.Failed: Operation failed Aug 09 19:49:14 ofono Aug 09 19:49:19 that's with the changes you suggested Aug 09 19:51:22 apply the "[RFC] Add: N900 modem plugin" patch, add modem with Driver=n900modem and Interface=phonet0 to modem.conf Aug 09 19:51:51 ...while I try to get my n900 to boot meego kernel ;-/ Aug 09 19:57:09 pessi, what is the difference between isimodem and n900modem? Aug 09 19:57:56 e-yes: according to the sample conf file, isimodem requires Maemo Aug 09 19:59:14 e-yes: n900modem tries to do gpio magic by itself Aug 09 20:01:29 out of curiousity, can ofono provide remote SIM authentication? Aug 09 20:01:44 so eg, a single SIM could be used by 2+ N900s ;) Aug 09 20:16:20 pessi: well, this seems to get further Aug 09 20:16:26 can't do anything useful with it tho :P Aug 09 20:20:23 this gets enough for GPS to work Aug 09 20:21:08 can you send me full debug trace? Aug 09 20:21:30 will have to restart it all… it's running in screen Aug 09 20:21:37 anything other than -d '*'? Aug 09 20:21:40 C-a [ ? Aug 09 20:21:54 with export OFONO_ISI_DEBUG=all ? Aug 09 20:22:12 C-a [ didn't do anything… Aug 09 20:22:20 I'll have try with another mmc card tomorrow ;-/ Aug 09 20:23:43 reloading modules and such… Aug 09 20:26:45 pessi: how can I send it to you? ☺ Aug 09 20:26:57 (privately, since this obviously has private info in it) Aug 09 20:43:39 test/process-context-settings tells me to use DHCP, but there's no DHCP response… Aug 09 22:32:47 pessi: I can get gprs0 working, except for DHCP… **** ENDING LOGGING AT Tue Aug 10 02:59:58 2010