First RTL-00 module tests

Post your RTL8710 based projects and build logs here
dpape
Site Admin
Posts: 25
Joined: Fri Jul 29, 2016 6:11 pm

First RTL-00 module tests

Postby dpape » Tue Aug 16, 2016 10:41 am

Hello everyone,

Today I finally received my first RTL-00 (RTL8710) modules from Aliexpress (aliexpress.com/item/RTL8710-WiFi-Wireless-Transceiver-Module-SOC/32666025289.html).

I have first compared the size of the module with the ESP8266 module from a NodeMCU:

comparison_next.jpg
comparison_next.jpg (3.15 MiB) Viewed 7372 times

comparison_top.jpg
comparison_top.jpg (3.73 MiB) Viewed 7372 times


It seems this module has exactly the same footprint and size of the ESP8266 module which is installed on the NodeMCU. I have not yet check, and it's unlikely, but if the pinout would be the same this could mean the RTL8710 module could be soldered on a NodeMCU baseboard. I'll check this later and give an update.

As far as pinout goes, this is the underside of the module:
module_back.jpg
module_back.jpg (1.18 MiB) Viewed 7372 times


In this topic I will post my results on getting the module to work and I'l share all my experiences with you. This way we can work together to get these modules up and running.

Kind regards,
Daan

dpape
Site Admin
Posts: 25
Joined: Fri Jul 29, 2016 6:11 pm

Re: First RTL-00 module tests

Postby dpape » Tue Aug 16, 2016 2:51 pm

Ok, time for an update.

I just found out the B & T RTL8710 module is made to be pin compatible with the ESP12E module. They can thus be soldered onto the typical ESP12E breakout boards. I hope to do this later today.

Kind regards,
Daan

dpape
Site Admin
Posts: 25
Joined: Fri Jul 29, 2016 6:11 pm

First RTL-00 module tests

Postby dpape » Wed Aug 17, 2016 12:17 pm

Hello,

Update time. I've found some time to confirm my suspicion of the B&T RTL-00 RTL8710 module being pin compatible with the ESP12E module. I have desoldered the ESP12E from it's board and soldered on the RTL-00 module on it:

IMG_20160817_115941.jpg
IMG_20160817_115941.jpg (195.15 KiB) Viewed 7296 times


As you can see it's a perfect fit. The loose wires on the PCB are because this was a PCB with a defect USB-Serial port, I've replaced the chip with an external FTDI. So now time to see the first data coming from it. According to the datasheet it should support an AT+ command set. So I've connected the TX and RX lines.

It seems these modules run on 38400 by default and currently run ROM Version 0.3 built by gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003):

boot.jpg
boot.jpg (395.6 KiB) Viewed 7296 times


Ok so this thing is running an operating system of some kind and presents us with a command line, great :) The first command I tried out was help, I got this as a result:

Code: Select all

# help

WLAN AT COMMAND SET:
 SET LOG OUTPUT MODE:
1. # ATSE=2(0: NO DEBUG,1:OUTPUT REMOTE UART, 2:LOCALE UART, DEFAULT MODE 1
===========STA MODE=================
1. Wlan Scan for Network Access Point
   # ATWS
2. Set Wifi STA Mode
   # ATPW=1
3. Connect to an AES AP
   # ATPN=<ssid>,<pwd>,<key_id>(,<bssid>)
===========AP MODE=================
1. Set Wifi AP Mode
   # ATPW=2
2. Set AP parameter
   # ATPA=<ssid>,<pwd>,<chl>,<hidden>
===========TEST WIFI Status==============
5. View WIFI Status
   #ATW?
5. Ping
   #ATPP=xxxx.xxxx.xxxx.xxxx

unknown command 'help'
[MEM] After do cmd, available heap 45296


So although the 'help' command is not a real command, some usage info is printed on the terminal.

Ok time to try and connect to a network, first I will perform a scan with the 'ATWS' command:

Code: Select all

ATWS
[ATWS]: _AT_WLAN_SCAN_

[MEM] After do cmd, available heap 41056
2        Infra   0c:ef:af:c2:3b:ec -46    3        6      Open            Guestnet
6        Infra   5c:d9:98:65:07:dc -48    6        6      WPA/WPA2 AES            internet
10       Infra   56:d9:e7:f7:db:33 -52    6        6      WPA2 AES                wpaetest
16       Infra   46:d9:e7:f7:db:33 -60    6        6      WPA2 AES                testnet


This scan only took 500ms or so to complete, really fast. I will connect to the wifi called 'internet'. To do this I have issued the following commands:

Code: Select all

# ATPW=1

[MEM] After do cmd, available heap 45296

[B&T_IOT_RTL8710]#ATPN=testnet,password

RTL8195A[Driver]: set ssid [testnet]

RTL8195A[Driver]: start auth to 5c:d9:98:65:07:dc

RTL8195A[Driver]: auth success, start assoc

RTL8195A[Driver]: association success(res=1)

RTL8195A[Driver]: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4)

RTL8195A[Driver]: set group key to hw: alg:2(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1

IP address : 192.168.0.202
[MEM] After do cmd, available heap 45128


It seems we now should have an active internet connection, so let's try to ping the google DNS servers at 8.8.8.8:

Code: Select all

ATPP=8.8.8.8
[ATPP]Repeat Count: 5

[ping_test] PING 8.8.8.8 120(148) bytes of data

[ping_test] 72 bytes from 8.8.8.8: icmp_seq=1 time=25 ms
[ping_test] 72 bytes from 8.8.8.8: icmp_seq=2 time=21 ms
[ping_test] 72 bytes from 8.8.8.8: icmp_seq=3 time=19 ms
[ping_test] 72 bytes from 8.8.8.8: icmp_seq=4 time=143 ms
[ping_test] 72 bytes from 8.8.8.8: icmp_seq=5 time=212 ms
[MEM] After do cmd, available heap 45128


It works. Can't wait to test some more and discover all the commands this module supports. But the speed and range look very good for now. I will also do some power consumption tests later on.

Kind regards,
Daan

bogdanm
Posts: 14
Joined: Mon Aug 08, 2016 12:15 pm

Re: First RTL-00 module tests

Postby bogdanm » Wed Aug 17, 2016 4:22 pm

Really interesting findings, thank you. Since the pinout looks to be compatible, I'd be curious to check if the ESP8266's bootloader activation sequence also works on the RTL module. I don't expect them to have compatible bootloaders, but I suspect there is a bootloader on the RTL too.

dpape
Site Admin
Posts: 25
Joined: Fri Jul 29, 2016 6:11 pm

Re: First RTL-00 module tests

Postby dpape » Wed Aug 17, 2016 4:33 pm

Hello,

I've had some time to play with it some more. To test things out it was important to find out the AT command set for this module as it seems the command set itself is not ESP8266 compatible. I could find the AT command set for this module and have uploaded it to the forum, you can find it here:
viewtopic.php?f=6&t=11

The firmware on the module is quite capable and can run AP, STA or AP+STA mode. It has built-in webserver, OTA flash, DHCP server, TCP in/out and UDP in/out support. As a test I have set up the AP mode and started the webserver. I could connect with my smartphone and got an address assigned right away:

Screenshot_20160817-160738.png
Screenshot_20160817-160738.png (66.17 KiB) Viewed 7195 times


Served in a few milliseconds. Through the page you can set-up the AP mode.

bogdanm
Posts: 14
Joined: Mon Aug 08, 2016 12:15 pm

Re: First RTL-00 module tests

Postby bogdanm » Wed Aug 17, 2016 4:57 pm

I find it interesting that the pinout is compatible, but the AT command set is different. If RTL-00 used the same AT command set like the ESP8266, it'd be a drop-in replacement for ESP8266 in many applications. In any case, it's very good news that we have the AT command set now! Thank you.

bogdanm
Posts: 14
Joined: Mon Aug 08, 2016 12:15 pm

Re: First RTL-00 module tests

Postby bogdanm » Fri Aug 19, 2016 11:45 am

My RTL8710 module arrived and I soldered it on a breakout board intended for ESP8266 (http://www.electrodragon.com/product/es ... ter-board/). With that setup, I was also able to power up the module and reproduce dpape's results. However, it's clear that the pinouts are not 100% compatible. The "reset" button on the above breakout board doesn't do anything (although the "Flash" button does, see below). I might go ahead and buy http://www.aliexpress.com/item/RTL8710- ... b46902fc05, that seems to be a proper breakout board for this module. Although I'd rather wait a bit more to check if any RTL8711 modules surface, those would be great.

Not a lot of other findings. The module seems to connect much faster to my access point than my ESP8266 module, but that might not be a fair comparison because of the very different firmwares they run (I'm not using the ESP8266 module in AT mode). ATW? gives out some semi-interesting data:

Code: Select all

[rltk_wlan_statistic] tx stat: tx_packets=26, tx_dropped=0, tx_bytes=5008
[rltk_wlan_statistic] rx stat: rx_packets=2507, rx_dropped=2507, rx_bytes=463984, rx_overflow=0
[rltk_wlan_statistic] min_free_heap_size=40104, current heap free size=45128


The rx_dropped part is clearly wrong, since the module can ping remote hosts without problems; that should probably be a 0. All in all, the WiFi connection feels pretty solid.
The free heap size figure is not exactly encouraging for running something like Lua or Python on this MCU, but still good enough for many apps (I expect that the RTL8711 fares much better in this area).

When powering up the module while pressing the "Flash" button, it runs a different firmware, with a different set of AT commands:

Code: Select all

=========================================================

ROM Version: 0.3

Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)

=========================================================
Check boot type form eFuse
SPI Initial
Image1 length: 0x3704, Image Addr: 0x10000bc8
Image1 Validate OK, Going jump to Image1
===== Enter Image 1 ====

load OLD fw 1
Flash Image2:Addr 0x5d000, Len 269348, Load to SRAM 0x10006000
No Image3
Img2 Sign: RTKWin, InfaStart @ 0x10006079
===== Enter Image 2 ====
                          ######################                 ####################            ########################
                         #                      #               #                    #          #                        #
                        #     ################   #             # # ##################            #########      #########
                        #    #               #   #             # #                                       #      #
                        #   #                #   #             #  #                                      #      #
                        #   #                #   #              #  #                                     #      #
                        #   #                #  #                #  #                                    #      #
                        #    ################  #                  #  #                                   #      #
                        #                      #                   #  #                                  #      #
                        #   ################## #              #######  #                                 #      #
                        #   #                #  #            #          #                                #      #
                        #   #                #   #          #  #######   #        ####                   #      #
                        #   #                #   #          # #        #  #       #  #                   #      #
                        #   #                #   #          # #          #  #     #  #                   #      #
                        #   #                #   #          # #           #  #    #  #                   #      #
                        #    ################    #          #   ##########    #####  #                   #      #
                        #                       #            #                      #                    #      #
                         #######################               #####################                     ########
                         #########  *Company website&Support&Forum link: http://www.iot-tech-now.com/        ##############
                        #########   CHECK *FIREWARM SUCCESS !!!                                            ##############
#
Initializing WIFI ...
RTL8195A[Driver]: The driver is for MP

Start LOG SERVICE MODE

#
WIFI initialized

wext_set_autoreconnect():ioctl[SIOCDEVPRIVATE] error
init_thread(50), Available heap 0xa7d0help

WLAN AT COMMAND SET:
==============================
1. Wlan Scan for Network Access Point
   # ATWS
2. Connect to an AES AP
   # ATW0=SSID
   # ATW1=PASSPHRASE
   # ATWC
3. Create an AES AP
   # ATW3=SSID
   # ATW4=PASSPHRASE
   # ATW5=CHANNEL
   # ATWA
4. Ping
   # ATWI=xxx.xxx.xxx.xxx
[MEM] After do cmd, available heap 48168


That doesn't look very helpful though. Maybe it gives a hint about the memory map, but that's probably clearly defined in the SDK (although I didn't check that yet).

ali
Posts: 4
Joined: Mon Dec 19, 2016 6:25 am

Re: First RTL-00 module tests

Postby ali » Mon Dec 19, 2016 2:01 pm

hi to all
i started with RTL8710 but some of AT commands did not work such as ATSV and etc..
i try to update firmware over ota
according to this link:
http://www.amebaiot.com/en/standard-sdk-transparent-transmission/
ofter upgrading to v2.2.1 with this file (RTL871xAF_AT_v2.2.1.bin_.zip)AT firmware v2.2.1 and rebooting the madule this error show to me on LOG_UART
and it's be unusable for me and i can't communicate with rtl8710 with serial port...and with UART2 does not work for me...
how can i solve this problem?is the way to program RTL8710 arm proccesor with jtag or swd???

Code: Select all

<RTL8195A>
=========================================================


ROM Version: 0.3


Build ToolChain Version: gcc version 4.8.3 (Realtek ASDK-4.8.3p1 Build 2003)


=========================================================

Check boot type form eFuse

SPI Initial

Image1 length: 0x3704, Image Addr: 0x10000bc8

Image1 Validate OK, Going jump to Image1

===== Enter Image 1 ====



load NEW fw 1


Flash Image2:Addr 0x80000, Len 271248, Load to SRAM 0x10006000

No Image3


Img2 Sign: RTKWin, InfaStart @ 0x10006079

===== Enter Image 2 ====

#interface 1 is initialized
interface 0 is initialized


Initializing WIFI ...

Start LOG SERVICE MODE



#

WIFI initialized


init_thread(53), Available heap 0xc840

AT_UART_CONF: 38400,8,1,0,0


[UART Err]serial_init Err!
üے

jeroen79
Posts: 2
Joined: Mon Dec 19, 2016 6:00 pm

Re: First RTL-00 module tests

Postby jeroen79 » Wed Dec 21, 2016 4:43 pm

I also tried the ota test and got about the same result.

found some more info -> http://forum.pine64.org/archive/index.p ... -2500.html, but i guess i also have to wait unitl i get a JTAG.

ali
Posts: 4
Joined: Mon Dec 19, 2016 6:25 am

Re: First RTL-00 module tests

Postby ali » Wed Dec 28, 2016 8:05 am

if there is a way to force rtl8710 to enter default image on startup..it maybe work...and it can be done by jtag interface???


Return to “Projects and builds”

Who is online

Users browsing this forum: No registered users and 1 guest