Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modem no longer responds #18

Open
hervedelmas opened this issue Dec 24, 2014 · 8 comments
Open

modem no longer responds #18

hervedelmas opened this issue Dec 24, 2014 · 8 comments

Comments

@hervedelmas
Copy link

Hello Emil,

I found that after a certain execution time, the modem no longer responds? Is it a full buffer problem? or other?
I have to restart regularly features to the catcher sms works.
Have you already seen this problem? Did you reference a modem that everything is working properly?

Happy holidays to you, Hervé

@brugnara
Copy link

@hervedelmas This module has some lack as I reported and tried to correct times ago. The reading system drops packets that are less than 2 chars. All modems I've tried, many times respond with sequences of ONE char composing a response, in example:

O
K
\n

O
K\n+CM
GS

You cannot fix this, neither removing lines 118 and 119 because this module is expecting a full line with command but this happens only few times and this is very related to the modem you are using and the speed of the modem it self. That part must be rewritten, but that's just my opinion. If you want to use this module and fix by your self, check serialport on git (https://github.com/voodootikigod/node-serialport/blob/master/parsers.js) at line 13 you will find a read function that simply works. You will need to do a little fix if you want to send SMS because the > command modem sends, doesn't end with a \r\n and is not parsed as a full command but it's easily fixable. But hey, you can simply use my module that simply works... 👀

I've stopped using this plugin for this and other related problems (callbacks not working as expected) and wrote a new one you can find searching node-modem. I'm using that in production, we are sending 50k sms/month with 4 modems in parallel.

@hervedelmas
Copy link
Author

Brugnara thank you!

So I just problem on sending SMS? and that is it for automatic SMS reception? you have an example? Which modem you use in parallel? I use the LG A290 TriSim as a modem, but can not access the SIM 2 and 3 via AT Commands? What about you?
Thank you in advance.

@brugnara
Copy link

node-modem is for queuing commands to a modem only.
I'll work on receiving SMS in the Q1 2015.

We are using HCP Hit 55 USB modems. It's made in Serbia. It's not cheap but it works like a charm :)
I'm working to put 3 servers with 4 modems each (expanding the actual 2 server with 2 modems) in a round robin configuration with a queuing system handled by a redis. The target is to handling queues of 500k messages at a time (ads we are selling)

@hervedelmas
Copy link
Author

Please do, warned me when you have a solution for the reception of sms ...
For now I will continue to revive js node, and deepen your code ...
thank you for everything

@rubenswebdev
Copy link

Brugnara node-modem work in gateways 16 ports?

@brugnara
Copy link

I am using in production with 4 modems. My module works on USB devices you
can find in the /dev folder. You have to see 16 devices (/dev/ttyUSB0, 1,
2,...) into that folder and configure the software to use each one of
those.
Il 09/Ott/2015 22:11, "Rubens Fernandes" [email protected] ha
scritto:

Brugnara node-mode work in gateways 16 ports?


Reply to this email directly or view it on GitHub
#18 (comment).

@rubenswebdev
Copy link

it worked!!! thanks @brugnara 👍

@brugnara
Copy link

Glad to hear that.

On Wed, Oct 14, 2015 at 2:25 PM Rubens Fernandes [email protected]
wrote:

Works!!! thanks @brugnara https://github.com/brugnara [image: 👍]


Reply to this email directly or view it on GitHub
#18 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants