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-connectivity/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.

因为我们在初步评价阶段,we don't want to invest too much time and effort into developing and debugging a custom firmware to do the range testing. It seems like the Dialog Serial Port Service (DSPS) reference design on the Dialog site should do what we need for the range testing, but it doesn't seem to work on the PAN1740 Eval kit. I can compile the "sps_device" and the "sps_host" projects found in the DA14580_DSPS_3.150.2___13_2_2015.zip file, but when I load them on the module, nothing works. The two virtual COM ports (Jlink CDC UART ports) don't show any activity and are non responsive. I know the application is running because I can break in with the debugger and see activity, but it just doesn't seem to work "out of the box" on the eval board.

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 months 3 weeks ago
Guru 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.

Best regards,
Ingo

gert186
Offline
Last seen:1 year 3 months ago
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 built an command answear roud up.

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.

Thanks MT_dialog

gert186
Offline
Last seen:1 year 3 months ago
Joined:2016-04-21 12:59
Thanks for your answear,

Thanks for your answear,

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?
Just if i send ah S it will transmit fast as possible random Numbers and if I send P it will stop.
Just the base of the project and communication handler?

That would be great.

Best regards
Gert

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.

Thanks MT_dialo

gert186
Offline
Last seen:1 year 3 months ago
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 ?
I have tested the
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 ?

Thanks MT_dialog

gert186
Offline
Last seen:1 year 3 months ago
Joined:2016-04-21 12:59
Yes I do. No result according

Yes I do. No result according reading Analog Inputs.

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

Hi gert186,

You get no result when reading the analog inputs or when sending data using the DSPS application ? i ve tried the above snippet with a kernel timer and i was able to get some data on the other side.

Thanks MT_dialog

Topic locked