Code: Select all
//.... previous code ....
SerSend(array, 4096 * sizeof(int));
//.... following code ....
Code: Select all
//... Previous code ...
SerReceive(array);
// ... Following Code ...
Ok so you are sending it as ASCII text then?Abdulrehmangriffith wrote: ↑Wed Apr 11, 2018 2:41 amThanks DavidS, I’m send data using Tera Term software from the PC. I’m using wiringSerial library to receive the data, by using this serialGetchar( ) function I’m receiving one byt at a time means just one char
Code: Select all
// ... ...
unsigned char hugeString[65536];
unsigned char smallStrings[8192][8];
// ... ...
for (int cnt = 0, sec = 0,dig = 0; cnt <= 65535; ++cnt)
{
if (hugeString[cnt] < 0x20)
{
++sec; dig = 0;
}else{
smallStrings[sec][dig] = hugeString[cnt];
++dig;
// ... ...
Code: Select all
// ... ...
unsigned char hugeString[65536];
unsigned char smallStrings[8192][8];
// ... ...
for (int cnt = 0, sec = 0,dig = 0; cnt <= 65535; ++cnt,
(hugeString[cnt] <= 0x20) ?
(++sec, dig = 0) :
(smallString[sec][dig] = hugeString[cnt], ++dig));
// ... ...