Search found 62 matches

by tpannone
Wed May 06, 2020 5:32 am
Forum: NetBurner Software
Topic: ReadWithTimeout function
Replies: 8
Views: 592

Re: ReadWithTimeout function

Great. Thanks pbreed.

Final question. What is the type VDWORD as shown in utils.h? I'm guessing some variation of a DWORD.
by tpannone
Tue May 05, 2020 7:03 am
Forum: NetBurner Software
Topic: ReadWithTimeout function
Replies: 8
Views: 592

Re: ReadWithTimeout function

Is TimeTick a system variable available for use in 3.2, or does the programmer create it?
by tpannone
Tue May 05, 2020 6:44 am
Forum: NetBurner Software
Topic: ReadWithTimeout function
Replies: 8
Views: 592

Re: ReadWithTimeout function

Thanks pbreed. I just assumed the data was available. I wasn't counting on the serial taking that long to transfer data into the serial buffers. Since I was getting 30-34 bytes for a read, my next test was to break my reads into close to equal segments, such as 25,25,25,14. That still has to be fast...
by tpannone
Mon May 04, 2020 2:12 pm
Forum: NetBurner Software
Topic: ReadWithTimeout function
Replies: 8
Views: 592

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: 412

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: 412

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: 412

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: 412

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: 412

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: 705

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