Go Down

Topic: need to move 1 unsigned long serially really quick (Read 1 time) previous topic - next topic

robtillaart

I always thought PaulS was an anagram of "A plus" because of the many quality contributions ;)

The "you ...clod" has many many anagrams - http://www.wordsmith.org/anagram/advanced.html -

(and yes robtillaart == Ill Abort Rat)
OK time to move to bar sport ...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

jlefevre1

9600 baud is a necessity. I will be sending from one Arduino as the transmitter to multiple Arduinos as recievers. And this will be done using 900 Mhz RS232 wireless serial radios. They top out at 9600 baud. Without the delay in the transmitter program and using the serial monitor on the software to see what the transmitter is putting out with the present 6 integer, comma delimited stream, the speed ismore than quick enough. But the receiver cannot read it and stuff it back into 6 sets of integers.  Right now for testing I am just connecting the Tx out of the transmitting Arduino to the Rx of the reicever on my workbench. I will put the radios in later but they are not part of the equation now. I will be using the 32 bits of the single long integer in various ways. 5 groups of 4 bits will be scaled from a binary 0-15 to a integer of 0 - 255 to drive 5 PWM outputs. 7 bits will directly control 7  outputs of the Arduino directly. Either on or off.  One of the bits will be a system on - off bit. When off all of the outputs and the PWM values will be set to 0 . The rest of the 32 bits are spares for now.



PaulS

Quote
And this will be done using 900 Mhz RS232 wireless serial radios. They top out at 9600 baud.

You've got 11 months to get better radios.

Quote
But the receiver cannot read it and stuff it back into 6 sets of integers.

At 9600 baud, it has an eternity to parse and convert the data.

We need to see some code to see why you are having problems.

dhenry

Use the hardware spi or uart, plus interrupts: configure the modules to trigger an isr when the data register is empty (or the transmission is done). In the isr, load up the next byte, until all four bytes / string have been done.

The speed will be blindingly fast, and it is a send-and-forget type.

PeterH


Use the hardware spi or uart, plus interrupts: configure the modules to trigger an isr when the data register is empty (or the transmission is done). In the isr, load up the next byte, until all four bytes / string have been done.



In other words, call Serial.write()?
I only provide help via the forum - please do not contact me for private consultancy.

Go Up