I want change easyweb to communicate with the camera and send hex data (camera) up through enthernet computer. I used the arm to connect to the camera via uart, but my problem is getting data from the camera with a piece of lost data when I put the counter(nn) above 315bytes. my camera send data HEX about 12kb. What is my problem? way to solve? my code received data from camera: while(1){ pdata[nn] = UARTGetChar(LPC_UART0);
if (nn==280)(break;}
nn++; }
"the camera"
What camera?
"connect to the camera via uart, but my problem is getting data from the camera with a piece of lost data when I put the counter(nn) above 315bytes"
How fast is the data?
Is there flow control?
Is the UARTGetChar function suitably optimised for this?
Thanks for the reply
I want to receive all the data from camera(about 12k) I set variable (nn) above 315bytes variable,some data lost. because in available easyweb (lpc17xx.cmsis.driver.library)function getchar should I use it.
I tried to used interrupt (ring buffer lpc17xx.cmsis.driver.library) but the same problem it still lose data when receiving much data. I used LinkSprite JPEG LS-Y201 camera ,flow control baurate 38400 default on camera.
you any other way to get full without data loss? thanks again.
Have you implemented and/or enabled the flow control in your code?
And in your hardware?
View all questions in Keil forum