-
Thank you @Gordon! It's better now.
There is a similar bug with
Uncaught Error: 0, SEND OK already registered
Here is 2 examples..
Example 1:
["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n0, CONNECT OK\n" ] "\r\n0, CLOED\r\n" ] "\r\nERROR\r\n"
then every 10 minutes
["AT+CIPSTART=1,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n1, CONNECT OK\r\n" ] "\r\n1, CLOSED\r\n" ERROR: {"code":-15,"message":"no response"} Uncaught Error: 0, SEND OK already registered at line 1 col 44 if(h[a])throw Error(a+" already registered");h[a]=b ^ in function "registerLine" called from line 1 col 254 ...+', SEND FAIL'),busy=!1,''}),at.registerLine(a+', SEND FAIL'... ^ in function called from system
when the sockets debug look like this
{ "socks": [ true ], "sockData": [ "", "", "", "", "", "0124": "undefined" ] }
Example 2:
["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n0, CONNECT OK\r\n" ] "\r\n> " ] "\r\n0, END OK\r\n" ] "\r\n+RE" ] "CEIVE,0,124:\r\nHTTP/1.1 408 Request Timeout\r\nConnection: close\r\nDate: Thu, 21 Jan 2021 14:32:35 GMT\r\nContent-Length: 0\r\n\r\n" ] "\r\n, CLOSED\r" ] "\n"
then every 10 minutes
["AT+CIPSTART=1,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n1, CONNECT OK\r\n" ] "\r\n1, CLOSED\r\n" ERROR: {"code":-15,"message":"no response"} Uncaught Error: 0, SEND OK already registered at line 1 col 44 if(h[a])throw Error(a+" already registered");h[a]=b ^ in function "registerLine" called from line 1 col 254 ...+', SEND FAIL'),busy=!1,''}),at.registerLine(a+', SEND FAIL'... ^ in function called from system
when the sockets debug look like this
{ "socks": [ true, undefined ], "sockData": [ "", "", "", "", "" ] }
Thanks again.
-
Hi,
I'm still getting the error, this is how it looks using the second scenario when
at.debug
enabled["AT+CSTT=\"apn.net\", \"\", \"\"\r\n" ] "\r\nO" ] "K\r\n" ["AT+CIICR\r\n" ] "\r\nOK" ] "\r\n" ["AT+CIFSR\r\n" ] "\r\n" ] "ip.ip.ip.ip\r\n" ["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n0, CONNECT O\r\n" ] "\r\n0, CLOSED\r\n" ERROR: {"code":-15,"message":"no response"} ] "\r\nS" ] "HUT OK\r\n"
And then after 10 minutes
["AT+CSTT=\"apn.net\", \"\", \"\"\r\n" ] "\r\nOK" ] "\r\n" ["AT+CIICR\r\n" ] "\r\nO" ] "K\r\n" ["AT+CIFSR\r\n" ] "\r\n" ] "ip.ip.ip.ip\r\n" ["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" Uncaught Error: 0, CONNECT OK already registered at line 1 col 44 if(h[a])throw Error(a+" already registered");h[a]=b ^ in function "registerLine" called from line 1 col 174 ...CONNECT FAIL'),socks[a]=!0}),at.registerLine(a+', CONNECT FA... ^ in function "c" called from line 1 col 25 g=void 0;var b;c&&(b=c(a))?(g=e,c=b):clearTimeout(d);void 0=... ^ in function "g" called from line 2 col 4 g(f)}b=b.substr(a+1);if(p&&d)return q("");"\n"==b[0]&&(b=b.s... ^ in function called from system ] "\r\n0, CONNEC" ] "T OK\r\n" ] "\r\n> " ] "\r\n0, SE" ] "ND OK\r\n\r\n+RECEIVE,0,159:\r\nHTTP/1.1 200 OK\r\nConnection: close\r\nDate: Mon, 18 Jan 2021 15:47:55 GMT\r\nContent-Type: application/json; charset=" ["AT+CIPCLOSE=0,1\r\n" ] "\r\n0, CLOSE OK\r\n" ["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n0," ] " CONNECT OK\r\n" ] "\r\n> " ] "\r\n0, SEN" ] "D OK\r\n\r\n+RECEIVE,0,159:\r\nHTTP/1.1 200 OK\r\nConnection: close\r\nDate: Mon, 18 Jan 2021 15:48:08 GMT\r\nContent-Type: application/json; charset=u" ["AT+CIPCLOSEE=0,1\r\n" ] "\r\n0, CLOSE OK\r\n" ] "\r\n" ] "SHUT OK\r\n"
Thank you
-
Hello again,
Still testing this modulehttps://raw.githubusercontent.com/espruino/EspruinoDocs/sim808/devices/SIM900.js
I don't know if this related to the request timeout but I'm posting data every 10 minutes, at first this works ok, but when I got
{"code":-15,"message":"no response"}
response so after 10 minutes, the next request will begin with this error message.Uncaught Error: 0, CONNECT OK already registered at line 1 col 44 if(h[a])throw Error(a+" already registered");h[a]=b ^ in function "registerLine" called from line 1 col 174 ...CONNECT FAIL'),socks[a]=!0}),at.registerLine(a+', CONNECT FA... ^ in function "c" called from line 1 col 25 g=void 0;var b;c&&(b=c(a))?(g=e,c=b):clearTimeout(d);void 0=... ^ in function "g" called from line 2 col 4 g(f)}b=b.substr(a+1);if(p&&d)return q("");"\n"==b[0]&&(b=b.s... ^ in function called from system
It might work, but over time after couple requests this getting worse and the majority of the responses are 'no response' with the error above.
What I'm trying to establish for now is to find the best way for stable connection and requests so I can continue my project knowing I have reliable way dealing with this.
All test I did are when there is a good cellular signal.
I tried those 2 scenarios with same results:
1:- gprs = require('https://.../devices/SIM900.js').connect(Serial1... - ONCE
- gprs.connect('', '', '', (err)... - ONCE
- gprs.getIP((err, ip) - ONCE
- require("http").request(options, (res) - EVERY 10 MINUTES
2:
- gprs = require('https://.../devices/SIM900.js').connect(Serial1... - ONCE
- gprs.connect('', '', '', (err)... - EVERY 10 MINUTES
- gprs.getIP((err, ip) - EVERY 10 MINUTES
- require("http").request(options, (res) - EVERY 10 MINUTES
- "AT+CIPSHUT" command (deactivate gprs) - EVERY 10 MINUTES
Your help is greatly appreciated..
Michael. - gprs = require('https://.../devices/SIM900.js').connect(Serial1... - ONCE
-
-
The default timeout seems to be 120 seconds? from simcom.
https://simcom.ee/documents/SIM808/SIM800%20Series_AT%20Command%20Manual_V1.09.pdfAnyway,
GET requeststestGet1 = function() {}
worked fine every 30 seconds even when the service was down.
POST requests in other hand, I tried requests every 130 seconds for more than 10 hours when the service was up. I started with 666 free memory and finished with 451. This leak occurred only once, from 666 to 451 with "no response" message.
There were more "no response" messages but the leak occurred only on one of them.I will do the same test with POST requests, service down, 5 minutes interval and see if still there any memory leak.
Is there a way to specify a 30 seconds timeout in the GET/POST requests from http module?
Thank you.
-
Until ... :)
It's definitely a lot better but I did some more tests, I shut down the remote service while continuing the POST requests to it (every 30 seconds), I got a 'no response' message as expected but it seems to be a memory leak here.
BTW, 1 is when the service is up and running...Loading 12442 bytes from flash... Running onInit()... >initGPRS() =undefined ========== FREE MEMORY BEFORE STARTING REQUESTS: 928 ========== Response: 1 ========== FREE MEMORY - POST 664 ========== Response: 1 ========== FREE MEMORY - POST 664 ========== Response: 1 ========== FREE MEMORY - POST 664 ========== Response: 1 ========== FREE MEMORY - POST 664 ========== ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 563 ========== ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 473 ========== New interpreter error: LOW_MEMORY,MEMORY ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 152 ========== ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 430 ========== ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 434 ========== ERROR: Error processing Serial data handler - removing it. Execution Interrupted during event processing. New interpreter error: CALLBACK ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 136 ========== ERROR: Ctrl-C while processing interval - removing it. Execution Interrupted during event processing. >
With Debug (Service down all time):
Loading 12442 bytes from flash... Running onInit()... >initGPRS() =undefined ========== FREE MEMORY BEFORE STARTING REQUESTS: 927 ========== >sim.gprs.at.debug() ={ line: "", lineCallback: undefined, handlers: { "+RECEIVE": function (b) { ... }, "+D": function (b) { ... } }, lineHandlers: { "0, CLOSE": function (b) { ... }, "1, CLOSE": function (b) { ... }, "2, CLOSE": function (b) { ... }, "3, CLOSE": function (b) { ... }, "4, CLOSE": function (b) { ... } }, waiting: [ ], dataCount: 0 } ["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ["AT+CIPSTART=1,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ["AT+CIPSTART=2,\"TCP\",\"fake.server.com\",80\r\n" New interpreter error: LOW_MEMORY,MEMORY ] "\r\nOK\r\n" ] "\r\n0, CONNECT FAIL\r\n" ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 152 ========== ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 430 ========== ["AT+CIPSTART=0,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n1, CONNECT FAIL\r\n" ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 434 ========== ["AT+CIPSTART=1,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ] "\r\n2, CONNECT FAIL\r\n" ["AT+CIPSTART=2,\"TCP\",\"fake.server.com\",80\r\n" ] "\r\nOK\r\n" ERROR: Error processing Serial data handler - removing it. Execution Interrupted during event processing. New interpreter error: CALLBACK ERROR: { "code": -15, "message": "no response" } ========== FREE MEMORY - ERROR POST 136 ========== ["AT+CIPSTART=2,\"TCP\",\"fake.server.com\",80\r\n" ERROR: Ctrl-C while processing interval - removing it. Execution Interrupted during event processing. >
-
@Gordon thank you very much!
It's doing GET/POST requests for ~13 hours now without any errors or memory leak :) -
-
Hi, thank you Gordon,
Now I'm getting this error:
["AT+CIPSTART=1,\"TCP\",\"http://www.pur3.co.uk\",80\r\n" ] "\r\nOK\r\n" Uncaught Error: 1, CLOSE already registered at line 1 col 44 if(m[a])throw Error(a+" already registered");m[a]=d ^ in function "registerLine" called from line 2 col 429 ...;g[a]=void 0;l=!1;return""});else return g[a]=void 0,"" ^ in function "c" called from line 1 col 25 e=void 0;var u;c&&(u=c(t))?(e=k,c=u):clearTimeout(h);void 0=... ^ in function "e" called from line 2 col 16 k=!0);k||e&&e(h)}b=b.substr(a+1);if(k&&f)return d("");"\n"==... ^ in function called from system ] "\r\n1, CONNEC" ] "T OK\r\n" ] "\r\n> " ] "\r\n1" ] ", SEND OK\r\n" ] "\r\n+RECEIVE,1,1348:\r\nHTT" ] "\r\n+RECEIVE,1" ] ",1348:\r\n/h1> \r\n<!--\t\t<form method=\"get\" class=\"searchform\" action=\"search.php\">\r\n\t\t\t<div><input type=\"text\" name=\"text\" class=\"textbox\" />\r\n \t\t\t<input type=\"submit\" name=\"search\" cla" ] "\r\n+" ] "RECEIVE,1,1325:\r\na wide variety of platforms. For more information, please see the <a href=\"About\"><span>About</span></a> page.<br />\n<br />\n<strong>We also de" ["AT+CIPCLOSE=1,1\r\n" Got Response with statuscode: 200 Error Flags [ ] ========== FREE MEMORY - GET1 148 ========== ] "\r\n1, CLOSE OK\r\n" >
-
Hi Gordon,
although I'm not sure the console log you posted actually matches the code that you posted up?
Yes I Just clean it up to be easier to see the important data.
Are you sure you're not calling initGPRS more than once? I don't see it called at all in the code, but if it were called multiple times it would definitely cause a memory leak.
I am calling it only once manually from the left side of the IDE when the SIM808 is ready - Just for testing.
AT Debug:
>sim.gprs.at.debug() ={ line: "", lineCallback: undefined, handlers: { "+RECEIVE": function (b) { ... }, "+D": function (b) { ... } }, lineHandlers: { }, waiting: [ ], dataCount: 0 }
First request:
>testGet1() ["AT+CIPSTART=0,\"TCP\",\"http://www.pur3.co.uk\",80\r\n" =undefined ] "\r\nOK\r\n" ] "\r\n0, CONNECT OK\r\n" ] "\r\n> " ] "\r\n0, SEND " ] "OK\r\n" ] "\r\n+RECEIVE,0,134" ] "8:\r\nHTTP/1.1 200 OK\r\nDate: Thu, 31 Dec 2020 11:09:20 GMT\r\nServer: Apache/2.4.18 (Ubuntu)\r\nVary: Accept-Encoding\r\nConnection: close\r\nContent-Type: text/html;charset=UT" ] "\r\n+RECEI" ] "VE,0,1348:\r\n/h1> \r\n<!--\t\t<form method=\"get\" class=\"searchform\" action=\"search.php\">\r\n\t\t\t<div><input type=\"text\" name=\"text\" class=\"textbox\" />" ] "\r\n+RECEIVE," ] "0,1325:\r\na wide variety of platforms. For more information, please see the <a href=\"About\"><span>About</span></a> page.<br />\n<br />\n<strong>We also develop the&nbs" ["AT+CIPCLOSE=0,1\r\n" Got Response with statuscode: 200 Error Flags [ ] ========== FREE MEMORY - GET1 885 ========== ] "\r\n0, CLOSE OK\r\n"
Second request:
>testGet1() ["AT+CIPSTART=0,\"TCP\",\"http://www.pur3.co.uk\",80\r\n" =undefined ] "\r\nOK\r\n" Uncaught Error: 0, CLOSED already registered at line 1 col 44 if(m[a])throw Error(a+" already registered");m[a]=d ^ in function "registerLine" called from line 2 col 432 ...;g[a]=void 0;l=!1;return""});else return g[a]=void 0,"" ^ in function "c" called from line 1 col 25 e=void 0;var u;c&&(u=c(t))?(e=k,c=u):clearTimeout(h);void 0=... ^ in function "e" called from line 2 col 16 k=!0);k||e&&e(h)}b=b.substr(a+1);if(k&&f)return d("");"\n"==... ^ in function called from system ] "\r\n0, CONNECT OK\r\n" ] "\r\n> " ] "\r\n0, SEND" ] " OK\r\n" ] "\r\n+RECEIVE,0,134" ] "8:\r\nHTTP/1.1 200 OK\r\nDate: Thu, 31 Dec 2020 11:09:43 GMT\r\nServer: Apache/2.4.18 (Ubuntu)\r\nVary: Accept-Encoding\r\nConnection: close\r\nContent-Type: text/html;charset=U" ] "\r\n+RECEI" ] "VE,0,1348:\r\n/h1> \r\n<!--\t\t<form method=\"get\" class=\"searchform\" action=\"search.php\">\r\n\t\t\t<div><input type=\"text\" name=\"text\" class=\"textbox\" />\r\n" ] "\r\n+RECEIVE" ] ",0,1325:\r\na wide variety of platforms. For more information, please see the <a href=\"About\"><span>About</span></a> page.<br />\n<br />\n<strong>We also develop the&nbs" ["AT+CIPCLOSE=0,1\r\n" Got Response with statuscode: 200 Error Flags [ ] ========== FREE MEMORY - GET1 750 ========== ] "\r\n0, CLOSE OK\r\n"
Thank you,
-
Hello,
I'm using MDBT42 flashed with the latest firmware (2v08) and I'm experiencing a strange behavior with http module.
After everything initialized usingrequire('SIM900')
I got ~1300 free memory and then I started getting \posting data from\to a server every 30 seconds and after the first successful response and starting from the second request I'm getting this error but I'm still getting successful responses...Uncaught Error: 0, CLOSED already registered at line 1 col 44 if(m[a])throw Error(a+" already registered");m[a]=d ^ in function "registerLine" called from line 2 col 432 ...;g[a]=void 0;l=!1;return""});else return g[a]=void 0,"" ^ in function "c" called from line 1 col 25 e=void 0;var u;c&&(u=c(t))?(e=k,c=u):clearTimeout(h);void 0=... ^ in function "e" called from line 2 col 16 k=!0);k||e&&e(h)}b=b.substr(a+1);if(k&&f)return d("");"\n"==... ^ in function called from system
... while the free memory decrease every request.
FREE MEMORY - 851 FREE MEMORY - 724 FREE MEMORY - 713 ... ... FREE MEMORY - 173 FREE MEMORY - 165 FREE MEMORY - 158 FREE MEMORY - 149 FREE MEMORY - 146 FREE MEMORY - 143 FREE MEMORY - 138 FREE MEMORY - 134
After a couple of minutes I got those errors:
ERROR: Error processing Serial data handler - removing it. Execution Interrupted during event processing. New interpreter error: CALLBACK,MEMORY New interpreter error: BUFFER_FULL [ "BUFFER_FULL", "CALLBACK", "LOW_MEMORY", "MEMORY" ]
The issue is the same using GET and POST.
Am I doing it wrong?
Is there any better way to do this interval thing?Here is the full code for my trials.
Thank you.
let sim={}; let m; function onInit(){ E.setConsole("Bluetooth"); setTimeout(() => { Serial1.setup(115200,{rx:D8,tx:D6}); }, 1*1000); } function initGPRS(){ setTimeout(()=>{ sim.gprs = require('SIM900').connect(Serial1, null, (err)=>{ if (err) throw err; cntGPRS((ip)=>{ console.log(ip); console.log("Error Flags", E.getErrorFlags()); m = process.memory().free; console.log("==========\r\nFREE MEMORY BEFORE STARTING REQUESTS:", m, "\r\n==========\r\n"); setInterval(()=>{ testGet1(); //testGet2(); //testPost(); }, 30*1000); }); }); }, 5*1000); } function cntGPRS(cb){ setTimeout(()=>{ sim.gprs.connect('', '', '', (err)=>{ if (err) throw err; setTimeout(()=>{ sim.gprs.getIP((err, ip)=>{ if (err) throw err; if (cb) cb(ip); }); }, 5*1000); }); }, 5*1000); } function testGet1(){ if(!sim.http){ sim.http = require("http"); } try{ sim.http.get('http://www.pur3.co.uk', (res)=> { let content = ""; res.on('data', (d)=> { content+=d; }); res.on('close', ()=>{ //console.log(content); console.log("Got Response with statuscode:", res.statusCode); console.log("Error Flags", E.getErrorFlags()); m = process.memory().free; console.log("==========\r\nFREE MEMORY - GET1", m, "\r\n==========\r\n"); }); }).on('error', (e)=>{ console.log("ERROR:", e); console.log("After ERROR GET", m); }); }catch(e){ console.log("ERROR http.get:", e); } } function testGet2(){ require("http").request({ "host":"http://www.pur3.co.uk", "path":"/", "method":"GET", }, (res)=> { let content = ""; res.on('data', (d)=>{ content+=d;}); res.on('close', (d)=>{ //console.log(content); console.log("Got Response with statuscode:", res.statusCode); console.log("Error Flags", E.getErrorFlags()); m = process.memory().free; console.log("==========\r\nFREE MEMORY - GET2", m, "\r\n==========\r\n"); }); }).end(); } function testPost(){ postJSON({postURL:"http://www.pur3.co.uk", data: {d:7}, callback: (d)=>{ if(d) console.log("Response:", d); console.log("Error Flags", E.getErrorFlags()); m = process.memory().free; console.log("==========\r\nFREE MEMORY - POST", m, "\r\n==========\r\n"); }}); } function postJSON(params) { if(!sim.http){ sim.http = require("http"); } try{ setTimeout(()=>{ content = JSON.stringify(params.data); let options = url.parse(params.postURL); options.method = 'POST'; options.headers = { "Content-Type":"application/json", "Content-Length":content.length }; let req = sim.http.request(options, (res)=>{ let content = ""; res.on('data', (d)=>{ content+=d; }); res.on('close', (d)=>{ console.log("Got Response with statuscode:", res.statusCode); params.callback(); }); }); req.on('error', (e)=>{ params.callback(e);}); req.end(content); }, 5*1000); }catch(e){ console.log(e); } }
-
Hello,
I'm experiencing the exact issue as this post:
http://forum.espruino.com/conversations/315054/console.log(require("fs").readdirSync()); Unable to mount media : NOT_READY
It worked one time only between a lot of trials without changing any thing.
I'm using a new 16GB micro-sd card formatted to FAT32 and works fine on windows 10.All the connections and power are OK.
CS => B1
DI => A7
DO => A6
CLK => A5
GND => -
3v => 3.3vTimeout of 3 seconds between:
SPI1.setup({sck: A5, miso: A6, mosi: A7}); E.connectSDCard(SPI1, B1);
and
console.log(require("fs").readdirSync());
I also tried a pullup resistor on pin B1 I don't know if I did it right:
pinMode(B1, 'input_pullup');
I'm using Espruino WiFi with firmware 2v08.
Do I need to connect CD pin somewhere too?
All I need is stable initialization when powering up espruino wifi.
I planning to use the button for
E.unmountSD();
before powering off.Thank you.
-
Hi,
Thank you @Gordon and @allObjects for your detailed answers I learned a lot from them and sorry for the delay.
I am a software developer and I am new in all electronics thing.. so thank you for your patience with me ;)I got it to work, apparently all 5 FETs I had were not good.
I did the tests as you asked me with this results:
D18=1:
- (D18 pin / Gate of FET) with GRD => ~3.3V
- (Drain of FET) with GRD => 5V
D18=0:
- (D18 pin / Gate of FET) with GRD => 0V
- (Drain of FET) with GRD => 5V
About the current measurement from FET Drain:
- D18=1 => 0A
- D18=0 => 0A
So I bought 25 new same FETs and I did the same test (20% of them were not good too).
The good ones worked fine with same results, except the current measurement that was ~100mA, and the FET Drain was ~8mV when D18=1Thanks again.
Michael. - (D18 pin / Gate of FET) with GRD => ~3.3V
-
-
This is the test I did on FET
Video with length of 44 seconds
https://drive.google.com/file/d/1j8QKCe9VVsWkoX506Xw6I3b0pwM3S2ny/view?usp=drivesdk -
-
-
Hi,
I'm trying to do the same thing as here:
https://www.youtube.com/watch?v=epEGN-7GsPs&t=312s
The only difference is that I'm using MDBT42Q and it's +/- bat pins with 5v and not an external power source. (without a diode for now)
The switch pin in my case is D18. (See attachment photo)
What could be the problem?
Thank you,
Michael. -
-
Hello everybody,
Based on this tutorial REYAX RYLR896/406/895/405 LoRa modules I connected an Espruino WiFi and Espruino Pixl.js with two Lora RYLR896 (see attached photos).By the way, the line:
var RYLR = require('RYLR.js');
must be
var RYLR = require('RYLR');
So I had an issue with lora in the Pixl.js, but when I removed the VDD pin from D9 and put it on 3.3v everything worked perfectly fine and the 2 Espruino devices are transmitting and receiving data. now my problem is, when I connect the Espruino WiFi to a 5v power supply instead of the PC USB, it powered on and connects to the wifi but the lora doesn't send or receive data, once I plug it in on any PC it works fine.
This issue is only with the Espruino WiFi because when I connect the Pixl.js to the same 5v power supply everything works fine as long as the Espruino WiFi is powered from the PC.
Help will be appreciated.
-
Ok, I can now see the correct date and time, but, my tests shows that if I'm using onInite function when the board is connected to an external power source the date goes back to 1970, is that mean that I need to manage getting the current datetime from the internet or whatever so the board can continue from there or there is another better solution for boards that does not connect to the internet like Puck.js etc. ?
Thanks,
Michael. -
-
-
Hi - the connections are good, close and with 0 resistance from pin to pin (espruino => SIM808)
I changed the baud rate from 115200 to 57600 and then to 38400 and this missing characters is less frequent and it's a lot more stable now.
The testing still in progress...
Thanks again @Gordon.