Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to send data to UART ?

Data send UART
0
Posted

How to send data to UART ?

0

Do not try to send data directly to UART using HPLUART. Nesct does not handle byte level communication. NesCT intercepts the simulation logic at the packet level boundaries. For this reason, i modified the original UARTNoCRCPacketM.nc from TinyOS to forward incoming messages to OMNeT++ instead. You do not need to include HPLUART in your configuration. GenericComm directs the messages to UART if it is going for the destination address of TOS_UART_ADDRESS. Just include GenericComm and instead of sending it to the neighbors or broadcast (TOS_BCAST_ADDR) address in msg->addr, set it to TOS_UART_ADDRESS.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.