Avatar for mvcorrea

mvcorrea

Member since Jul 2017 • Last active Aug 2017
  • 1 conversations
  • 5 comments

Most recent activity

    • 8 comments
    • 284 views
  • in ESP8266
    Avatar for mvcorrea

    those for soft spi are ok?

    var sx = new SPI();
    sx.setup({ sck:D0, miso:D4, mosi:D5 });
    sx = require('SX127x').connect({spi: sx, cs: D2});
    

    regards,

  • in ESP8266
    Avatar for mvcorrea

    With softspi I got the hello back in the console :)
    connected a logic analyser and only got this repeated.... (could you take any conclusion from this)
    one question, I noticed the module doesnt have any dependencies.
    how do i work with the module locally (on command line)?
    "wget SX127x" and use require('./SX127x').connect doesnt seems to work.

  • in ESP8266
    Avatar for mvcorrea

    Gordon thanks for the reply, and congrats I noticed the module also is yours :) really great work.

    Yah the module is powered (checked 3.3v on the module). Powered from pins between D4&D5 on ESP.

    Is It possible to use the gpios 6/7/8/11 for spi? How about reset pin?

    regards

    if anyone is interested, rfm95 manual attached

  • in ESP8266
    Avatar for mvcorrea

    RFM95 pinout

  • in ESP8266
    Avatar for mvcorrea

    all new with espruino on esp8266.

    found the module https://www.espruino.com/SX127x same chip in the RFM95.

    RFM95 (868mhz) pinout attached:

    Really nothing happens here, the callback is not called.
    How to check if radio is working? how to debug those?
    thanks for any help.

    by the way does anybody knows how to avoid showing crap chars when reseting the board (before espruino logo).

    connections:

    ESP <--------------> RFM
    CLK (GPIO14/D5)  <-> SCK
    MISO (GPIO12/D6) <-> MISO
    MOSI (GPIO13/D7) <-> MOSI
    CS (GPIO15/D8)   <-> NSS
    ??? <-> RESET
    

    code:

    function loraHandler(err, data){
      if (err) console.log("RX ERROR");
      else console.log("RX>", data);
    }
    
    console.log("all starting on ESP8266...");
    SPI1.setup({ sck:D14, miso:D12, mosi:D13 });
    var sx = require("SX127x").connect({spi: SPI1, cs: D15});
    
    // Until DIO0 line irqs are implemented we need this:
    setInterval(function() { sx.onIRQ(); }, 100);
    
    var config = { rxContinuous : true };
    sx.setRxConfig(config);
    
    sx.rx(loraHandler);
    
    setTimeout(function() {
      console.log("going standby");
      sx.standby();
    }, 10000);
    
    // vim: ai ts=2 sts=2 et sw=2 ft=javascript
    

    and the output:

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v92 Copyright 2016 G.Williams
    
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    
    >all starting on ESP8266...
    =undefined
    Uncaught Error: Radio not found!
     at line 1 col 63
    ...ow Error("Radio not found!");this.setOpMode(0);this.mask(1,1­...
                                  ^
    in function called from system
    going standby
    >
    
Actions