On Fri, 17 Mar 2017 14:16:50 -0000
<colin.helliw...@ln-systems.com> wrote:

> I'm reviewing the info fetched on my modems, and one of them is giving an
> unusual format for "AT+COPS=3,2;+COPS?" :
> 
>    +COPS: 0,2,"00320033003400310035",0 
> 
>  
> 
> This seems to be some sort of 'wide char' hex representation of "23415"
> [which is what I'd expect].
> 
> The modem's AT spec doesn't say anything about it coming back in the form,
> but I just wondered if it was a format anyone had encountered elsewhere?
> 

Hi Colin,
   That's in UCS2 format. Various AT commands (depending manufacturer) return 
strings in it. It's usually controlled modally by the 'AT+CSCS=' command, but 
some modems can ignore that (even if it's set to IRA or GSM) for certain 
commands and return things in UCS2 format. Things like network name etc which 
they may expect to contain rich characters etc are prime candidates.

-- 
Andrew Bird <a...@spheresystems.co.uk>
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to