Author |
Topic |
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 18/02/2020 : 08:44:48
|
If you wand to connect your device via Wifi here is a Do it yourself project based on the ESP32 and Arduino IDE https://github.com/AlphaLima/ESP32-Serial-Bridge
(Sorry, the previous thread was deleted accidently) |
Edited by - AlphaLima on 18/02/2020 08:46:35 |
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 18/02/2020 : 09:20:27
|
Dear AL, I’ll try to shortly recap my experience with the ESP32 Serial Bridge. I’m able to successfully load your sketch, via Arduino IDE, on the ESP32.(I did buy two similar ones from different manufacturer NodeMCU-32S and AZ-Delivery). Just after first load it connects to the phone quickly and stable. The problem is that the connection doesn’t succeed any more at the following card’s power on. The phone continuously tries to get the IP address causing a SW_CPU_RESET of the ESP32 board at each connection tentative. As per your suggestion I did try many USB cables and also the direct feeding via the 5V pin. No differences at all. The card works fine with different demo sketches as the WiFiClient one. In order to be able to work with the ESP Serial Bridge again, I need to load the demo sketch and then your ESP32 Serial Bridge sketch back again, and It works fine till I keep the power on. That’s where I’m stuck now. If you have any further idea, I’d be happy to continue the troubleshooting. Best regards,
|
Alebu |
|
|
AlphaLima
Moderator
Germany
1994 Posts |
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 18/02/2020 : 19:39:26
|
Hi AL, BT seams to be deactivated. It is quoted (//#define BLUETOOTH) in the config.h.
Settings were not as per your your latest message. Unfortunatelly nothing changes with the new settings :-( In case it could help, here after the full message I get at each connection tentative:
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8
Thanks a lot for your so kind support. Alessandro |
|
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 18/02/2020 : 21:40:12
|
On the other side, let me give you the good news that, when the connection happens (at the first power on), LK8000 receives the simulated GPS on all three UARTs ports, very well. Solving the connection WiFi connection issue it would be ready to be installed. |
Alebu |
|
|
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 18/02/2020 : 22:08:58
|
That's curious, that is a software reset. We have hundreds of ESP32 serial bridges working already. Are you sure you have the correct ESP32 library installed? What exact hardware are you using? does the upload work properly withour error messages? which baudrate are you using? maybe you can try a lower one.
|
Edited by - AlphaLima on 18/02/2020 22:13:16 |
|
|
Alebu
Falchetto
Italy
107 Posts |
|
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 19/02/2020 : 12:50:12
|
I don't know what you do wrong. Maybe it is a better idea if I send you a reday programmed module. Drop me an PM fdor the details. AL |
|
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 23/02/2020 : 12:24:36
|
Hi All, some good news. Finally it seems I did found the way to get a stable and repeatable connection. In order to get it stable I had to remove the latest versions of the ESP32 board manager in the Arduino IDE (i.e. 1.0.4 nor the 1.0.3). As far as I can see the newest version not causing the connection issue is the 1.0.2. I didn't test the serial communications yet, I hope it will work as well. Regards,
03/03/2020 As far as I can see this is not true on all PC. It was as described on a desktop Win10 PC, not the same on my Win10 Laptop. Amazing! Maybe it is a good idea to avoid the Arduino IDE!? |
Alebu |
Edited by - Alebu on 03/03/2020 08:12:35 |
|
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 02/03/2020 : 09:43:56
|
I did a quick test (not very representative to be honest) of my self-made ESP32 box on the glider, this weekend, connecting the S100 to my android smartphone (running both, stable and beta LK's releases). In this short time I saw just that: - changing the MC on the S100 it was changing MC setting on LK, not the vice versa. - GOTO on LK was correctly received from S100. - Declaration on LK towards S100 was not working, causing LK freezing. I did notice also that editing the task on LK, S100 was receiving (as GOTO WP) the first WP of the task at each task change. I'll report on more detailed test I'll do.
Regards,
|
Alebu |
|
|
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 03/03/2020 : 14:02:54
|
Which driver?
|
|
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 03/03/2020 : 14:38:50
|
I'm quite sure it was the LXV7_EXP, this is the one I normally use. Sometime I also use the LX nano3 for declarations. Anyway unfortunately I'm not sure. I'll try to run some more reliable test next time. |
|
|
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 03/03/2020 : 20:57:59
|
The V dos not support declarations! Try the Nano3 driver! |
|
|
Alebu
Falchetto
Italy
107 Posts |
Posted - 08/03/2020 : 21:44:35
|
quote: Originally posted by Alebu
03/03/2020 As far as I can see this is not true on all PC. It was as described on a desktop Win10 PC, not the same on my Win10 Laptop. Amazing! Maybe it is a good idea to avoid the Arduino IDE!?
As planned, I did try PlatformIO IDE. It makes no improvements respect Arduino IDE. So it was just a big waste of time. The good news is that I found the way to have stable a repeatable connections between Android and the ESP32. Very simple, it is enough to set a STATIC IP in the WiFi options.
|
Alebu |
|
|
rexfux
Pulcino
48 Posts |
Posted - 11/03/2020 : 19:52:33
|
Hello to everyone, I'm using WiFi and esp32 and it works very well. However, the task declaration works only randomly. Today After several trials, I was able to declare a task. The radioactivité worked Yesterday but today it didn't. My radio is a KRT2 port 8881 and 9600 bauds. I'm using a lxnav S7 and a flarm LX minibox. I'm using the LXV7 driver and port 10110; baud rate 19200. With an ioio connection, the task declaration works and the radio control works perfectly. Any ideas ? Best regards Henri
|
Edited by - rexfux on 12/03/2020 14:19:32 |
|
|
AlphaLima
Moderator
Germany
1994 Posts |
Posted - 12/03/2020 : 14:22:39
|
Sounds like a timing problem, I need the runtime.log and the NMEA logs to see whats going wrong. -What is the Prot for the V7? -What is the Port for the KRT2? -Does it wor with the KRT2 diabled (Driver and device)? |
Edited by - AlphaLima on 12/03/2020 14:25:26 |
|
|
Topic |
|