Avatar for user56164

user56164

Member since Jun 2015 • Last active Aug 2015
  • 1 conversations
  • 1 comments

Most recent activity

    • 4 comments
    • 2,467 views
  • in General
    Avatar for user56164

    Hi,

    I've been working on Espruino and Sim900 module on my ST Nucleo-F401RE, but I have found some problems with this module: when I send the module code example from web to the board with Espruino Web IDE (from the right side of IDE), I only can receive from USART "Connecting to SIM900 module", no error displays or anything.

    Serial1.setup(115200, { rx: B7, tx : B6 });
    
    console.log("Connecting to SIM900 module");
    var gprs = require('SIM900').connect(Serial1, B4 /*reset*/, function(err) {
      if(!err) {
        gprs.connect('APN', 'USERNAME', 'PASSWORD', function(err) {
          console.log(err);
          gprs.getIP(function(err, ip) {
            console.log('IP:' + ip);
            require("http").get("http://www.pur3.co.­uk/hello.txt", function(res) {
              console.log("Response: ",res);
              res.on('data', function(d) {
                console.log("--->"+d);
              });
            });
          });
        });
      } else {
        console.log(err);
      }
    });
    

    I can observe loading the code that some messages appear: "Module NetworkJs not found" and "Module http not found". I know these are built-in, and I have the update firmware on board and last IDE version. This same problem appears too when I try to require CC3000 module.

    In addition, I have to change my board too due to the fact that my previous board (Olimexino STM32) couldn't load any module bigger than 4 or 5 kB (for example the BMP085 module, now I can do it, this is not the matter, but I would want to know the cause, because I changed the Olimexino STM32 microController STM32f103RBT6 for the STM32f103RCT6 that has bigger SRAM, but I didn't get it either).

    Also, I have worked on this module in other boards with Maple software, and I have always used a pulse of 1200 ms in order to initiate the module, but in JavaScript code I only observe a pulse of 1ms on reset pin. In fact I can't initiate my SIM900 if I don't send this digitalPulse (only with JavaScript code I don't get it).

    I would really appreciate if you could help me with this. Thanks

Actions