These are chat archives for esp8266/Arduino

10th
May 2016
Stavros Korokithakis
@skorokithakis
May 10 2016 00:43
hey guys, does anyone have a multiwifi+mqtt example?
liangzelang
@liangzelang
May 10 2016 01:34
hey guys, who can help me to find how the project generate the .pioenvs file , espcially , there is LWIP file .and I really wonder how doer it generate. Hope some kind guys tell me.thank u. the code is there : https://github.com/dogmaphobic/mavesp8266.git
Ivan Grokhotkov
@igrr
May 10 2016 02:05
Downloading files over HTTP is most easily done with HTTPClient
It even presents itself as a Stream, which can be later written into a file.
Gus Grubba
@dogmaphobic
May 10 2016 02:08
@liangzelang You posted this question here and as an issue into my repo. I trully do not understant the question. Could you please elaborate?
Tony Rieker
@Ibuprofen
May 10 2016 02:10
Has anyone had issues using the TX1/GPIO2 to send serial? If I use the same code on a teensy 3.1 i can successfully control the serial device, when using the esp (nodemcu or wemods d1 mini) I cannot. Unfortunately I don't have an oscilloscope
I'm wondering if maybe there is a pinmode or some setting for the ESP that I don't know about?
Gus Grubba
@dogmaphobic
May 10 2016 02:12
Has anyone had issues using the TX1/GPIO2 to send serial?
I use it all the time for debugging. Just use Serial1.
Tony Rieker
@Ibuprofen
May 10 2016 02:13
Gus, thanks. I am definitely using Serial1
Gus Grubba
@dogmaphobic
May 10 2016 02:13
I never did anything special. I just connect it to the RX pin of a (3.3V) FTDI adapter along with GND.
Tony Rieker
@Ibuprofen
May 10 2016 02:15
Thanks
Maybe I can have the esp talk to the teensy until I get it figured out
liangzelang
@liangzelang
May 10 2016 02:21
@dogmaphobic you look at .pioenvs/esp12e/ESP8266WiFi ,in this folder ,there will be three folder :include,arch ,and lwip 。and I don't know how does this file generate。
Gus Grubba
@dogmaphobic
May 10 2016 02:22
It’s built by the SCons build process. I still don’t understand the question. Are you asking how the build process works?
liangzelang
@liangzelang
May 10 2016 02:23
@dogmaphobic Yes, how the build process works?
@dogmaphobic And where is the compile file which tells compiler do something。
Gus Grubba
@dogmaphobic
May 10 2016 02:28
The question is so out of the blue. Maybe someone else will have a better idea. Here is a good place to start: https://github.com/esp8266/Arduino/tree/master/tools
What are you trying to do?
liangzelang
@liangzelang
May 10 2016 02:32
Write the Bootloader with wifi for PX4 ,so i hope to know how this project work.
Gus Grubba
@dogmaphobic
May 10 2016 02:34
Bootloader? Why? Do you mean using the PX4 to upload the firmware?
liangzelang
@liangzelang
May 10 2016 02:39
I mean using the QGC (after modify ) ,cross esp8266,upload the firmware of PX4 .(my english is not so good to express what i want to say)
Gus Grubba
@dogmaphobic
May 10 2016 02:41
Got it. Let’s move this over to https://gitter.im/mavlink/qgroundcontrol. That’s where it truly belongs. You don’t need any of that. You just need to create a “transparent” mode. Let’s discuss it over there.
Ivan Grokhotkov
@igrr
May 10 2016 02:45
@dogmaphobic Awesome work on the mavlink bridge!
liangzelang
@liangzelang
May 10 2016 02:45
Realize the function is very simple , I want to learn how to build the project , how to add in the project library ,how does the project works, etc., to facilitate future doing more in-depth development
Ivan Grokhotkov
@igrr
May 10 2016 02:46
I tried doing mavlink on ESPs in a slightly different manner — instead of maintaining STA-AP connection and using UDP, i abused functions to send raw 802.11 data frames.
Gus Grubba
@dogmaphobic
May 10 2016 02:46
That’s all automatic. Platformio will do all that for you. That’s its whole point of existence :)
Ivan Grokhotkov
@igrr
May 10 2016 02:47
Idea is that the connection doesn't drop completely if STA-AP association drops
Gus Grubba
@dogmaphobic
May 10 2016 02:47
@liangzelang If you want to upload the firmware to the PX4 through the ESP8266, you need to use a separate channel (TCP) and use it to act as a simple (WiFi) TCP -> serial adapter. That’s the easy part. The hard part will be the code within QGC. You need to open a TCP connection to the ESP, tell it to stop bridging MavLink messages, reboot the flight controller, and when it boots in bootloader mode, start uploading the firmware.
I tried doing mavlink on ESPs in a slightly different manner — instead of maintaining STA-AP connection and using UDP, i abused functions to send raw 802.11 data frames.
I’ve been investigating that. The problem is on the client side. You can’t exactly do that on iOS, Mac OS, etc.
Ivan Grokhotkov
@igrr
May 10 2016 02:48
Correct. I used ESPs on both sides :)
Gus Grubba
@dogmaphobic
May 10 2016 02:48
Cheater… :)
Ivan Grokhotkov
@igrr
May 10 2016 02:49
Just running ESP in sniffer mode on the client side
So it's kind of the old UART-UART link
liangzelang
@liangzelang
May 10 2016 02:49
@dogmaphobic OK, thank you so much
Ivan Grokhotkov
@igrr
May 10 2016 02:49
with 802.11 in between
Gus Grubba
@dogmaphobic
May 10 2016 02:49
You could do that on Linux. I tried with the RPI for video streaming.
(RPI -> Linux, not ESP of course)
Tony Rieker
@Ibuprofen
May 10 2016 15:51
Anyone know what the default Serial config is? (data bits, parity, stop bit) ? Thanks.
Ivan Grokhotkov
@igrr
May 10 2016 15:53
8n1
Tony Rieker
@Ibuprofen
May 10 2016 15:59
Thanks
On a related note has anyone had success with or recommend a DMX library to use with the ESP?