Skip to main content

Modifications to SPS for bidirectional data flow

6 years ago

Modifications to SPS for bidirectional data flow

Posted byhughesk0 points 3 replies
0 upvotes

Hello,
What are the recommended modifications to the SPS code to make it a bidirectional serial port, if both sides of the link are DA14580 chips?
It seems that it should be as simple as an extra scheduling call in arch_main.c.

Thanks!

6 years ago

JE_Dialog

你好Hughdesk,只要你有一个d as a MASTER, the other as a SLAVE, the serieal port service profile will support bi-directional flow. There are two projects in the download : one is a device (SLAVE), one is a host (MASTER) . You can use this on on PC with a COM port for each device, and a terminal for each device.

BR JE_Dialog

6 years ago

dhshin 0 points

Thanks you~!
I wonder.. how to send data. If i want using uart , and I send the 2 byte ( ASCII or hex).
Is ther any packet frame ? or do I use the GTL interface?

6 years ago

JE_Dialog

Hello dhshin, it is over UART.... wihtin the design the UART driver that handles what gets pushed into / out of the buffers. Section 5.1.3 and 5.1.4 of the user manual give a good description. Please let me knowo if that answer your question. BR JE_Dialog