Search found 69 matches

by tpannone
Mon May 04, 2020 2:12 pm
Forum: NetBurner Software
Topic: ReadWithTimeout function
Replies: 8
Views: 4128

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...
by tpannone
Tue Apr 21, 2020 3:20 pm
Forum: NetBurner Software
Topic: Queues and Fifos
Replies: 8
Views: 3611

Re: Queues and Fifos

Thanks for explaining that. I would not have guessed to increase the buffer size add more buffers.
by tpannone
Tue Apr 21, 2020 2:23 pm
Forum: NetBurner Software
Topic: Queues and Fifos
Replies: 8
Views: 3611

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.
by tpannone
Tue Apr 21, 2020 12:57 pm
Forum: NetBurner Software
Topic: Queues and Fifos
Replies: 8
Views: 3611

Re: Queues and Fifos

Nevermind @pbreed. I found SERIAL_RX_BUFFERS in constants.h. It is currently set to 2 bytes.
by tpannone
Tue Apr 21, 2020 12:34 pm
Forum: NetBurner Software
Topic: Queues and Fifos
Replies: 8
Views: 3611

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.
by tpannone
Tue Apr 21, 2020 7:46 am
Forum: NetBurner Software
Topic: Queues and Fifos
Replies: 8
Views: 3611

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?
by tpannone
Mon Apr 20, 2020 9:07 am
Forum: NetBurner Hardware
Topic: MOD5282 UART
Replies: 8
Views: 4733

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'...
by tpannone
Wed Apr 15, 2020 2:03 pm
Forum: NetBurner Hardware
Topic: MOD5282 UART
Replies: 8
Views: 4733

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.
by tpannone
Wed Apr 15, 2020 9:53 am
Forum: NetBurner Hardware
Topic: MOD5282 UART
Replies: 8
Views: 4733

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...
by tpannone
Thu Apr 02, 2020 9:04 am
Forum: NetBurner Hardware
Topic: MOD5282 UART
Replies: 8
Views: 4733

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