python-gammu
python-gammu copied to clipboard
GetNetworkInfo() network name netinfo['NetworkName'] is empty
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.
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.
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
Exactly the same situation for me. Monitor shows network name, but get_network_info_async in python-gammu returns empty NetworkName.
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.
SMS Daemon is not related. It happens even when you connect to a modem using this library, which doesn't use any backend storage.