Search found 69 matches
- Mon May 04, 2020 2:12 pm
- Forum: NetBurner Software
- Topic: ReadWithTimeout function
- Replies: 8
- Views: 4135
ReadWithTimeout function
This question is a continuation of my serial port issue and question about queues and FIFOs. In an attempt to speed up my serial port reads, I'm reading a character from the serial port using the ReadWithTimeout() function, looking for the '$' character which signifies the start of a data sentence f...
- Tue Apr 21, 2020 3:20 pm
- Forum: NetBurner Software
- Topic: Queues and Fifos
- Replies: 8
- Views: 3613
Re: Queues and Fifos
Thanks for explaining that. I would not have guessed to increase the buffer size add more buffers.
- Tue Apr 21, 2020 2:23 pm
- Forum: NetBurner Software
- Topic: Queues and Fifos
- Replies: 8
- Views: 3613
Re: Queues and Fifos
Thanks @TomNB. So looking at the comments in constants.h, if I want to follow step #2 above and increase the size of of the SERIAL_RX_BUFFERS, I have to increase ETHER_BUFFER_SIZE.
- Tue Apr 21, 2020 12:57 pm
- Forum: NetBurner Software
- Topic: Queues and Fifos
- Replies: 8
- Views: 3613
Re: Queues and Fifos
Nevermind @pbreed. I found SERIAL_RX_BUFFERS in constants.h. It is currently set to 2 bytes.
- Tue Apr 21, 2020 12:34 pm
- Forum: NetBurner Software
- Topic: Queues and Fifos
- Replies: 8
- Views: 3613
Re: Queues and Fifos
Thanks @pbreed. Regarding SERIAL_RX_BUFFERS, are you sure it's in predef.h? I'm looking at predef.h and there's not much in there. I also looked in serial.h and serinternal.h without finding it.
- Tue Apr 21, 2020 7:46 am
- Forum: NetBurner Software
- Topic: Queues and Fifos
- Replies: 8
- Views: 3613
Queues and Fifos
I see in the uCOSLibrary documents the OSQInit and OSFifoInit functions for creating queues and fifos to pass messages between tasks. Are there any other queue or fifo functions within the NB runtime libraries for dealing with data?
- Mon Apr 20, 2020 9:07 am
- Forum: NetBurner Hardware
- Topic: MOD5282 UART
- Replies: 8
- Views: 4755
Re: MOD5282 UART
Hi @TomNB. I made a mistake earlier. My SPI loop is running at 400HZ not 100Hz. The 100Hz loop is the UDP transmit rate to our controller PC. I'm beginning to think the problem is with my serial reception routine. It works great at lower baud and data rates that you'd find with NMEA-0183 strings. I'...
- Wed Apr 15, 2020 2:03 pm
- Forum: NetBurner Hardware
- Topic: MOD5282 UART
- Replies: 8
- Views: 4755
Re: MOD5282 UART
Thanks @TomNB. My serial routine priority is 59, so there's not much lower than that. And we're not doing any other processing like floating point within the 5282. Testing is inconclusive at the moment. With 40Hz @ 128000 baud, sometimes I can read the A2D channels and sometimes I can't.
- Wed Apr 15, 2020 9:53 am
- Forum: NetBurner Hardware
- Topic: MOD5282 UART
- Replies: 8
- Views: 4755
Re: MOD5282 UART
Sorry @TomNB for taking so long to reply about the AHRS sensor. The rugged version we are using only supports RS-232 and Serial TTL. The surface mount chip version supports those two plus SPI. At this point though, there are no plans on modifying our 5282 carrier board. Plus the ability to mount the...
- Thu Apr 02, 2020 9:04 am
- Forum: NetBurner Hardware
- Topic: MOD5282 UART
- Replies: 8
- Views: 4755
Re: MOD5282 UART
@TomNB. Just wanted to give you an update. The MOD5282 UART did not have any issues interfacing with my serial AHRS at 230400. The AHRS had an output data rate of 100Hz. We were shooting for a data rate of 200Hz, but unfortunately I cannot increase the data rate of the AHRS beyond 100Hz without incr...