modem icon indicating copy to clipboard operation
modem copied to clipboard

modem no longer responds

Open hervedelmas opened this issue 11 years ago • 8 comments

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é

hervedelmas avatar Dec 24 '14 06:12 hervedelmas

@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... :eyes:

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.

brugnara avatar Dec 24 '14 07:12 brugnara

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.

hervedelmas avatar Dec 24 '14 07:12 hervedelmas

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)

brugnara avatar Dec 24 '14 08:12 brugnara

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

hervedelmas avatar Dec 24 '14 08:12 hervedelmas

Brugnara node-modem work in gateways 16 ports?

rubenswebdev avatar Oct 09 '15 20:10 rubenswebdev

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 https://github.com/emilsedgh/modem/issues/18#issuecomment-146975801.

brugnara avatar Oct 10 '15 06:10 brugnara

it worked!!! thanks @brugnara :+1:

rubenswebdev avatar Oct 14 '15 12:10 rubenswebdev

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: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/emilsedgh/modem/issues/18#issuecomment-148032981.

brugnara avatar Oct 14 '15 12:10 brugnara