Avatar for net-tobi


Member since Dec 2014 • Last active Jun 2015
  • 12 conversations

Most recent activity

  • in General
    Avatar for net-tobi

    @Gordon : I have to say thank you for the great support!

  • in General
    Avatar for net-tobi

    It is working well without any changes being necessary in the driver I uploaded here a few days ago. So you can use it as module. As well if someone else needs help regarding the SIM900 hardware I will of course help to get it running.

  • in General
    Avatar for net-tobi

    The new AT lib did it! Thank you so much Gordon! It works much more stable now. I'll test it tomorrow intensively.

  • in General
    Avatar for net-tobi

    Yes this is as well part of the problem. My close handlers are not getting called if the line starts with \r\n or \r or \n. See here:

    var handler = function(d) {
            var s;
            if(d === 'OK') {
              s = sckt;
              at.registerLine(s + ', CONNECT OK', function() {
                at.unregister(s + ', CONNECT OK');
                socks[s] = true;
              at.registerLine(s + ', CLOSED', function() {
                at.unregisterLine(s + ', CLOSED');
                socks[s] = undefined;
          at.cmd('AT+CIPSTART='+sckt+',"TCP",'+JSO­N.stringify(host)+','+port+'\r\n', 10000, handler);

    This unfortunately happens sometimes, for example a few seconds ago I had the situation:

    ] "\r\n1, CLOSED\r\n" <--- "\r\n1, CLOSED\r\n"

    The close handler has not been called here :(

  • in General
    Avatar for net-tobi

    maybe by extending the features of the AT lib?

  • in General
    Avatar for net-tobi

    Hi Gordon... It is annoying... Again problems with GPRS. When the sim900 is ready for receiving data after AT+CIPSEND it sends:

    ] "\r\n> "

    When I use the following code:

    at.register('> ', function() {
      at.unregister('> ');
      return "";

    It removes the "> " from the AT buffer but leaves "\r\n" in it which can cause problems for subsequent requests (maybe for the +RECEIVE handler as well). I tried as well to register for "\r\n> ". That didn't solve that for me. How would you handle that? There are as well situations like

    ] "\r" <--- "\r"
    ] "\n> " <--- "\n> "


    ] "\r\n>" <--- "\r\n>"
    ] "> " <--- " "
  • in General
    Avatar for net-tobi

    Please see the post above.

    Okay, If I experience further problems with it, I will add a timeout.

  • in General
    Avatar for net-tobi

    Okay we have to wait for SEND OK, otherwise data can be lost. My solutions from yesterday works now. I saw that the LOW_MEMORY flag was set during execution. I compressed the code now and it seems to work stable.

    Here you find the current version of the driver.