El día Monday, July 04, 2011 a las 09:35:24AM +0300, Timo Juhani Lindfors escribió:
> Matthias Apitz <[email protected]> writes: > > Is the FR capable to show that the call runs in non encrypted mode > > because the BS forced the ME to this mode? The question is for Om2008.9 > > but as well valid for any other distribution running on the FR. > > I think the GSM part (Calypso) delivers this information in the AT%CPRI > message. With ogsmd (part of the python version of fso-frameworkd) I > have lines like > > Jul 3 11:57:43 ginger org.freesmartphone.GSM.Network.CypherStatus: enabled: > unknown > > in /var/log/syslog. > > om2008.9 does not use ogsmd afaik but gsmd. I did some tests sending down AT-cmds with the 'chat' command and watching the AT chatting in /var/log/messages: Per default it is set to off: root@om-gta02:~# chat -vs < /dev/ttySAC0 > /dev/ttySAC0 '' 'AT%CPRI?' Jul 5 07:39:50 om-gta02 local2.info chat[1556]: send (AT%CPRI?^M) Jul 5 07:39:50 om-gta02 user.notice root: AtChat : ? : "%CPRI: 0" Jul 5 07:39:50 om-gta02 user.notice root: AtChat : ? : "OK" Then I switched it on with: root@om-gta02:~# chat -vs < /dev/ttySAC0 > /dev/ttySAC0 '' 'AT%CPRI=1' which gives in the /var/log/messages: Jul 5 07:41:37 om-gta02 local2.info chat[1557]: send (AT%CPRI=1^M) Jul 5 07:41:37 om-gta02 user.notice root: AtChat : ? : "OK" then I dialed a number: Jul 5 07:43:49 om-gta02 user.notice root: AtChat : T : "ATD089xxxxxxxx;" Jul 5 07:43:51 om-gta02 user.notice root: AtChat : N : "+CSSI: 1" Jul 5 07:44:17 om-gta02 user.notice root: AtChat : F : "OK" Jul 5 07:44:17 om-gta02 user.notice root: Modem : QModemCall::dialRequestDone() Jul 5 07:44:17 om-gta02 user.notice root: AtChat : T : "AT+CLCC" Jul 5 07:44:17 om-gta02 user.notice root: AtChat : F : "%CPRI: 1,2" Jul 5 07:44:17 om-gta02 user.notice root: AtChat : F : "OK" Jul 5 07:44:17 om-gta02 user.notice root: Modem : dialing was ok, we are connected Jul 5 07:44:23 om-gta02 user.notice root: Modem : QModemCall::hangup() Jul 5 07:44:23 om-gta02 user.notice root: AtChat : T : "AT+CHLD=1" Jul 5 07:44:23 om-gta02 user.notice root: Modem : hangup groups Jul 5 07:44:23 om-gta02 user.notice root: AtChat : F : "OK" as you see, one of the result code of the TE is "%CPRI: 1,2", where the '1' is for GSM (ciphering enabled) and the '2' for GPRS (ciphering state not applicable), see also page 167 for the values in http://www.cartft.com/support_db/support_files/CTFPND-3_AT_Command_Reference.pdf with a bit of tweaking, at least this information is visible in the log files if the connection is ciphered or not. HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[email protected]> - w http://www.unixarea.de/ _______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

