• Hello Gordon,

    Thanks for your answer.
    My code runs on Pico, not on Linux, (now I understand the comment in the code).
    Baud rate, parity and flow are correct.
    I am sure that the RN module works, because I tested it using the Foca adaptor and the GtkTerm with the same Serial parameters as those present in the code. It's the same problem on Serial1 and Serial2.

    My test code runing on Pico is this one:

    var SERIAL_OPTIONS = {
        "rx":B7,
        "tx": B6,
        "bytesize": 8,
        "parity": null,
        "stopbits": 1,
        "flow": null
    };
      
    Serial1.setup(57600, SERIAL_OPTIONS);
    
    var at = require("AT").connect(Serial1);
    
    at.debug();
    
    at.cmd("sys reset\r\n", 2000, function cb(d) {
      
      console.log(d);
      
    });
    
    

    When I run it, I get :

    echo(0);
    ["sys reset\r\n"
    =undefined
    undefined

    I should get the reset return message which gives RN2483 version, date...
    The RN module is correctly connected and voltage levels are correct on the PINs. I use a breakboard from Dr Azzy.

    So my question is: Is the code above correct ? Should it work ?
    Thanks a lot.
    GeekBot

    Just to clarify how to send commands from a Linux GtkTerm to the RN2483 (using Foca adpator):
    1/ Uncheck the CRLF option in Gtkterm
    2/ You need to add CTRL-M CTRL-J manually to the command (to send the CR LF), then the command get executed correctly on the RN2483.

About

Avatar for GeekBot @GeekBot started