10 posts / 0 new
Last post
ChristianJohnson.
Offline
Last seen:5 years 10 months ago
Joined:2015-06-10 18:46
DSPS on the Panasonic EVAL_PAN1740

I'm looking to evaluate the range of the Panasonic PAN1740 device using the EVAL_PAN1740 evaluation kit, but I'm having some problems.

I have one of these kits that I'm trying to use:
http://na.industrial.panasonic.com/雷电竞官网登录products/wireless-connectity/evalua ...

I found all the Panasonic documentation:
pan1740_applicationnote.pdf
panasonic_pan1740_design_guide_v1.7.pdf

I'd like to set up the eval kit as a virtual serial port application and send test packets back and forth between the two modules. Once that's working I'd like to use a serial port test to determine the real-life range and throughput of the modules.

由于我们在初步评估阶段,我们不希望投资过多的时间和精力,以开发和调试自定义固件来进行范围测试。似乎对话框串行端口服务(DSP)对话站点上的参考设计应执行所需的范围测试,但它似乎没有在Pan1740 eval套件上工作。我可以编译da14580_dsps_3.150.2___13_2_2015.zip文件中找到的“sps_device”和“sps_host”项目,但当我在模块上加载它们时,没有任何工作。两个虚拟COM端口(JLINK CDC UART端口)不显示任何活动,并不响应。我知道该应用程序正在运行,因为我可以使用调试器闯入并查看活动,但它似乎没有在eval板上的“开箱即用”。

My questions:

1. Would you expect the Dialog Serial Port Service reference design to work with the EVAL_PAN1740 boards (one configured as device and one configured as host)?
2. Does the reference design need to be configured / modified in order to work with the PAN1740 eval boards. I found the "DA14580 Serial Port Service reference application_v1 3.pdf" and experimented with some of the settings in the da14580_config.h and uart_sps.h files with no success.
3. Any advise or suggestions for things to try?

ingo.
Offline
Last seen:3个月3周前
格鲁鲁 Panasonic
Joined:2014-01-16 11:19
Hi Christian,

Hi Christian,

I think your approach is well suited.
For the DSPS on the dongle you would need to disable the HW flow control and the extended sleep mode. Unfortunately this is not supported on the USB dongle. Refer to the guide:
http://pideu.panasonic.de/files/Documents/WM%20Documents/PAN1740/PAN1740...
If you want to measure also current consumption and sleep modes please use the Pro-Kit.

此致,
ingo.

gert186
Offline
Last seen:1年3个月前
Joined:2016-04-21 12:59
HI,

HI,

I have an additional Question,
I was not able to open a new thread.
I would like to adapt the DSPS peripherial mode as an Remote system, If I send an A over DSPD the system the PAN 1740 should answer with a b. no nother Serial Interface on the PAN 1740.

我想建立一个命令答案。

I would like to understand how can i write from BLE to IOS. I found that command user_send_ble_data()

but I do not really know how to write it periodically. like
user_send_ble_data(“Hallo”,5);in the arch_main() While(1) loop.

Can soebody supports me?

best regards Gert

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi gert186,

Hi gert186,

If you want to just use the DSPS application in order to send data to the DSPS android application you can use the function you mention with a timer and call it periodically. Set the timer upon connection with period_send = app_easy_timer(1000, periodical_data_timer_handler); and use a handler like the below snippet and cancel the timer upon disconnection:

void periodical_data_timer_handler(void)
{
user_send_ble_data(“Hallo”,5);
period_send = app_easy_timer(100, periodical_data_timer_handler);
}

Although the DSPS application is a serial port emulation, if you want to just send data to the other side of the link, there are more simple ways to do this, the user_send_ble_data() just sends a notification to the client with the value written at the specific characteristic, in order to just send a value there are simpler ways that dont require the usage of DSPS.

谢谢mt_dialo.g

gert186
Offline
Last seen:1年3个月前
Joined:2016-04-21 12:59
谢谢你的回答,

谢谢你的回答,

I would like to control the PAN 1740 with somthing like this:

If I send from the Handy with DSPS ah character like "S" The PAN should send data as fast as possible to the handy. If I send a "P" it will stop.
The next step should be to read a value from I2C and send that data as fast as possible to the handy.

Can somebody give me a keil v5 base projekt with that communication feature?
只要我发送AH S,它将尽可能快地传输,如果我发送P将停止。
只是项目和通信处理程序的基础?

That would be great.

Best regards
盖特

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi gert186,

Hi gert186,

We dont have any available template with this kind of implementation, the only project that is close to what you are looking for is the DSPS project, you will have to tweek it in order to achieve what you need. Please check the Serial Port Service manual that lists the data management functions and then you can expand the functionallity to whatever you need.

谢谢mt_dialo.

gert186
Offline
Last seen:1年3个月前
Joined:2016-04-21 12:59
Hi

Hi
我已经适应这个项目需求方,悄悄地fi工作ne! Can someone give me an overview how to get a analog value to send that out ?
我已经测试过了
user_send_ble_data((uint8_t *)battery_get_lvl(BATT_AAA), 4);
but nothing transmitted.

please help

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi gert186,

Hi gert186,

Have you tried to set the android application to take hex data instead of ascii ?

谢谢mt_dialo.g

gert186
Offline
Last seen:1年3个月前
Joined:2016-04-21 12:59
是的,我愿意。No result according

是的,我愿意。没有结果读取模拟输入。

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi gert186,

Hi gert186,

读取模拟输入或使用DSPS应用程序发送数据时,您不会产生结果?我试过用内核计时器尝试上面的片段,我能够在另一边获得一些数据。

谢谢mt_dialo.g

Topic locked