Comments (4)
What do you mean by sending several messages at once? You would like to create several connections to a single modem and send them simultaneously or just send a very long text, that consists of 7 parts?
I tested this library once (around a year ago) by sending a single, extremely long message (something like 1000+ characters) and it worked quite well. If that is your issue I may rerun this test 🙂
If not, please remember that normally you have just a single serial interface, that should be blocked by a single process. Couple of modems actually register itself with multiple virtual serial ports, but their functionality usually changes among them.
Also a code snipped may give us a clue what you are trying to achieve and will allow us to reproduce this error.
from python-gsmmodem.
I apologize for not being able to reply right away. What's happening was I was only using a single modem, which is both the receiver and the sender, when i send multiple text like spamming it, it tends to stop replying to the 5th text, but when I included another modem, one modem is the receiver (converts the texts into textfiles) and one modem is the sender (waits and reads textfiles), the issue doesn't happen anymore.
Now I'm going to try using one modem as the receiver and multiple modems as the sender. Is this possible?
from python-gsmmodem.
I think it should be possible. Unfortunately I still have not checked this module with multiple modems, but that case definitely should be considered if one day I get some time to make a small set of system tests 🙂
from python-gsmmodem.
You can always use the modem for single task at a time. Don't make multiple connections to the same modem.
Using multiple modems is fine.
Just run a separate thread using correct serial settings for each modem.
It does not matter whether you run multiple scripts by hand in terminal, or you write a custom initscript/daemon/etc which will create the threads automatically.
from python-gsmmodem.
Related Issues (20)
- Question: Support for modems with multiple SIMS ? HOT 1
- dial_polling_demo.py throws gsmmodem.exceptions.TimeoutException: ['NO CARRIER']
- TimeoutException with Sim800 module HOT 1
- Delivery Reports can't be disabled when in PDU mode HOT 2
- Modem working but having Timeout Exception HOT 3
- CMSError: CMS 321 HOT 3
- incompatibility with latest pyserial 3.5
- (removed - useless)
- Sms not receiving
- Support for RFC2217 (serial port over network)
- how best to extend? HOT 1
- Add an example to demonstrate the Sending SMS HOT 2
- Does not work on Python 3.x HOT 2
- Still Alive? HOT 5
- Question: support for windows? HOT 12
- Timeout exception raised for any command. HOT 16
- Error: 'GsmModem' object has no attribute 'rxThread' HOT 3
- sms_handler fails HOT 2
- Instant timeout exception
- PDU Decoding Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gsmmodem.