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

How to expose or force USE_SMSTEXTMODE from python?

Open ocalvo opened this issue 2 years ago • 6 comments

Some alarms system only receive SMS in text mode and gammu seems to always default to send in PDU mode.

Is there a way to expose or force text mode from the python API?

Thanks.

Oscar

ocalvo avatar Oct 25 '22 03:10 ocalvo

The features configuration is indeed not exposed in the Python API. So far, the preferred solution was to include needed flags inside Gammu, so that it does not have to be configured by every user: https://github.com/gammu/gammu/blob/master/libgammu/gsmphones.c

nijel avatar Oct 25 '22 10:10 nijel

The features configuration is indeed not exposed in the Python API. So far, the preferred solution was to include needed flags inside Gammu, so that it does not have to be configured by every user: https://github.com/gammu/gammu/blob/master/libgammu/gsmphones.c

Please help me make this. What I can do?

diemon24 avatar Oct 28 '22 23:10 diemon24

I don't see SIM800 in this config:

/* Other */
{"SIMCOM_SIM300D","SIMCOM_SIM300D","",		{F_ENCODED_USSD, 0}},
{"SIMCOM_SIM900","SIMCOM_SIM900","",		{0}},
{"Quectel_M35",	"Quectel_M35","",		{0}},

how I can add SIM800 configuration in docker HA on Synology NAS?

diemon24 avatar Oct 28 '22 23:10 diemon24

This should be a change in the C version of gammu.

Filed new issue to track it:

https://github.com/gammu/gammu/issues/752

ocalvo avatar Oct 29 '22 00:10 ocalvo

gammu/gammu#752

Thx very much ! but I use SIM800 on HomeAssistant. I dont know what GSM modem using in my alarm system. I send sms to my alarm system from SIM800. I hope we understand each other

diemon24 avatar Oct 29 '22 00:10 diemon24

It’s working! Thx you very much!

diemon24 avatar Nov 26 '22 17:11 diemon24