**** BEGIN LOGGING AT Thu Nov 11 02:59:57 2010 Nov 11 06:47:13 is it the proper channel for asking the questions regarding ofono development ? Nov 11 07:02:48 yes Nov 11 07:02:59 but don't expect an answer right away Nov 11 07:03:19 hello tmzt_dg2root, i have written a program, which uses the phonet protocol just like the ofono does, am able to send the data to the modem and even receive data from it, the problem the received data is not valid. you can find the program , input, output , and required output in the following link http://pastebin.com/uwH7HUrm, can you please tell what might be the mistake? Nov 11 07:03:33 tmzt_dg2root, thanks for the reply Nov 11 07:03:37 no, I don't work with that Nov 11 07:03:59 ok np thanks Nov 11 07:07:50 tmzt_dg2root, we can use the ofono dbus command on ubuntu ? Nov 11 07:08:02 *can we Nov 11 07:08:03 yeah Nov 11 07:08:14 if it requies dbus 1.3 now I don't know Nov 11 07:08:40 tmzt_dg2root, ok thanks Nov 11 07:10:26 can i use the same dbus command on ubuntu found on this link http://wiki.maemo.org/User:Jebba/Ofono ? Nov 11 07:12:23 the dbus api you use are dependent on the version of ofono you use Nov 11 07:39:06 sugnan: what do you mean the data you receive is not valid? Nov 11 08:09:41 akiniemi, sorry for the late reply had been to food, see the link http://pastebin.com/uwH7HUrm Nov 11 08:10:13 in the link have specified the output am getting and the requored output Nov 11 08:10:25 *required Nov 11 08:11:39 here the output is the date am receiving back from the modem when i send some data Nov 11 08:15:09 data sent to modem: 0x1B, 0x60, 0x10, 0xC8, 0x00, 0x05, 0x00, 0x01, 0x02, 0x36, 0x01 Nov 11 08:15:42 data am receiving is : 1b f0 14 60 1 0 0 0 Nov 11 08:16:13 data am suppose to receive for the set data: 1b,10,60,c8,00,0e,01,1b,02,37,00,02,2c,04,02,00,2c,04,01,00 Nov 11 08:16:24 *sent Nov 11 08:57:46 sugnan: what modem are you talking to? Nov 11 08:58:48 sugnan: if it's N900, then the resource ID is wrong; PN_MODEM_NETWORK service doesn't actually exist, you need to use PN_NETWORK Nov 11 08:59:09 Funny thing is, PN_NETWORK implements some of the PN_MODEM_NETWORK interfaces Nov 11 08:59:11 akiniemi, ok let me be clear, as ofono cannot be used with the phone like n95 which donot have dbus support, am trying to use the phonet protocol directly Nov 11 08:59:47 am creating a socket, binding it with address and then trying to send the data Nov 11 09:00:03 sugnan: on an N95? Nov 11 09:00:33 akiniemi, ya nokia N95 mobile Nov 11 09:00:44 ...connected via USB? Nov 11 09:00:48 yup Nov 11 09:00:56 Then oFono will work just fine Nov 11 09:01:32 Not perfectly, as the isimodem driver isn't specifically for the N95 modem version Nov 11 09:01:55 Anyhow, same issue there, use PN_NETWORK Nov 11 09:02:49 y not PF_PHONET ? Nov 11 09:04:23 akiniemi, what may the reason for receiving wrong data from the modem of N95? do you think its isimodem problem ? Nov 11 09:11:03 It's not wrong, per se, it is a COMMON_MESSAGE saying ENTITY_NOT_REACHABLE or some such error. Nov 11 09:11:18 That is, there is no PN_MODEM_NETWORK (0xC8) Nov 11 09:11:42 Use PN_NETWORK resource, 0x0A Nov 11 09:12:12 akiniemi, thanks a lot will try that Nov 11 09:14:59 sugnan: are you connecting to the n95 over something or running linux on it? Nov 11 09:15:37 tmzt_dg2root, connecting n95 to linux machine through usb Nov 11 09:16:10 too bad, I've been hearing about a bootloader for two+ years now Nov 11 09:16:36 tmzt_dg2root, i dint get you Nov 11 09:16:47 bootloader for linux/android on n95 Nov 11 09:20:11 akiniemi, that dint help, actually i am trying all these with the tracing tool, if i send the same data as input as i have given in my program, it gives a proper required reply, Nov 11 09:20:44 *if i give the input through tracing tool Nov 11 14:55:20 sugnan: ah, I see. Might be that those messages are simply blocked from the USB interface. Nov 11 14:56:50 akiniemi, ya you may be right, because what i see is the data is just reaching the device but get rejected there due to some reason and getting wrong data as reply Nov 11 17:16:31 denkenz: does this make sense to you: http://pastebin.com/zxn8f7VE Nov 11 17:18:56 nope Nov 11 17:19:07 everything in oFono is async Nov 11 17:19:29 so you can't expect set_powered (TRUE) then FALSE to work like that Nov 11 17:20:53 likely what you need to do is snapshot the important state, then re-init the modem to that state Nov 11 17:22:16 For now assume that a silent reset indication means the modem is now 'off' Nov 11 17:27:35 So to be async I need to call disable, wait the modem be powered down, then call enable, wait, pre_sim, wait. Nov 11 17:29:42 pre_sim is not async actually Nov 11 17:29:47 but yeah basically Nov 11 17:36:11 great, I'll do that. Nov 11 18:19:36 denkenz: i didn't get what's the difference between a plugin and a driver Nov 11 18:20:06 denkenz: some modems define an OFONO_PLUGIN inside drivers/, others inside plugins/ Nov 11 18:20:27 Yeah, the separation is a bit confusing Nov 11 18:20:36 please, take a look on this implementation i made: Nov 11 18:20:39 But basically a plugin is anything linked into oFono Nov 11 18:21:00 So it can provide 1..n drivers Nov 11 18:21:19 Or simply call the oFono public / private APIs Nov 11 18:22:04 http://pastebin.com/MWjd13LH Nov 11 18:22:24 this should be the src/text-telephony.c Nov 11 18:22:53 so basically i have to implement now the query_powered and set_powered methods inside the driver Nov 11 18:22:58 does this make sense? Nov 11 18:25:35 yeah it looks good, but Powered is the wrong name for the property Nov 11 18:25:40 Maybe Enabled is better Nov 11 18:26:18 humn... i used the name they (you?) provided Nov 11 18:26:23 i'll change it Nov 11 18:26:33 where? Nov 11 18:27:14 I don't see it in the TODO entry Nov 11 18:27:48 ahnn... maybe it was added by mail Nov 11 18:28:06 this is what i see in a mail sent by mauri whalen Nov 11 18:31:43 denkenz: ok... whatever is the name, now i have to add these methods to the plugin, right? Nov 11 18:32:06 You need to add include/text-telephony.h Nov 11 18:32:15 And create some sort of driver structure yes Nov 11 18:32:19 denkenz: yes, it's done too Nov 11 18:32:45 http://pastebin.com/b5uyHgyZ Nov 11 18:33:20 since i don't have an mbm modem yet, i thought in adding them to phonesim Nov 11 18:33:41 yep, looks good Nov 11 18:33:53 So yeah, just add a simple implementation to phonesim Nov 11 18:34:20 You can do the tt driver inside plugins/phonesim.c directly Nov 11 18:34:39 See how I shoved the gprs context driver in there for an example Nov 11 18:45:41 demarchi: Please name the driver function query_tty and set_tty Nov 11 18:47:37 humn... i was using tty in some places Nov 11 18:47:41 and tt in others Nov 11 18:47:51 i renamed all of them to tt_* Nov 11 18:48:02 do you think tty is better? Nov 11 18:48:22 I'm referring to the set_powered / query_powered methods Nov 11 18:48:35 text_telephony as the atom name seems OK Nov 11 18:49:08 and by convention struct text_telephony *tt is fine Nov 11 18:49:41 ok Nov 11 19:14:43 denkenz: actually phonesim is sync on enable/disable to me, that's why it's was working to me. :) Nov 11 19:15:52 yeah, phonesim is, but mostly because its socket based and we're lazy ;) Nov 11 19:17:44 Does it work with Multiplexer = internal. That makes phonesim enable a-sync. Nov 11 19:24:40 no, multiplexer was for the freerunner over tcp hack Nov 11 19:29:03 Ok, I'll make some hack here on phonesim, just to test this. Nov 11 19:29:15 nod Nov 11 21:29:30 denkenz: is that a big problem? or you have no idea? ofonod[18196]: Requested file structure differs from SIM: 6fb7 Nov 11 21:29:50 no don't worry about that one, normal **** ENDING LOGGING AT Fri Nov 12 02:59:57 2010