**** BEGIN LOGGING AT Mon Feb 22 02:59:58 2010 Feb 22 18:03:12 denkenz: there no API for SMS yet? Feb 22 18:05:03 jprvita: There are Feb 22 18:05:15 which one is it? Feb 22 18:05:36 org.ofono.SmsManager Feb 22 18:05:42 It might not be in doc/ yet Feb 22 18:06:00 it's not Feb 22 18:06:15 Just look at src/sms.c, the API is trivial Feb 22 18:06:25 and also, it doesn't show up when I connect to a modem Feb 22 18:06:27 two signals for incoming case and SendMessage for outgoing Feb 22 18:06:30 shouldn't it? Feb 22 18:06:42 Depends, maybe your modem doesn't support SMS Feb 22 18:06:56 Or more likely it needs to be quirked Feb 22 18:07:05 quirked? Feb 22 18:07:26 Yes, some modems don't exactly follow the spec, so we quirk them in the SMS driver Feb 22 18:07:33 it's my mobile phone, so it does support SMS.. I don't know if it exports this through bt Feb 22 18:08:18 So do you get something Feb 22 18:08:19 static void at_sms_not_supported(struct ofono_sms *sms) Feb 22 18:08:21 { Feb 22 18:08:22 ofono_error("SMS not supported by this modem. If this is in error" Feb 22 18:08:24 " please submit patches to support this hardware"); Feb 22 18:08:25 ofono_sms_remove(sms); Feb 22 18:08:27 } Feb 22 18:08:28 Do you get that message? If you do, then you need a quirk Feb 22 18:08:43 hum, workaround it.... thanks google define :) Feb 22 18:08:44 jprvita: you'll need the SAP plugin for that. Feb 22 18:08:46 let me see Feb 22 18:09:19 For SMS you don't 'need' SAP, but you do need at least SPP Feb 22 18:09:33 It most likely won't work over HFP Feb 22 18:10:25 denkenz: hum, I don't get that message.. it should show up when setting Powered=1 right? Feb 22 18:10:49 jprvita: So lets start at the beginning, which modem driver are you using Feb 22 18:11:24 none I guess, just HFP Feb 22 18:11:42 so as I said, HFP driver does not provide SMS capability Feb 22 18:12:03 It is not in the spec, if you want SMS you need to connect up to the SPP profile, not HFP Feb 22 18:12:08 right, so I need to enable another driver through modem.conf I guess Feb 22 18:12:37 Yes, you can do 'rfcomm connect' type magic and then use generic driver with modem.conf Feb 22 18:14:03 hum, I guess I can use the g1, since my phone is a g1 :) Feb 22 18:14:48 what the g1 provides over bluetooth is different from what it provides over raw serial Feb 22 18:15:18 I think g1 driver assumes raw serial, but feel free to try it Feb 22 18:17:37 raw serial you mean USB? I can use that while there is no BT support Feb 22 18:17:59 my final goal is to write a little test app for sending / receiving SMS Feb 22 18:18:21 No, g1 driver is used to run raw on the g1 Feb 22 18:18:26 Not over USB or Bluetooth Feb 22 18:18:41 So I've no idea whether it will actually work that way Feb 22 18:19:07 jprvita: And I've actually done this before with my Sony Ericssons Feb 22 18:20:06 jprvita: The proper way to do this might be to redo the BlueZ Serial proxy in a HandsfreeAgent type way Feb 22 18:20:19 Then create a special SMS-over-Bluetooth modem driver Feb 22 18:20:30 wow... Feb 22 18:21:13 That way we can actually do a nice app that will work as well as the Apple SMS over Bluetooth one Feb 22 18:21:24 so there is still a long path to go for total bluetooth control Feb 22 18:21:55 It is actually trivial, most of the code is simply copy-paste from HFP Feb 22 18:22:45 other than SMS over BT and SAP, what else are we missing? Feb 22 18:23:15 so we can have an app to fully control a mobile phone over bluetooth Feb 22 18:23:33 Define fully control Feb 22 18:24:34 hehe, you are the oFono guy, not me :) Feb 22 18:24:59 I don't know what you're trying to accomplish though Feb 22 18:25:22 but I guess file transfer, phonebook acess, SMS, HFP, some configurations maybe.. Feb 22 18:25:40 pretty much like the nokia phone tools for windows Feb 22 18:25:44 Biggest issue is that all of these are separate protocols Feb 22 18:25:55 yep, I know.. Feb 22 18:26:08 Whereas PC Suite cheats and has just one protocol ;) Feb 22 18:26:47 yes, I've read something about that too when trying to use gnokki a long time ago Feb 22 18:27:33 So for file transfer you have to use OBEX FTP, phonebook you need to use PBAP, SMS -> SPP, HFP you know Feb 22 18:27:41 (or whatever they call a gnome app to try to to something with phones) Feb 22 18:27:49 So I count 4 rfcomm connections already Feb 22 18:29:12 right Feb 22 18:30:52 so, going back to the SMS subject, how is the easiest way to test SMS send/receive? I have a G1, a N900, a huawei USB 3G modem, and another 3G modem available here Feb 22 18:31:47 The 3G modem is the easiest Feb 22 18:32:37 I think marcel managed to send smses with his huawei before Feb 22 18:33:02 I see there is a huawei driver under plugins Feb 22 18:33:25 Yes and that one even provides sms + appropriate quirk Feb 22 18:33:34 Which other 3G modem do you have? Feb 22 18:33:37 is there some doc or so to get started on how to connect to it? Feb 22 18:33:54 For USB ones generally just 'plug in' Feb 22 18:34:08 I'm trying to check with the other guy here, that other one is not mine Feb 22 18:34:11 You might have to mess with ofono udev rules to get it recognized Feb 22 18:34:19 but I can use it for testing Feb 22 18:34:37 see plugins/ofono.rules Feb 22 18:34:46 It has a huawei rule, but see if it is sufficient Feb 22 18:34:52 ok Feb 22 18:35:18 I've managed to use it with network manager once, for internet access Feb 22 18:35:31 so I guess it will be recognizes Feb 22 18:35:35 recognized Feb 22 18:35:37 NetworkManager has a similar udev rules setup Feb 22 18:35:52 good Feb 22 18:39:37 so, both modems are huawei, one of them is a E220 and for the other one we'll have to wait until tomorrow, I left it at home.. Feb 22 18:40:40 but I'll keep you informed of my progress here and I can write the docs for SmsManager Feb 22 23:28:14 denkenz: jprvita: you could expose the real modem over rfcomm on your g1 Feb 22 23:28:26 but you'd have to stop rild-service first Feb 22 23:39:39 hm Feb 22 23:40:53 it looks like ofono has an EmergencyNumbers property that lists local emergency numbers on the VoiceCallManager interface.. but afaict, there's no indication that a specific VoiceCall is connected to an emergency PSAP. is my understanding of that correct? Feb 22 23:41:38 looks like the isimodem driver has stuff like CALL_MODE_EMERGENCY for that sort of thing, but i guess it doesn't do anything w/ them? Feb 22 23:42:30 is the idea that one matches the number dialed against the list of emergency numbers in VoiceCallManager to determine if the call is an emergency call? Feb 22 23:42:56 oFono doesn't care that a call is an emergency call today Feb 22 23:43:14 There's simply no point as the modem does it anyway Feb 22 23:44:08 right, but if the UI wants to know.. Feb 22 23:44:16 So the UI can do the matching Feb 22 23:44:20 okay Feb 22 23:44:57 This part is still very gray area, some modems have "extra" emergency numbers not listed on the SIM Feb 22 23:45:31 So if you pick some random modem you might be in an emergency call without knowing it Feb 22 23:46:44 heh Feb 22 23:46:48 lovely Feb 22 23:47:41 Which is why I'm not adding any sort of emergency call properties until we sort out any vendor specifics that we might be able to utilize Feb 23 01:53:55 denkenz: Can we talk about the udev part of Huawei em770 modem? **** ENDING LOGGING AT Tue Feb 23 02:59:58 2010