回家的欲望 发表于 2020-1-20 17:55:48

菜鸡的困惑

我一直想把测距数据从标签的串口输出,一直不成功,请教各位大佬

tuzhuke 发表于 2020-1-20 18:38:32

硬件和软件版本是多少?

回家的欲望 发表于 2020-1-20 18:44:04

tuzhuke 发表于 2020-1-20 18:38
硬件和软件版本是多少?

BPHERO-UWB Location Node Ver3.0
软件是DW1000在网盘上下载的

回家的欲望 发表于 2020-1-20 18:46:31

回家的欲望 发表于 2020-1-20 18:44
BPHERO-UWB Location Node Ver3.0
软件是DW1000在网盘上下载的

@file    Project/STM32F10x_StdPeriph_Template/main.c
* @authorMCD Application Team
* @version V3.5.0
* @date    08-April-2011
* @brief   Main program body
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
******************************************************************************
*/
/*! ----------------------------------------------------------------------------
*@file    main.c
*@brief   Double-sided two-way ranging (DS TWR) responder example code
*
*         This is a simple code example which acts as the responder in a DS TWR distance measurement exchange. This application waits for a "poll"
*         message (recording the RX time-stamp of the poll) expected from the "DS TWR initiator" example code (companion to this application), and
*         then sends a "response" message recording its TX time-stamp, after which it waits for a "final" message from the initiator to complete
*         the exchange. The final message contains the remote initiator's time-stamps of poll TX, response RX and final TX. With this data and the
*         local time-stamps, (of poll RX, response TX and final RX), this example application works out a value for the time-of-flight over-the-air
*         and, thus, the estimated distance between the two devices, which it writes to the LCD.
*

tuzhuke 发表于 2020-1-20 18:59:27

回家的欲望 发表于 2020-1-20 18:46
@file    Project/STM32F10x_StdPeriph_Template/main.c
* @authorMCD Application Team
* @ver ...

先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手册好好看看吧,用户手册有说明

回家的欲望 发表于 2020-1-20 19:16:39

不是,这我烧录了不知多少回,我需要数据从标签串口输出,你倒是提供了拿到手就能用的办法,但是不能满足我的需求,何况从基站传出的数据也是乱码

回家的欲望 发表于 2020-1-20 20:03:31

tuzhuke 发表于 2020-1-20 18:59
先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手 ...

C:\Users\Administrator\Desktop

回家的欲望 发表于 2020-1-20 20:06:57

tuzhuke 发表于 2020-1-20 18:59
先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手 ...

000000006D 72 02 0F 0C 06 99 00 00 00 00 00 99 00 0A 0Dmr..............
000000106D 72 02 0F 0D 06 99 00 00 00 00 00 99 00 0A 0Dmr..............
000000206D 72 02 0F 0E 06 99 00 00 00 00 00 99 00 0A 0Dmr..............
000000306D 72 02 0F 0F 06 99 00 00 00 00 00 99 00 0A 0Dmr..............
000000406D 72 02 0F 10 06 99 00 00 00 00 00 99 00 0A 0Dmr..............

回家的欲望 发表于 2020-1-20 20:07:21

回家的欲望 发表于 2020-1-20 20:06
000000006D 72 02 0F 0C 06 99 00 00 00 00 00 99 00 0A 0Dmr..............
000000106D 72 02 0F ...

串口的数据

tuzhuke 发表于 2020-1-20 21:23:58

回家的欲望 发表于 2020-1-20 20:07
串口的数据
数据格式参考这个链接http://51uwb.cn/forum.php?mod=vi ... hlight=%B8%F1%CA%BD
数据格式不是乱码,是HEX显示,淘宝客服给你回答过这个问题。
标签输出参考这个链接http://51uwb.cn/forum.php?mod=viewthread&tid=93&highlight=%B1%EA%C7%A9

PS: 店铺今天的唯一差评是你赏赐的吗?





页: [1] 2
查看完整版本: 菜鸡的困惑