**** BEGIN LOGGING AT Wed May 04 02:59:58 2011 May 04 11:26:10 hello May 04 11:27:27 am new to ofono.. was trying to send sms using huawei datacard.. May 04 11:28:17 but am not able to power it on.. getting timed out.. how to increase timeout value ? any help would be great May 04 11:29:25 ./enable-modem May 04 11:29:26 Connecting modem /huawei0... May 04 11:29:26 Traceback (most recent call last): May 04 12:09:28 Hi sark_2011, can you please enable AT traces (OFONO_AT_DEBUG=1) and send us the log? May 04 12:13:19 hey.. output of ofond -n -d would help ? May 04 12:13:38 where do i have to set OFONO_AT_DEBUG ? May 04 12:16:19 export OFONO_AT_DEBUG=1 May 04 12:16:42 then ofonod -nd '*' and give the output May 04 12:17:26 email the ouput to ofono@ofono.org May 04 12:20:33 I have sent it May 04 12:21:14 ok, I will have a look May 04 12:21:21 thanks May 04 12:23:43 Are you registered to the mailing list? May 04 12:25:32 You have to be registered to send emails May 04 12:40:42 no. . i have not registered to the mailing list.. May 04 12:40:50 will do it right away May 04 12:46:15 subscribed to the mailing list and then sent the debug log again May 04 12:46:56 ok May 04 13:01:19 sark_2011: can you please do a list-modems to make sure that everything is fine? May 04 13:02:16 $ ./list-modems May 04 13:02:16 [ /huawei0 ] May 04 13:02:16 Features = May 04 13:02:40 this is the output i got May 04 13:03:04 i am not able to power it on May 04 13:07:24 and so features is not getting populated May 04 13:10:48 ok, do you had a look at dmsg, to see if everything is fine on this side? May 04 13:12:13 i used gnokii and it is able to identify the modem May 04 13:26:49 denkenz: ping May 04 13:29:21 @BertrandAygon: dmesg also recognises the USB wireless internet modem May 04 13:33:54 even wvdialconf is detecting a modem "Found a modem on /dev/ttyUSB0." May 04 13:37:27 ok, strange... will have to wait for more experimented guys like denkenz or hotlmann. Sorry... May 04 13:38:17 ok.. will wait.. thanks May 04 14:15:15 Gzajac: pong May 04 14:17:00 denkenz: hi , I have tested your implementation with gsmdial and it is working. May 04 14:17:20 denkenz: for the moment I only do "+++" -> ATH May 04 14:17:34 denkenz: should I submit the patches for testing ? May 04 14:19:38 yes, the only other thing I was thinking was to let +++ be sent by GAtPPP May 04 14:20:09 That way the suspend callback can be symmetric between server and client May 04 14:20:33 And so should alleviate some of the concerns you raised on the mailng list May 04 14:24:26 You mean send the escape sequence from emulator as soons as ppp_suspend() has been called ? May 04 14:25:28 If we send it from GAtPPP we will have to respect the guard timeout May 04 14:28:29 At the moment "+++" is sent by at_chat(), if I want to send the escape sequence I have to suspend ppp client e.g. gsmdial May 04 14:29:19 we have stop PPP exchange to send "+++ " or do it from GAtPPP May 04 14:29:59 what would you prefer? May 04 14:38:27 see, the current implementation of g_at_chat_send_escape does not have a proper callback May 04 14:38:47 You also have to suspend ppp first, then call g_at_chat, then resume May 04 14:39:16 I'd rather do everything in one shot, e.g. g_at_ppp_suspend takes care of suspending hdlc, net, sending the escape sequence, etc May 04 14:39:27 And then the suspend callback gets called when everything is done May 04 14:41:02 Gzajac: This way we can cut some trickery from the user May 04 14:45:15 so we do in gsmdial: May 04 14:45:15 g_at_ppp_suspend(){ May 04 14:45:15 suspend_hdlc(); May 04 14:45:15 suspend_net(); May 04 14:45:15 send_escape_sequence(); /* Here we have to manage GUARD_TIMEOUT --> "+++" --> GUARD_TIMEOUT May 04 14:45:16 } May 04 14:45:16 at_chat_resume(); May 04 14:45:17 at_chat_send(chat, prefix_null, "ATH", ...); May 04 14:45:31 we don't implement anymore the +++ into gatchat.c May 04 15:00:38 Gzajac: Correct, you just use g_at_ppp_suspend and wait for the suspend callback May 04 15:00:47 Then you resume the chat in the callback May 04 15:02:41 denkenz: ok for the emulator chat, I resume with suspend callback. May 04 15:02:55 Nod, try this way anyway May 04 15:03:12 I think it leads to nice symmetry, similar to how we did the connect/disconnect callbacks for both client and server ppp May 04 15:03:24 If it looks ugly then we'll see what else we can come up with May 04 15:04:53 but for gsmdial chat, how could I resume it? May 04 15:05:26 using a g_timeout_add? after g_at_ppp_suspend() May 04 15:06:37 g_at_ppp_set_suspend_callback() May 04 15:06:43 then g_at_ppp_suspend calls the callback May 04 15:06:49 after the guard timeouts, etc May 04 15:06:56 ok May 04 15:06:59 I see now :) May 04 15:07:04 right May 04 15:07:08 I will try this May 04 15:25:43 denkenz: I have implemented it and I have tested it. I will send the patches now. May 04 15:52:17 sark_2011: ping May 04 15:54:16 hey May 04 15:54:24 do you have a sim inserted? May 04 15:55:34 its a datacard May 04 15:55:55 so.. its built in May 04 15:56:19 oh, really, you cannot remove it or insert another one? May 04 15:56:33 according to AT log, it seems that there is something strange with the SIM May 04 15:57:13 modem give SIM state 240, and according to ofono sources, 240 doesn't means anything May 04 15:57:50 http://www.rcom.co.in/Rcom/personal/internet/wireless_internet.html click on the devices tab May 04 15:57:58 so i was thinking of doing the same test without SIM, or with anoter SIM. And also checking the PIN status May 04 15:58:03 i have huawei ec168c May 04 15:58:50 Ok, I have one, which is a ZTE, and we can remove/change the SIM May 04 15:59:03 So... May 04 15:59:22 sark_20111, check your mail ;) May 04 16:05:44 OliverG: just replied May 04 16:06:38 OlivierG: do u suggest me to change interface_num to something else by trial/error ? May 04 16:07:40 I doubt this is the problem, as Bertrand said, the issue is the weird sim state value May 04 16:15:13 one reason of my proposal ;) is the COMMAND NOT SUPPORT ... but it is just an idea ;) May 04 16:19:08 denkenz: looking at huawei modem init, it seems that those modem take time to 'boot' May 04 16:19:22 oFono is doing some poll, or force the power on May 04 16:19:29 OlivierG: Nope, that is standard Huawei terminal error May 04 16:19:41 OlivierG: The DIAG port would simply not reply with anything May 04 16:20:16 BertrandAygon: The huawei plugin tries to poll, but it assumes some values of sim state May 04 16:20:22 240 is not a value we've seen before May 04 16:20:25 but in current case, with a state which seems unknow, nothing is done... May 04 16:20:50 ok, so maybe the code should be more flexible May 04 16:21:09 and try again in case of unknow state May 04 16:21:35 or even try to power on May 04 16:21:43 There is one Huawei model that is utterly broken. May 04 16:22:07 The firmware is just doing all kinds of things wrongly and crashed easily. May 04 16:22:23 I hope it is not that specific one ;) May 04 16:23:28 without that particular dongle, hard to tell May 04 16:23:29 do you kno where we can find huawei AT command definition? May 04 16:23:43 From Huawei May 04 16:23:52 :) they give it online? May 04 16:24:02 If you speak Chinese ;) May 04 16:24:08 We have access to one AT command spec under NDA, but that only covers a particular modem May 04 16:24:30 not yet :) May 04 16:24:39 The rest is homework May 04 16:24:51 A lot of pieces are just pure guess work. Cross fingers and hope you assumed right. May 04 16:25:37 yes, this is why I think that we should have a 'default' case in the notify_sim_state to retry or power on, just in case... May 04 16:27:01 I have found a doc and they give for value for SYSINFO: May 04 16:27:03 Except that you have no idea on what to do in that state. May 04 16:27:05 1 valid May 04 16:27:11 240 ROMSIM version May 04 16:27:18 255 UIM card not exist May 04 16:27:30 so what is ROMSIM version? May 04 16:27:51 you try and cross finger ;) May 04 16:29:16 is it because the SIM is embedded within the card? May 04 16:30:46 So maybe we have to consider 240 like case Valid SIM, and powered on the modem. May 04 16:31:09 But I agree that without the card, it's difficult to handle such cases... May 04 16:32:32 try it out, I don't have this card to test with May 04 16:33:44 sark_20111: are you still there? **** ENDING LOGGING AT Thu May 05 02:59:57 2011