Avatar for Majkl

Majkl

Member since Oct 2015 • Last active Apr 2017
  • 1 conversations
  • 3 comments

Most recent activity

    • 2 comments
    • 2,022 views
  • in General
    Avatar for Majkl

    Hello, I have a problem with Espruino Pico on Mac.
    When I plug it in, red light flashes and then nothing flashes.
    When I connect espruino tty.usbmodem1 it connects and after a while it disconnects.
    When I want to connect it again, connection options state tty.usbmodem2 and again disconnects.
    I tried to reflash the firmware (with success) but still the same.

    Sometimes it writes this log:

    Connected
    >es from flash...
    >Console Moved from Serial1
    >
    =undefined
    >echo(0);
    <<<<<{"VERSION":"1v81","BUILD_DATE":"Oct  8 2015","BUILD_TIME":"16:03:41","GIT_COMMIT":"8e1efcf898350a290242d732631be15c36f53381","BOARD":"PICO_R1_3","CHIP":"STM32F401CDU6","CHIP_FAMILY":"STM32F4","FLASH":393216,"RAM":98304,"SERIAL":"63004700-13513430-36363435","CONSOLE":"USB","EXPORTS":{"jsvLock":182749,"jsvLockAgainSafe":182737,"jsvUnLock":182713,"jsvSkipName":120321,"jsvMathsOp":209729,"jsvMathsOpSkipNames":277173,"jsvNewFromFloat":209961,"jsvNewFromInteger":210029,"jsvNewFromString":124953,"jsvNewFromBool":209985,"jsvGetFloat":203841,"jsvGetInteger":204657,"jsvGetBool":204105,"jspeiFindInScopes":210601,"jspReplaceWith":135865,"jspeFunctionCall":115713,"jspGetNamedVariable":140209,"jspGetNamedField":229317,"jspGetVarNamedField":228953,"jsvNewW
    Disconnected
    > 
    

    Can you help me

  • in General
    Avatar for Majkl

    Hello friends. I have a problem with

    Uncaught No 'ready' after AT+RST
     at line 2 col 18
      if (err) throw err;
    
    Serial2.setup(115200, { rx: A3, tx : A2 });
    var wifi = require("ESP8266WiFi_0v25").connect(Serial2, function(err) {
      if (err) throw err;
      wifi.reset(function(err) {
        if (err) throw err;
        console.log("Connecting to WiFi");
        wifi.connect("WiFi_Name","WPA2_Key", function(err) {
          if (err) throw err;
          console.log("Connected");
          // Now you can do something, like an HTTP request
          require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
            console.log("Response: ",res);
            res.on('data', function(d) {
              console.log("--->"+d);
            });
          });
        });
      });
    });
    

    When I was testing baud rates, only reasonable output was:

    AT+GMR\r\r\nAT version:0.21.0.0\r\nSDK version:0.9.5\r\n\r\nOK\r\n
    

    What am I doing wrong? Red light is on. When I removed the "if(err) throw err;" the script continues and Blue light is sometimes blinking (when trying to connect)

  • in Interfacing
    Avatar for Majkl

    What about HM-11 board? Iam using B6,B7 for TX,RX. But do I need the system key to solder (HM11 pin 16) with A8? (http://www.elecrow.com/download/bluetooth40_en.pdf)

    Edit:I tried with A8 but It seems I cant connect to the bluetooth module. When I try to connect to tty.Bluetooth-Incoming-Port, I cant write any command :/

Actions