Just flashed Espruino V2... questions/remarks #7113
Replies: 1 comment
-
Posted at 2018-10-19 by Wilberforce
@opichals made changes to this area recently
This has not been implement at this stage. It requires using the mDNS library - and there was a move to do this in JS as a library rather than coding specifically for the ESP32 using esp-idf.
I believe this is ESP8266 specific - I'm not sure other ports support it. When the ESP32 was release there was not power mode options - there might be now - I have not looked recently. Posted at 2018-10-19 by @gfwilliams I think you maybe tried to link it - but just wanted to add that the reference at http://www.espruino.com/Reference usually tells you what is and isn't available on different boards. If it doesn't for a board then that's something I could fix if I know about it. Posted at 2018-10-21 by opichals @wilberforce Did it ever work for your change at espruino/Espruino@5c9c7b5#diff-1b4afc5c5771734770c516012233e69c on the ESP32 board itself? @crashingdutchman IMO the warning should be harmless. However it looks like we should get rid of trying to set it on ESP32 as the https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/lwip/lwip/sockets.h#L185 states that it is unimplemented. Posted at 2018-10-22 by Wilberforce @opichals https://www.espruino.com/binaries/travis/4f2b50f97887874339db5fae1f643fb6a6a47489/espruino_esp32.bin Posted at 2018-10-22 by opichals @wilberforce Yes, I changed that to happen for the TCP servers. Thanks for removing it. Before it was present for Posted at 2018-10-22 by CrashingDutchman Sorry for the late response, I was away for a couple of days. Thank you all for the replies, for the moment I am fine with your replies. The setHostname() has never worked for me anyway (with the ESP8266). I will ignore the warning! Posted at 2018-10-22 by opichals @crashingdutchman The setHostname() should work once this espruino/Espruino#1376 is done (considering it will probably eat quite a lot of RAM which is scarse on the ESP8266). Posted at 2018-10-22 by CrashingDutchman Okay, I understand. Thank you @opichals Posted at 2018-10-23 by CrashingDutchman Something else I notice is that the IDE doesn't find board information if the ESP32 has been connected for a while to my PC through the serial port. When connecting Espruino to the COM port, I see: Below is a log from the console, including the part where I disconnected and reconnected the ESP32 from/to the port:
Posted at 2018-10-23 by Wilberforce How long is a while? It is possible that the USB port gets turned off for power saving after a period of inactivity. Posted at 2018-10-24 by CrashingDutchman I am not yet sure how long a while is. I connected the ESP32 probably on Thursday and left the IDE open, computer was powered on at all times. When I wanted to connect the IDE to the port yesterday (Tuesday) evening (around 8 pm) I got the messages. I disconnected and reconnected the device yesterday and was able to connect through the IDE. This morning I found that my computer had rebooted. I tried to connect again from the IDE and saw the same messages. It seems that only a power cycle of the ESP32 allows me to connect successfully. I will keep an eye on this and report back when I have more information. Thank you @wilberforce Posted at 2018-10-24 by @gfwilliams It might be the ESP32 has crashed for some reason. The IDE will say it couldn't get the board info if the board is unresponsive. You could try connecting with some other terminal program and seeing if you have any joy. Posted at 2018-10-24 by CrashingDutchman I tested the following:
Posted at 2018-10-25 by @gfwilliams And what about connecting with another terminal app? Posted at 2018-10-28 by CrashingDutchman When I get this error in the IDE, connecting with Putty results in an: Putty Fatal Error: Error reading from serial device. In the putty dialog I see this: Posted at 2018-10-28 by Wilberforce This is normal behaviour for me. It seems the USB port gets in an odd state and physically disconnecting and reconnecting are nescessary. This is why I usually connect WiFi and connect via IP address. I only use usb for flashing. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-10-18 by CrashingDutchman
I just found the latest version of Espruino (herehttps://www.espruino.com/binaries/espruino_2v00_esp32/) and flashed it to a ESP32 DoIt NodeMCU.
When I connect the IDE I see a warning: setsockopt(SO_REUSPORT) failed. Is that expected?
I try to connect it to my router and see that the following is not working:
For both functions I see a "Uncaught error: function not found!" Is it correct that these are not yet supported? If so, is there any documentation on what is supported or not. I searched, but couldn't find it. Both functions don't seem to work on the previous version too!
Thank you!
Edit: found this page that says that setHostname is not supported yet.
Beta Was this translation helpful? Give feedback.
All reactions