I’m very appreciative of the Wio Terminal architecture, and that it has a communications processor RTL8720DN.
Are there any examples of a stable test suite for this implementation of Tcp/Ip over WiFi ?
I appreciate the interface pointers on how to load RTL8720DN, but from what I’m seeing is it is still pretty raw, and maybe isn’t stable.
I am digging through the interface, and its not described - so that would be OK if an API is well defined.
I have built the ntp example in https://github.com/Seeed-Studio/Seeed_Arduino_Sketchbook/tree/master/examples/WioTerminal_NTP and it runs for about 10 time updates at 15 minute between each update and then fails, I’ve repeated it a number of times.
The basic ntp code as listed requires an external RTC,
RTC_DS3231 rtc;
yet there is an internal RTC in the SAMD51~ so doesn’t seem like it was tested for a simple Wio Terminal before it was released into Seeed_Arduino_Sketchbook/
In building the code, there are numerous warnings about conflicts that seem to imply this is a pretty raw implementation.
C:\users\neilh77a.platformio\packages\framework-cmsis-atmel\CMSIS\Device\ATMEL/samd51/include/samd51p19a.h:547:0: warning: “LITTLE_ENDIAN” redefined #define LITTLE_ENDIAN 1
c:\users\neilh77a.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\machine\endian.h:17:0: note: this is the location of the previous definition #define LITTLE_ENDIAN _LITTLE_ENDIAN
I am trying to integrate with another package, and many more warnings come up.
It may be that its not being set up right in PlatformIO, so any pointers if I’m doing this wrong.
My implementation is at
Sorry for the issue caused, and yes there are some known bugs under this current firmware. We are planning to re-construct the Wi-Fi core using eRPC method instead of AT commands for now to reduce bugs. Currently BLE is under development on this framework and will be released within this month. WiFi is then after this.
I have been following this thread and I am a little confused.
Is STL in the Wi-Fi core or in Bluetooth?
Has the Wi-Fi core been updated?
Can we get an early ‘beta’ to try?
How are we notified of the update?
Will the Arduino IDE recognise the need to update the library or is it a manual process?
Sorry I have been waiting for a fix as consecutive (one per day) calls to NTP always fail after the initial call.
I also am hoping the new Wi-Fi core will use less memory so I can use a full screen sprite in my WI-FI application.
@stuartdd Yes, STL is integrated into WIFI Core, WIFI Core and BLE are togethe. The STL is still in development, and we have provided some demos. But we don’t have a bata release yet.
Soooo glad to see the eRPC WiFi stuff. I have an issue using it at the moment… Could you please assist.
I refered to:
For the firmware update and udate of the libraries but I get a compile error:
in file included from C:\Users\stuar\Documents\Arduino\libraries\Seeed_Arduino_rpcWiFi-master\src/rpcWiFi.h:1:0,
from C:\Users\stuar\AppData\Local\Temp\arduino_modified_sketch_4988\sketch_nov13a.ino:4:
C:\Users\stuar\Documents\Arduino\libraries\Seeed_Arduino_rpcWiFi-master\src/WiFi.h:29:10: fatal error: IPv6Address.h: No such file or directory #include “IPv6Address.h”
^~~~~~~~~~~~~~~
I get this with my own project as well as the example (scanner) code on the above site!
I have deleted my Arduino15 directory and re-installed the boards and the libraries from scratch.
I have burned the RTL8270 fw. (Nice to see the update to the flasher)
I was building on Windows using PlatformIO when I had the issue. I always install libraries using Arduino as I like to swap between Arduino ID and PlatformIO. My platformio.ini contains the following:
I did some experimenting and downloaded some examples that I build using tha Adruino IDE. These compiled and uploaded and now the PlatformIO build compiles and uploads OK. I cannot be 100% sure that it was building using Arduino IDE but that is all I can think of.
So now it builds and uploads. I have some issues in that the scanner (example from the WIKI) does not list my 2.4Ghz SSID. It only lists my 5Ghz channels.
I have 2 WIO devices. I swap them when I do a release. The current (live) one runs using the atWIFI and connects to my 2.4Ghz SSID, the other (dev) one uses rpcWIFI and cannot see the 2.4Ghz SSID. It will however connect the the 5Ghz SSID.
This is a bit of a problem as the range for 5Ghz is lower and I am operating at a distance. I really need it to connect to 2.4Ghz channels.
You can first see what channels the old (atWiFI) Wio Terminal connected in your WiFi. Then in the new (rpcWiFi) Wio Terminal connect to the wifi with specific channel like this:
I have a multi Band router. SSID ‘A’ transmits at a radio frequency of 2.4Ghz, SSID ‘B’ transmits at a radio frequency of 5.0Ghz.
I have TWO devices (WIO Terminal), one (live) is running with the original atWIFI and is connecting to ‘A’ on a regular basis. The other (dev) I use for development work and is running the new rpcWIFI. When I create a new version of the application I swap the devices (live <-> dev) over.
Currently live is using the original atWIFI and connects to ‘A’ at 2.4Ghz. The dev device is using the new rpcWIFI. It does not connect to ‘A’ at 2.4Ghz. The application is unchanged. If I change the SSID of the application on dev to use ‘B’ it connects OK.
Note that MY laptop (connected to dev via USB) lists both ‘A’ and ‘B’.
To investigate I uploaded the scanner code on to the ‘dev’ device and the list did not include ‘A’ it listed only ‘B’.
My assumption is thet the rpcWIFI is the issue. I am still investigation but could do with some advice on driving the WIO to see if I can work out what the issue is.
I have TWO SSID’s. The actual names are ‘George’, this is the 2.4Ghz and ‘Mildred’ is the 5.0Ghz. These are specific names I gave them when I configure my router.
They both use WPA2-PSK. Mildred is fixed to Channel 44 and George is set the Auto so will vary.
I have been using George up until now as the signal strength is better where I have the WIO Terminal positioned.
However now it does not list George. The Laptop sitting next the the WIO Terminal lists and connects to Both George and Mildred.
I have just tried the upgraded version again and I can now see both 2.4 and 5.0 bands. It seems to be intermittent. Somtimes I can see both and somtimes only the 5.0 band.
I will try updating the firmware again and download the latest libraries to see if there was some corruption or failure to install.