-
Hi,
I just got an esp-01 from ebay which looks similar to
http://www.kingcomchina.com/T82.html
It's a 1MB version, and it responds to AT commands
Does anyone know the command for flashing using esptool?
AT+RST OK ets Jan 8 2013,rst cause:1, boot mode:(3,7) load 0x40100000, len 2408, room 16 tail 8 chksum 0xe5 load 0x3ffe8000, len 776, room 0 tail 8 chksum 0x84 load 0x3ffe8310, len 632, room 0 tail 8 chksum 0xd8 csum 0xd8 2nd boot version : 1.6 SPI Speed : 40MHz SPI Mode : DOUT SPI Flash Size & Map: 8Mbit(512KB+512KB) jump to run user1 @ 1000 â.ì.nìròn|ì.lprlârll....l`.ârlìl....l`.ârl....ll`.rlrlâb.bb.brlp..bìònî.nnâ....lòp.ll..llì...l`..nü.âb.l.lrp....âb.l.b.rlrl ready
AT+GMR AT version:1.3.0.0(Jul 14 2016 18:54:01) SDK version:2.0.0(656edbf) compile time:Jul 19 2016 18:44:44 OK
-
-
-
@Wilberforce changed the baud rate. No luck yet!
I guess it is best suitable for numbers and HELP!
-
@Gordon Just placed an order for pico from official tindie, order # 64437.
Also donated $5 with paypal. Confirmation number: 8GF29176FL1303242
I am not making any money using Espruino / ESP8266. I am just a hobbyist. :)
But I love working with Espruino on my spare time. It makes myself alive. I love this community and thanks for doing this great work!
Espruino Rocks!
-
-
@Wilberforce, Once you setup the Wifi I can use ESP-01, RX / TX pins. They are simple connected to D3 and D1, please check the following image
-
@MaBe, I tried flashing the 512KB version, but it didn't work. Getting continuous message like this
rl.l|.là|.....lì.b|.ì.rb.bònnlnnâì.b.pìlrlrlpònà.....l......b.nâ|.lìlbònnî.ll`...nn..l..nrn...ll`.pònà....râà....b.nâ|.ìbònnî..l`...nn..l..nrn...l`.pònà....râàì...b.nâ|.l.bònnî..l`...nn.l`...nrn..r.l`..rn..r.l`.rlnònnâr.nnn.lbbplb.l..ì.lì.........lll~rl..ì.lllnâ........lll.l..ì.lnà.nìn~..llàb..llpb.brìl`nlpìl`bl`.ln..nânl|.b....l...l
So I had to revert to the 1v86.171 version. This is the command I have used
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --flash_freq 40m --flash_mode qio --flash_size 8m 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0xFC000 esp_init_data_default.bin 0x1FC000 blank.bin
-
Thanks, I will give it a try.
@MaBe, did you see the image? Do you have any idea what is causing this problem?
-
@MaBe
I am using esp-01 upgraded version (1MB), Do you have a version which I can flash?Thanks
Navas -
Ok, I figured 1v91 doesn't have Graphics library inbuilt, so I had to use 1v86.171.
Now, the following example doesn't display "Hi" rather it displays some weird characters on the display. Any idea?
https://goo.gl/photos/8qLAqh571H3u8rTH6
var SPI2 = new SPI(); SPI2.setup({mosi:D0, sck:D2}); var disp = require("MAX7219").connect(SPI2, D3); var g = Graphics.createArrayBuffer(8,8,1); // Create graphics g.flip = function() { disp.raw(g.buffer); }; // To send to the display g.drawString("Hi"); g.flip(); // update what's on the display
-
-
-
@Ollie, thanks for fixing the double reconnect and activating the keepalive.
Appreciate much!
Thanks
Navas -
Hey @Gordon,
Sorry for the delayed response. I was away for a business trip...
https://github.com/olliephillips/tinyMQTT
this one works pretty well so far since these guys fixed the "double" reconnect and enabled the "keepalive" functionality.
I will test with the official MQTT and will report it back when I get time.
thanks
Navas -
Hi Everyone,
Is anyone knows how to display on Max7291?
I am trying to create a Graphics buffer as mentioned on
http://www.espruino.com/MAX7219
var g = Graphics.createArrayBuffer(8,8,1); // Create graphics
But getting an "Uncaught Reference" error :(
Can anyone help?
Thanks
Navas -
-
I haven't figured out any fixes yet. I saw the previous post by @Ollie and requested his code, if he can help.
-
hey @Ollie would you mind sharing the code how do you do it. I am haveing the same exact problem.
Thanks
Navas -
-
This is the console output of my server when the client is trying to reconnect. Any ideas ?
1484814088: mosquitto version 1.4.8 (build date 2017-01-18 17:13:27+0530) starting 1484814088: Config loaded from /etc/mosquitto/mosquitto.conf. 1484814088: Opening ipv4 listen socket on port XXXX. 1484814089: New connection from XXXXXXXXXX on port XXXX. 1484814089: New connection from XXXXXXXXXX on port XXXX. 1484814090: New client connected from XXXXXXXXXX as 5ccf7f84-8675 (c0, k65535, XXXXXXXXXX'). 1484814092: Socket error on client 5ccf7f84-8675, disconnecting. 1484814096: New connection from XXXXXXXXXX on port XXXX. 1484814096: New connection from XXXXXXXXXX on port XXXX. 1484814096: New connection from XXXXXXXXXX on port XXXX. 1484814096: New connection from XXXXXXXXXX on port XXXX. 1484814096: Client 5ccf7f84-8675 disconnected. 1484814096: New client connected from XXXXXXXXXX as 5ccf7f84-8675 (c0, k65535, XXXXXXXXXX'). 1484814096: Socket error on client 5ccf7f84-8675, disconnecting. 1484814100: New connection from XXXXXXXXXX on port XXXX. 1484814100: New connection from XXXXXXXXXX on port XXXX. 1484814101: New connection from XXXXXXXXXX on port XXXX. 1484814101: New connection from XXXXXXXXXX on port XXXX.
-
Is there anyone who can help me achieving reliable MQTT connection? I cannot reconnect to the MQTT server after it disconnects for some reason. I tried with two different MQTT server and results are same. Connecting back to the MQTT server on disconnected event does not work.
disconnected disconnected disconnected disconnected disconnected disconnected ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket ERROR: Unable to create socket
var wifi = require("Wifi"); var mqtt = require("tinyMQTT").create("XXXXX", { username: "XXXXX", password: "XXXXX", port: XXXX }); mqtt.on("connected", function(){ console.log("connected"); mqtt.subscribe("espruino/test"); isMQTTAlive = true; }); mqtt.on("message", function(msg){ console.log(msg.topic); console.log(msg.message); }); mqtt.on("published", function(){ console.log("message sent"); }); mqtt.on("disconnected", function(){ console.log("disconnected"); mqtt.connect(); }); function start() { wifi.setHostname("navas178"); wifi.connect("XXXX", {password:"XXXXX"},function(){ mqtt.connect(); }); } E.on('init', start);
Add this on top-off the line of our source code and enable minification for code from IDE settings.
http://take.ms/CVBrq