3936 views|6 replies

57

Posts

0

Resources
The OP
 

Bluetooth base station for smart running shoes based on GD32F350 [Copy link]

This post was last edited by liklon on 2018-9-7 19:43
Bluetooth base station for smart running shoes based on GD32F350
liklon
1. Design background
Currently, wearable devices are everywhere, and more and more people are paying attention to health and joining the ranks of sports. The Bluetooth base station designed for smart running shoes is mainly used in school classrooms and gyms. Taking school classrooms as an example, schools and parents pay attention to students' daily exercise and learning, combining work and rest. Students wear smart shoes and place Bluetooth base stations in the classroom. Without getting rid of mobile phones, they can still collect the exercise status of each student on that day. When students are in class, the base station automatically connects to the smart shoes via Bluetooth and obtains the number of steps, and stores the student ID and the number of steps. After a day's class, the teacher can use the PC software to check the students' situation that day. During class, the teacher can also use the PC software to control the connection to the specified smart shoe device.
2. Design block diagram
3. Function introduction
1. Two modes (the default mode is transparent transmission when powered on):
1.1 Transparent transmission mode PC software sends data to GD32F350, and GD32 sends the data through the Bluetooth module. In the opposite direction, after receiving the Bluetooth data, it sends the data to the PC software through the serial port. 1.2 Independent mode The Bluetooth base station controls the Bluetooth module to scan, connect, get ID, get steps, store data and other operations. 2. Transparent mode workflow void USART0_IRQHandler() { uint8_t tmp = 0; tmp = usart_data_receive(USART0); if(v32_uartx == USART0) { b_tp_receive_data(&tmp, 1); } else { uart1_write_ch(tmp); } } Due to the transparent mode, the command parsing does not need to be performed by GD32, so UART0 is directly input and UART1 is output. The data is parsed by PC software; 374492 Transparent transmission mode connects to the device and obtains the total number of steps is 347 steps 3. Independent mode workflow Independent mode is divided into several steps: Start scanning--->Filter broadcast name--->Record MAC address to prevent connecting to the same device in a short time--->Connect device--->Get ID--->Get steps---->Store and disconnect--->Loop Interaction process
After independent mode, switch to transparent mode and synchronize data to see the data and ID
4. Hardware module introduction
GD32F350 board + NORDIC BLE + WINBOND SPIFLASH + smart shoe hardware
5. Code introduction
The code is on github, address:
链接已隐藏,如需查看请登录或者注册
6. List of early development posts
Since it is a work, the code is placed on github, completely open source, maybe some parts of the code are rough, please don’t criticize, please give me more advice! Thank you.
Supplementary content (2018-9-25 13:42): Supplementary demonstration video:

微信截图_20180907185712.png (38.67 KB, downloads: 0)

微信截图_20180907185712.png

SequenceDiagram1.jpg (91.65 KB, downloads: 1)

SequenceDiagram1.jpg
This post is from GD32 MCU

Latest reply

nmg
Supplementary materials for the judges: liklon【liklon plays with GD32F350】1. Unboxing test demoClick to viewliklon【liklon plays GD32F350】 2. Serial port interrupt experimentClick to viewliklon【liklon plays GD32F350】 3. SYSTICK realizes simple delayClick to viewliklonIt is recommended that GD unify the macro names of enable and disable in the standard libraryClick to viewliklon【liklon plays GD32F350】 4. SPI0 reads and writes spiflashClick to viewliklon【liklon plays GD32F350】V. RTC clockClick to viewliklon【liklon plays GD32F350】VI. General timer TIMER1Click to view   Details Published on 2018-10-25 08:51
 

5216

Posts

239

Resources
From 7
 
Supplementary materials for the judges:
liklon
【liklon plays with GD32F350】1. Unboxing test demo
liklon
【liklon plays GD32F350】 2. Serial port interrupt experiment
liklon
【liklon plays GD32F350】 3. SYSTICK realizes simple delay
liklon
It is recommended that GD unify the macro names of enable and disable in the standard library
liklon
【liklon plays GD32F350】 4. SPI0 reads and writes spiflash
liklon
【liklon plays GD32F350】V. RTC clock
liklon
【liklon plays GD32F350】VI. General timer TIMER1


This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

424

Posts

8

Resources
2
 
I would like to ask, did you write the host computer yourself?
This post is from GD32 MCU

Comments

Yes, QT is very convenient  Details Published on 2018-9-8 16:25
 
 
 

57

Posts

0

Resources
3
 
lehuijie posted on 2018-9-8 15:17 I would like to ask, did you write the host computer yourself?
Yes, QT is very convenient
This post is from GD32 MCU

Comments

For people who have no computer programming skills, this is a difficult task. They can only steal other people's software to make a living.  Details Published on 2018-9-8 19:49
 
 
 

424

Posts

8

Resources
4
 
liklon posted on 2018-9-8 16:25 Yes, QT is very convenient
For people with zero computer programming ability, this is a difficult thing. They can only make a living by stealing other people's software
This post is from GD32 MCU
 
 
 

5216

Posts

239

Resources
5
 
liklon, can you record a functional demonstration video of your work?
This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

Demonstration video has been added  Details Published on 2018-9-25 13:44
 
 
 

57

Posts

0

Resources
6
 
nmg posted on 2018-9-23 21:00 liklon, can you make a video of the function demonstration of your work?
The demonstration video has been added
This post is from GD32 MCU
 
 
 

Find a datasheet?

EEWorld Datasheet Technical Support

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