Skip to content

Instantly share code, notes, and snippets.

@pmcote
Created June 24, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmcote/722064bed527fc2fd74b to your computer and use it in GitHub Desktop.
Save pmcote/722064bed527fc2fd74b to your computer and use it in GitHub Desktop.
GPRS with External Power Debugging
Paste your console logs here!
@mennamorato
Copy link

C:\Users\Dad\tessel-code\gprs>tessel run gprs.js
TESSEL! Connected to TM-00-04-f000da30-005d4f3c-446c2586.
INFO Bundling directory C:\Users\Dad\tessel-code (~57.74 KB)
INFO Deploying bundle (84.00 KB)...
INFO Running script...
GPRS module connected to Tessel. Searching for network...
Sending Text from a Tessel! to 18315359589 ...
{ message: 'Chain broke on AT+CMGS="18315359589"', type: 'Error', name: 'Error', stack: 'stack traceback:
/app/node_modules/gprs-sim900/index.js:207: in function 'f'
/app/node_modules/gprs-sim900/index.js:193: in function 'temp'
/app/node_modules/gprs-sim900/postmaster.js:153: in function 'reply'
/app/node_modules/gprs-sim900/postmaster.js:162: in function </app/node_modules/gprs-sim900/postmaster.js:103>'
}
at
got command [ 'at' ]

reply:
err: { message: 'no reply after 10000 ms to message "at"', type: 'timeout', name: 'Error', stack: 'stack traceback:
/app/node_modules/gprs-sim900/postmaster.js:160: in function </app/node_modules/gprs-sim900/postmaster.js:103>'
}
data:

@mennamorato
Copy link

I cloned the latest gprs and set debug = true in index.js but i don't see any special error messages
i will keep trying, it seems to want to send the sms but crashes after a few seconds
thanks
-mark

@mennamorato
Copy link

Ok here is a different crash..
bash-3.2$ tessel run gprs.js
TESSEL! Connected to TM-00-04-f000da30-005d4f3c-446c2586.
INFO Bundling directory /Users/markennamorato/gprs-sim900 (~53.77 KB)
INFO Deploying bundle (75.00 KB)...
INFO Running script...
GPRS module connected to Tessel. Searching for network...
Sending Text from a Tessel! to 18315359589 ...
{ message: 'Chain broke on AT+CMGS="18315359589"', type: 'Error', name: 'Error', stack: 'stack traceback:
/app/index.js:207: in function 'f'
/app/index.js:193: in function 'temp'
/app/postmaster.js:153: in function 'reply'
/app/postmaster.js:167: in function 'f'
/app/postmaster.js:86: in function '?'
/app/packetizer.js:152: in function '?'
builtin/tessel.js:738: in function 'func'
[T]: src/colony/lua/colony-node.lua:54: in function <[T]: src/colony/lua/colony-node.lua:53>' }

@pmcote
Copy link
Author

pmcote commented Jul 1, 2014

Hmmmmn, I am actually able to recreate this problem with or without external power. It's some sort of failure with the tx_rx communication between the module and Tessel. I'll dig around in the code for you tonight and hopefully have an answer for you by tomorrow at the latest.

@LaFermeDuWeb
Copy link

Hi, I got the same issue while trying to send a sms.
Did you find some fix ?
Thanks a lot for the work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment