Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20793

BASCOM-AVR : Hardware uart config serial buffer size : REPLY

$
0
0
Hi, here ist some background information: Sensor -> UART -> AVR -> UART -> GPRS Modem The sensor transmits every 60 seconds 20 bytes of binary data. This data should be collected until the AVR has received 2kb. Then the AVR will transmit all the 2kb data via TCP to a server. So I guess I have to use a buffer (byte array due to binary data). During the transmission via the GPRS modem I may still receive sensor data which should not be lost. I found [url]http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=7941&highlight=ring+buffer[/url] as a starting point for implementing the buffer. I guess that writing into the buffer should be done in an interrupt routine when receiving data on the sensor UART. So this is my plan for the weekend :D

Viewing all articles
Browse latest Browse all 20793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>