python-gammu icon indicating copy to clipboard operation
python-gammu copied to clipboard

GetNetworkInfo() network name netinfo['NetworkName'] is empty

Open jensolsson opened this issue 6 years ago • 5 comments

NetworkCode is "240 24" and I would think it should populate NetworkName from https://wammu.eu/tools/networks/ but it does not. Am I doing something wrong maybe?

Also would like to know if it is at all possible to send a custom command to the modem via gammu, or if I then need to extend gammu in some way?

Kind regards Jens


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

jensolsson avatar Aug 05 '18 09:08 jensolsson

This is network name as returned by phone, it might be empty in many cases. You can use gammu.GSMNetworks for lookup in Gammu networks database.

nijel avatar Aug 06 '18 12:08 nijel

Hi there,

I have similar problem. python-gammu does not return the network name as presented in the phone, but gammu monitor shows network name as presented in the phone. Is it possible to fix it? Do you need any further information?

BR

darnokb avatar Nov 21 '19 18:11 darnokb

Exactly the same situation for me. Monitor shows network name, but get_network_info_async in python-gammu returns empty NetworkName.

PaulAnnekov avatar Jul 23 '22 21:07 PaulAnnekov

If you're using database backend, check your character set settings (if should be messages about in log if you enable debug log). https://docs.gammu.org/smsd/mysql.html?highlight=utf8

Database for Gammu SMSD In case you get errors about not supported charset, please replace utf8mb4 with utf8.

IPB-DevOps avatar Aug 16 '22 12:08 IPB-DevOps

SMS Daemon is not related. It happens even when you connect to a modem using this library, which doesn't use any backend storage.

PaulAnnekov avatar Aug 16 '22 15:08 PaulAnnekov