[PATCH] huawei: always parse operator name in +COPS responses as ASCII

Aleksander Morgado aleksander at lanedo.com
Mon Aug 26 11:47:28 PDT 2013


On 26/08/13 18:44, Ben Chan wrote:
> The patch was suggested by Huawei as their modems always return operator
> names in ASCII in +COPS response. I'd let Franko to provide more details.
> 
> I haven't seen a real operator using a name that reassembles a hex
> string, so it's probably not an issue in real practice. It could be an
> issue in test lab where a call box may configure the operator name as 1234.
> 

This case was the original culprit:

ModemManager[20633]: <debug> [1377077909.318827]
[mm-at-serial-port.c:408] debug_log(): (ttyUSB0): <-- '<CR><LF>+COPS:
0,0,"1235",2<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[20633]: <debug> [1377077909.321855]
[mm-broadband-modem.c:3406] modem_3gpp_load_operator_name_finish():
loaded Operator Name: ስ


"1235" was indeed a test operator name; which unluckily triggered the
issue because it is a valid UCS2 encoded string.

-- 
Aleksander


More information about the ModemManager-devel mailing list