zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
90 stars 47 forks source link

Always Timeout due to line break before response #82

Closed jaydenpung closed 3 years ago

jaydenpung commented 3 years ago

Whenever serialport-gsm send any AT command, it always ends up in timeout. I tried connecting with putty, and I can see a line break before the "OK" response. How do I modify the serialport-gsm to handle this, is there any configuration parameter I can pass?

Edit: I am guessing it has something to do with this line: if (options) options['parser'] = SerialPort.parsers.raw I have tried every type of parsers here and still no luck. Any guide please?

image image image

Edit2: The "0D 0A" is the line break image

Apollon77 commented 3 years ago

I do not really see the issue there, the library supports that. please add "logger: console" to the options and provide log

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.