2012-03-23 08:32 PM
Dear All:
I try to pass my CMOS data to ethernet interface through DMA. (Before transfer to ethernet interface, I will add bmp file header.)I already show the CMOS data on my LCD. But I don't have any idea how to pass data to ethernet interface.I have readed the sample code, LwIP, which in stander library director.My plan is add my CMOS control code in LwIP (httpserver-standalone project).Anyone has experience or idea about this? Would you please give me some idea to do this?Thanks.2012-03-23 08:55 PM
Your idea is to show on webpage or sepcific graphical user interface ?
If web page, then make a webpage with embedded image. In lwIP, check for request for image (when user opens the webpage from remote client) and provide pointer to the BMP image.2012-03-23 09:33 PM
Dear Alokm:
First of all, thanks for your kindly reply.Yes, you are right. I want to show the picture on web browser and continue show the picture very quickly.If web page, then make a webpage with embedded image. > I know how to make a webpage, which my plan is modify from LwIP sample code. But I don't know what you mean. with embedded imgae?? You mean I make a default image in webpage?In lwIP, check for request for image (when user opens the webpage from remote client) and provide pointer to the BMP image.> That's a big problem. That's what I ask. I don't know how to modify the sample code, I know how to add bmp file header with my cmos data to make a bmp file. But I don't know how to pass it to Ethernet by DMA. I am so sorry, would mine give me more experience with this, please.2012-03-23 09:37 PM
Dear Alokm:
First of all, thanks for your kindly reply.Yes, you are right. I want to show the picture on web browser and continue show the picture very quickly.If web page, then make a webpage with embedded image. > I know how to make a webpage, which my plan is modify from LwIP sample code. But I don't know what you mean. with embedded imgae?? You mean I make a default image in webpage?In lwIP, check for request for image (when user opens the webpage from remote client) and provide pointer to the BMP image.> That's a big problem. That's what I ask. I don't know how to modify the sample code, I know how to add bmp file header with my cmos data to make a bmp file. But I don't know how to pass it to Ethernet by DMA. I am so sorry, would mine give me more experience with this, please.2012-03-24 07:53 AM
You can't just dump it to the ethernet interface with DMA. You do understand the concepts of TCP packets, and socket connections, right? You have perhaps implemented a http client/server socket application?
Go find a web server (HTTP GET) implementation that you can understand. Make a web page, index.html, that describes the name of the BMP ''file'' you want read, let's call it foo.bmp When foo.bmp subsequently is requested, by an HTTP GET, you shovel the BMP data as the payload portion of the transfer.2012-03-27 09:09 PM
Dear Sir:
I try to make a new webpage and transfer by makefsdata.exe. (It is include in original example).But it can't compile. MDK shows me these errors...\src\fsdata.c(9): error: #65: expected a '';''..\src\fsdata.c(10): error: #65: expected a '';''..\src\fsdata.c(271): warning: #12-D: parsing restarts here after previous syntax error..\src\fsdata.c(2594): error: #65: expected a '';''..\src\fsdata.c(2600): warning: #12-D: parsing restarts here after previous syntax error..\src\fsdata.c(2603): error: #20: identifier ''Connections_jpg'' is undefined..\src\fsdata.c(2603): error: #28: expression must have a constant valueI try to compare the files(fsdata.c). Is it cause my pitcure too large? Or, I need to modify the other variable in ST sample code?2012-03-27 11:06 PM
Hello,
I think it is easy to start by httpserver_netconn FreeRTOS project then switch to standalone project 1 - first configure DMA2_Stream1 to manage data transfer from DCMI interface to Ext. SRMA 2 - prepare the BMP image header QQVGA or QVGA 3 - check the DMA TC flag 4 - check for image request if (strncmp((char const *)buf, ''GET /image.bmp'', 14)) { if(BufferIsFilled) // BufferIsFilled should be set when DMA TC { netconn_write(); // Send image header netconn_write(); // Send image data BufferIsFilled = 0; // Start new image capture } }2012-03-28 07:42 PM
Dear AMSN:
Thanks for your kindly reply. May I ask you some questions?1. Can I use LwIP example to modify to fit my request? 2. How do I make my bmp pass to web browser very fast continuous transmission
? (CGI?)I had considered to convert the MJPEG stream
, but I think it will lose too much FPS.
Because I don't use hardware codec.I already can light on the cmos and show the picture on my LCD, and I also can show the html through wifi on my iPad. But I know how to show the picture on my iPad through wifi.Hope everyone can give me some guidance.
Thanks and best regards,Simon2012-03-29 07:08 AM
Hello,
1. yes, you should modify the html page 2. use timing eventshttp://p2p.wrox.com/javascript/14922-settimeout-image-cycling-circle.html
&2012-03-29 07:09 AM
Hello,
1. yes, you should modify the html page 2. use timing eventshttp://p2p.wrox.com/javascript/14922-settimeout-image-cycling-circle.html
&