2522 views|4 replies

104

Posts

25

Resources
The OP
 

[Xianji HPM6750EVKMINI Review] 3# HPM6750 Control of RW007 Module [Copy link]

 This post was last edited by Knight on the Sun on 2022-7-21 00:48

1. RW007 Introduction

RW007 is a SPI/UART high-speed wifi module based on Cortex-M4 WIFI SOC developed by Shanghai Ruiside Electronic Technology Co., Ltd. The RT-Thread operating system provides native support. If you use a processor supported by RT-Thread, it is plug-and-play. If you don't run RT-Thread, you haven't found a suitable driver on the Internet.

The HPM6750EVKMINI development board happens to be among the development boards supported by RT-Thread, so it will be very convenient to drive it.

RW007 Main Features:

  • High-performance MCU
  • Use SPI communication method
  • SPI clock up to 30Mbps
  • Effective Ethernet bandwidth in SPI mode up to 1MBytes/s upload, 1MBytes/s download
  • Support WiFi+BLE master-slave function
  • BLE host function can connect multiple BLE devices at the same time
  • WiFi supports STA+AP mode
  • Support WeChat applet BLE fast network configuration
  • Support fast reconnection after network disconnection
  • Built-in Bootloader, supports OTA firmware upgrade and secure firmware function
  • Support batch remote upgrades to facilitate operation and maintenance management

Official information address:

https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/application-note/packages/rw007_module_using/an0034-rw007-module-using?id=rw007

2. Hardware connection

Pin Connections

HPM6750

RW007

Function

H15

nRST

RST

H14

INT

INT/BUSY

G16

MISO

MISO

H16

nCS

CS

H17

CMD_MOSI

MOSI

G17

CLK

CLK

The HPM6750EVKMINI development board uses SPI1 to communicate with the RW007 module.

3. WIFI function

For the implementation of WIFI function, please refer to the forum post:

https://bbs.eeworld.com.cn/thread-1206656-1-1.htm l

The implementation steps are:

  1. Create a new RT-Thread Project
  2. Add RT-Thread Package for RW007
  3. After modifying the port, compile, download and run

Reset after download is complete:

The Msh command wifi join yourSSID yourPSW can connect to the router, but it can only connect to the 2.4G band and the 5G RW007 module cannot be searched.

4. BLE function

Follow the official documentation

1) According to the official RW007 documentation, the env tool is required, so install the env tool first. RT-Thread env tool download:

https://www.rt-thread.org/page/download.html

Add the env tool to the right-click window:

2) The RW007 driver version added through the setting interface in RT-Thread Studio is V2.0.1, which only has WiFi driver but no BLE function. BLE function is supported in versions above V2.1.0. So I went to the official Gitee warehouse of RW007 to download the latest driver package. There seems to be no description of the driver package version in the Gitee interface. The driver package Gitee:

链接已隐藏,如需查看请登录或者注册

Replace the RW007 driver file in the RT-Thread Studio project with the latest driver package downloaded.

->

3) Right click in the project root directory and run ConEmu Here:

Enter menuconfig to configure. Maybe it's a version problem. Following the Gitee readme steps will be a little different. When I choose the driver version at the end, there is no V2.1.0. No matter whether I choose V2.0.1 or latest, use ble function

will not appear.

4) I have not been able to find the RW007 V2.1.0 driver on the Internet, so this method can only be abandoned for the time being. If anyone has the V2.1.0 driver version, please share it.

Refer to the official blog of RT-Thread IoT operating system

Reference Links:

https://blog.csdn.net/rtthreadiotos/article/details/117005097

1) Create a new RT-Thread Studio Project

1. Create a new RT-Thread Project

2. Add RT-Thread Package for RW007

3. Replace the original project driver file with the latest RW007 library

2) Add ble_example.c to the project applications directory

1. Create a new ble_example.c file and add ble related functions

2. Add the msh command ble_example_start, which initializes ble and then automatically connects to the device with the matching mac address

3) Build a test slave device

1. Because the BLE of RW007 can only be used as a master device, a slave device is required to connect to RW007.

2. Find a Bluetooth development board, burn the BLE Uart code, and the LED will light up when connected, but not when not connected

3. Use dongle to check the Bluetooth MAC address of the Bluetooth development board, which is C9:BF:1B:24:BD:2E here.

4) Testing

1. Modify the mac address in the example code to the address of the Bluetooth development board

2. Power on and enter ble_example_start in msh.

3. Observe the LED on the development board, it is always off

5) I tried to modify some of the content but still couldn't connect.

So far, the BLE function of RW007 on the board has not been adjusted. If you have any ideas and suggestions, please feel free to communicate. I will try it later when I have time.

Because I don't know much about RW007 and RT-Thread, if there is anything wrong, please correct me~

This post is from Domestic Chip Exchange

Latest reply

Hello, I have only tried the scan function here, the steps are as follows: rw007_ble init central rw007_ble scan For other functions, please refer to the official documentation of RT-Thread. RT-Thread-packages/rw007: RW007 (SPI Wi-Fi module) driver for RT-Thread (github.com)   Details Published on 2022-7-22 11:18
 
 

7

Posts

0

Resources
2
 
This post was last edited by devinfanyang on 2022-7-21 14:31

Hello, this problem may need to wait for RT-Thread to update the package.

If you want to quickly enable the built-in rw007_ble function, you can try the following steps:

1. Update the attached file.

2.

menuconfig RW007_USING_BLE
bool "Enable RW007 BLE"
depends on PKG_USING_RW007
default n

Add to the Kconfig file in the board directory, which can be placed below the line "On-chip Peripheral Drivers" in the menu

3. Run menuconfig, select RW007_USING_BLE and save the settings.

4. Recompile the project with scons and download and debug with gdb.

ble_cmd_rw007.c

21.41 KB, downloads: 3

This post is from Domestic Chip Exchange

Comments

Hello, after I added RW007_USING_BLE, I compiled and downloaded it and used msh to input rw007_ble scan, but it seems that the scan function is not implemented. I tried other functions but they didn't work. If it is convenient, can you share your RW007 actual usable project so that we can use it and learn from it~ [attachimg]624  Details Published on 2022-7-21 21:08
 
 
 

104

Posts

25

Resources
3
 
devinfanyang posted on 2022-7-21 14:20 Hello, this problem may require waiting for RT-Thread to update the package. If you want to quickly enable the built-in rw007_ble function, you can...

Hello, after I added RW007_USING_BLE, I compiled and downloaded it and used msh to input rw007_ble scan, but it seemed that the scan function was not implemented. I tried other functions but they didn't work either.

If it is convenient, could you please share your RW007's actual usable project so that we can learn from it?

This post is from Domestic Chip Exchange
 
 
 

7

Posts

0

Resources
4
 

Hello, I have only tried the scan function here, the steps are as follows:

  • rw007_ble init central
  • rw007_ble scan

For other functions, please refer to the official documentation of RT-Thread.

链接已隐藏,如需查看请登录或者注册

This post is from Domestic Chip Exchange

Comments

I tried it and it worked. I didn't use rw007_ble init central to initialize it before, so it didn't work. Thanks for the answer.  Details Published on 2022-7-22 19:13
 
 
 

104

Posts

25

Resources
5
 
This post was last edited by Knight on the Sun on 2022-7-22 19:15
devinfanyang posted on 2022-7-22 11:18 Hello, I have only tried the scan function here, the steps are as follows: rw007_ble init central rw007_ble scan other...

I tried it and it works. I didn't use rw007_ble init central to initialize it before so it didn't work.

Thank you for your answer

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>
Featured Posts
PIC series microcontroller programming basics

This book is a great help to those who want to learn PIC microcontrollers. This book is a basic tutorial book and a good ...

During the epidemic prevention and control, don’t forget to have a date with spring!

Activity link: During the epidemic prevention and control, don’t forget to have a date with spring! Works Summary: " Da ...

TI C2000 LaunchPad uses official routines to compile and debug

488551488552488553488554488555488555488556488557488558488559

Hybrid beamforming: the new main force of future 5G construction

Beamforming is a mature technology used in cellular communications and other applications. Beamforming was originally de ...

[Flower carving DIY] Interesting and fun music visualization series of small projects (07) --- large square spectrum light

I had the urge to do a series of topics on sound visualization. This topic is a bit difficult and covers a wide range of ...

36 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (VSCode to Implement Hello World)

It is very convenient to run ROS projects in VSCode. In this section, we use ROS to write and run the "Hello world" pro ...

[HPM-DIY] HPM6750 USB open source protocol stack performance comparison - cherryusb or tinyusb?

Since the current hpm SDK uses tinyusb, the performance speed is still extremely unmatched with the high-speed USB of t ...

[The strongest open source] Hand-rubbed 120W switching power supply

I recently took the time to make a switching power supply 645265 645262 645263 645264 645261 645260

Network port isolation transformer network cable side protection and routing

662606 As shown in the figure above, the upper side is a network port isolation transformer, U43 is a clamping diode, th ...

Specific working principle of no-load protection circuit

668703 668704 The specific working principle of the no-load protection circuit, For example, if the input sine wave a ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list