在MSP430上的外部接近Reporter应用程序

9新职位/ 0
最后一篇
mabraun
离线
最后看到:3年3个月前
加入:2015-11-16 15:57
在MSP430上的外部接近Reporter应用程序

大家好,

全部设有:我的目标是获取在MSP430上运行的外部接近报告器应用程序的主机应用程序(Projects \ host_apps \ da1458x \ proximity \ neparer)。

为了实现这一目标,我试图将项目“端口”到Code Composer Studio(CCS)。我的初步思想是只需在CCS中创建一个干净的项目,并添加Keil项目的源头和标题文件并替换设备特定的驱动程序(如SPI)。我的问题是我无法获得项目运行,因为CC无法访问DA14580 SDK。(app.c,app_task.c,ble_msg.c,....所有包含来自SDK的文件。)是正确的项目需要访问SDK吗?我如何完成这一点?

我想我不是第一个试图让近距离记者在MSP430上运行的人。有没有那个问题的指南?我试图使用UM-B-010和UM-B-013,但我没有发现它们非常有用,因为它们只是解释了主机应用程序在DA1458x上运行的方案。

Any help is appreciated!

设备:
mabraun
离线
最后看到:3年3个月前
加入:2015-11-16 15:57
让我改进我的问题。在

让我改进我的问题。在附加的屏幕截图中,您可以看到外部处理器配置的基本架构,如各种对话框用户手册中所述。一般来说,我不知道近距离报告器应用程序的一部分是“主机应用程序”的一部分(截图中的绿色框),以及如何将主机应用程序连接到平台的其余部分。

我需要知道的是:

1. Proximity Reporter应用程序的哪个标题/源文件是“主机应用程序”的一部分?
2. DA14580 SDK的哪些部分执行这些文件(主机应用程序)需要编译?(SDK被构造成'app_modules','ble_stack','common_project_files'和'platform'。我可以删除项目中的'平台'部分?)
3. What is the interface of the "host application" to the remaining system? How do I connect the host application to my MSP platform? I'm looking for a concise list of host-application-functions, which need to be connected to the platform.

提前致谢!

MT_dialog
离线
最后看到:2周8小时前
员工
加入:2015-06-08 11:34
嗨mabraun.,

嗨mabraun.,

外部proccessor配置中的邻近应用程序与位于SDK / Projects / host_apps / Windows / ProSimity / Reporter中的Windows Reporter应用程序组合执行,您可以找到用于创建自定义外部的所有Nessecary标题和源文件主办。user_platform应该在那里才能设置UART并与个体主机通信。使用580的外部应用程序通过UART通过GTL进行通信,请检查UM-B-010 Proximity应用程序以获取更多信息。

Thanks MT_dialog

mabraun
离线
最后看到:3年3个月前
加入:2015-11-16 15:57
嗨mt_dialog,

嗨mt_dialog,

感谢您的回复。因此,从我所理解的话,SDK在外部处理器配置中为Proximity Reporter提供了两个不同的示例:
1. The windows application (SDK/projects/host_apps/windows/proximity/reporter), which intends to connect with a DA14580 via UART.
2. The project found under SDK\projects\host_apps\da1458x\proximity\reporter. In this scenario, two DA14580 connect via SPI; one DA14580 is taking the role of the external microcontroller, the other DA14580 is taking the role of the BLE radio. No Windows application is required for this setup.

你能证实这一点吗?

我的目的是通过SPI将我的DA14580连接到外部微控制器,因此我正在尝试使用示例#2(SDK \ Projects \ host_apps \ da1458x \ proximity \ reporter)作为引用,而不是Windows应用程序。

希望这有意义。

Cheers,
mabraun

编辑:我只是在这里谈论近距离记者。我知道接近监视器需要额外的DA14580。

MT_dialog
离线
最后看到:2周8小时前
员工
加入:2015-06-08 11:34
嗨mabraun.,

嗨mabraun.,

是的,对,您可以使用两个580s(一个有外部应用程序和另一个堆栈)并通过SPI互相互动,您可以在UM-B-013中找到更多信息。

Thanks MT_dialog

mabraun
离线
最后看到:3年3个月前
加入:2015-11-16 15:57
嗨mt_dialog,

嗨mt_dialog,

谢谢你的澄清。因此,这意味着在“SDK \ Projects \ host_apps \ da1458x \ proximity \ reporter”中,gtl图层对应于“spi_hci_msg.c”。但是,文件名“spi_hci_msg.c”建议此处正在使用HCI接口。此外,该文件中的所有评论都表达了同样的事情。在该示例中是使用的使用协议吗?为什么所有谈论HCI?从我理解的是,两个接口之间存在显着差异(至少来自协议堆栈的视图)。

Thanks,
mabraun

MT_dialog
离线
最后看到:2周8小时前
员工
加入:2015-06-08 11:34
嗨mabraun.,

嗨mabraun.,

580没有完全支持来自HCI接口的所有命令,以便命令越过GTL。

Thanks MT_dialog

mabraun
离线
最后看到:3年3个月前
加入:2015-11-16 15:57
嗨mt_dialog,

嗨mt_dialog,

谢谢你的帮助,我终于跑了这个项目!:)

我还有一个问题。与我这里描述的问题有关(http://support.dialog-semicondiondiondum/spi-slave-mode-not-working#comme ...),在SPI_HCI_SLAVE_INIT()中SPI初始化期间,我必须清除SPI_CTRL_REG中的SPI_EN_CTRL位。否则SPI连接不会稳定。

在“项目\ target_apps \ ble_examples \ prox_reporter_ext_spi”项目中会禁用spi_en_ctrl是否存在任何后果?

Thanks,
mabraun

MT_dialog
离线
最后看到:2周8小时前
员工
加入:2015-06-08 11:34
嗨mabraun.

嗨mabraun.

Perhaps your lines are a bit noisy, and thats why when disabling the SPI_EN you get data with no errors. If the the SPI_EN is deactivated between the MSB and LSB bits, the I/O buffer resets and goes to idle state. Its good to have the SPI_EN activated, it's supposed to protect from invalid data in a clear line.

Thanks MT_dialog