51uwb.cn

标题: 菜鸡的困惑 [打印本页]

作者: 回家的欲望    时间: 2020-1-20 17:55
标题: 菜鸡的困惑
我一直想把测距数据从标签的串口输出,一直不成功,请教各位大佬

作者: tuzhuke    时间: 2020-1-20 18:38
硬件和软件版本是多少?
作者: 回家的欲望    时间: 2020-1-20 18:44
tuzhuke 发表于 2020-1-20 18:38
硬件和软件版本是多少?

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

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

@file    Project/STM32F10x_StdPeriph_Template/main.c
  * @author  MCD 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
回家的欲望 发表于 2020-1-20 18:46
@file    Project/STM32F10x_StdPeriph_Template/main.c
  * @author  MCD Application Team
  * @ver ...

先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手册好好看看吧,用户手册有说明
作者: 回家的欲望    时间: 2020-1-20 19:16
不是,这我烧录了不知多少回,我需要数据从标签串口输出,你倒是提供了拿到手就能用的办法,但是不能满足我的需求,何况从基站传出的数据也是乱码
作者: 回家的欲望    时间: 2020-1-20 20:03
tuzhuke 发表于 2020-1-20 18:59
先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手 ...

C:\Users\Administrator\Desktop
作者: 回家的欲望    时间: 2020-1-20 20:06
tuzhuke 发表于 2020-1-20 18:59
先用hex测试。
一个模块下载标签hex,一个下载基站0 hex。基站0,串口会有数据。
你把我们提供的用户手 ...

00000000  6D 72 02 0F 0C 06 99 00 00 00 00 00 99 00 0A 0D  mr..............
00000010  6D 72 02 0F 0D 06 99 00 00 00 00 00 99 00 0A 0D  mr..............
00000020  6D 72 02 0F 0E 06 99 00 00 00 00 00 99 00 0A 0D  mr..............
00000030  6D 72 02 0F 0F 06 99 00 00 00 00 00 99 00 0A 0D  mr..............
00000040  6D 72 02 0F 10 06 99 00 00 00 00 00 99 00 0A 0D  mr..............

作者: 回家的欲望    时间: 2020-1-20 20:07
回家的欲望 发表于 2020-1-20 20:06
00000000  6D 72 02 0F 0C 06 99 00 00 00 00 00 99 00 0A 0D  mr..............
00000010  6D 72 02 0F ...

串口的数据
作者: tuzhuke    时间: 2020-1-20 21:23
回家的欲望 发表于 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: 店铺今天的唯一差评是你赏赐的吗?






作者: 回家的欲望    时间: 2020-1-21 09:42
tuzhuke 发表于 2020-1-20 21:23
数据格式参考这个链接http://51uwb.cn/forum.php?mod=vi ... hlight=%B8%F1%CA%BD
数据格式不是乱码,是 ...

啊???什么情况
作者: 回家的欲望    时间: 2020-1-21 09:44
就是HEX也没有数据我粘贴给你看
作者: 回家的欲望    时间: 2020-1-21 09:47
tuzhuke 发表于 2020-1-20 21:23
数据格式参考这个链接http://51uwb.cn/forum.php?mod=vi ... hlight=%B8%F1%CA%BD
数据格式不是乱码,是 ...

mrr.?.....?


mru.?....?


mrx.?....?


mr{.?.....?


mr~.?....?


mr??......?


mr??......?


mr??......?


mr??......?


作者: 回家的欲望    时间: 2020-1-21 09:48
一直是这种情况
作者: tuzhuke    时间: 2020-1-21 11:45
回家的欲望 发表于 2020-1-21 09:48
一直是这种情况

用16进制显示就不是乱码了
(, 下载次数: 737)



作者: 回家的欲望    时间: 2020-1-21 20:55
我没记错的话我发的就是用hex显示的啊
作者: gdzqltkj    时间: 2021-4-29 18:36
回家的欲望 发表于 2020-1-21 09:42
啊???什么情况

波特效不对?
作者: 藏丶宝    时间: 2021-6-24 10:26
应该不是波特率不对
作者: sdfb6868    时间: 2021-6-25 23:55
看这大兄弟都不会读C代码的吗……标签可以打印出来测距信息,但是需要参考定位代码,将上一轮测距信息打包,在下一轮中打印输出。




欢迎光临 51uwb.cn (http://51uwb.cn/) Powered by Discuz! X3.3