19413|4

553

帖子

3

TA的资源

纯净的硅(初级)

楼主
 

STM32f103驱动OV2640摄像头输出JPEG图片 [复制链接]

参考正点原子的代码,用STM32F103驱动OV2640输出JPEG图片,想通过串口在电脑上显示图片,现在的问题是能收到以0xFF,0xD8开头,以0xFF,0xD9结尾的数据,但是在电脑上却无法显示图片,不知道哪里有问题,拿别人的好的数据就可以显示图片。

我的代码:

  1. #include "sys.h"
  2. #include "delay.h"
  3. #include "usart.h"   
  4. #include "usmart.h"       
  5. #include "string.h"               
  6. #include "ov2640.h"
  7. #include "timer.h"

  8. #define OV2640_JPEG_WIDTH        256        //JPEG拍照的宽度       
  9. #define OV2640_JPEG_HEIGHT        192                //JPEG拍照的高度


  10. u8  ov2640_framebuf[OV2640_JPEG_WIDTH*OV2640_JPEG_HEIGHT];                                //帧缓存
  11. extern u8 ov_frame;                                        //在timer.c里面定义          


  12. //OV2640速度控制
  13. void ov2640_speed_ctrl(void)
  14. {
  15.         u8 clkdiv,pclkdiv;                        //时钟分频系数和PCLK分频系数
  16.         clkdiv=1;
  17.         pclkdiv=28;
  18.         //pclkdiv=50;
  19.         SCCB_WR_Reg(0XFF,0X00);               
  20.         SCCB_WR_Reg(0XD3,pclkdiv);        //设置PCLK分频
  21.         SCCB_WR_Reg(0XFF,0X01);
  22.         SCCB_WR_Reg(0X11,clkdiv);        //设置CLK分频       
  23. }
  24. //OV2640拍照jpg图片
  25. void ov2640_jpg_photo(void)
  26. {
  27.         u32 i=0;
  28.         u32 jpeglen=0;
  29.         u8 *pbuf;
  30.         u32 j=0;
  31.        
  32.         for(i=0;i<10;i++)                //丢弃10帧,等待OV2640自动调节好(曝光白平衡之类的)
  33.         {
  34.                 while(OV2640_VSYNC==1);         
  35.                 while(OV2640_VSYNC==0);          
  36.         }  
  37.         while(OV2640_VSYNC==1)        //开始采集jpeg数据
  38.         {
  39.         //        printf("帧开始\r\n");
  40.                 while(OV2640_HREF)
  41.                 {  
  42.                         while(OV2640_PCLK==0);
  43.                 //        printf("pcld==0\r\n");
  44.                         //i=OV2640_DATA;
  45.                         ov2640_framebuf[jpeglen]=OV2640_DATA;
  46.                 //        printf("%0X  ",OV2640_DATA);
  47.                 //        printf("出口\r\n");
  48.                         while(OV2640_PCLK==1);  
  49.                         jpeglen++;
  50.                 //        printf("fffff\r\n");
  51.                 }
  52.         }
  53.        

  54.         if(jpeglen!=0)
  55.         {
  56.                 pbuf=(u8*)ov2640_framebuf;
  57.                 for(i=0;i<jpeglen;i++)//查找0XFF,0XD8
  58.                 {
  59.                         if((pbuf[i]==0XFF)&&(pbuf[i+1]==0XD8))break;
  60.                 }
  61.                 if(i==jpeglen)
  62.                 {
  63.                         printf("没有找到0xFF,0xD8\r\n");        //串口打印JPEG文件大小
  64.                 }
  65.                 else                //找到了
  66.                 {
  67.                         pbuf+=i;//偏移到0XFF,0XD8处
  68.                         for(j=0;j<jpeglen-i;j++)
  69.                         {
  70.                                 printf("0x%02X,",*(pbuf+j));
  71.                         }
  72.                 }               
  73.         }

  74. }  
  75. int main(void)
  76. {               

  77.         Stm32_Clock_Init(9);                //系统时钟设置
  78.         uart_init(72,115200);                //串口初始化为115200
  79.         delay_init(72);                                    //延时初始化  
  80.         usmart_dev.init(72);                //初始化USMART               
  81.         LED_Init();                                          //初始化与LED连接的硬件接口

  82.         printf("------------OV2640摄像头实验------------\r\n");
  83.         printf("初始化OV2640...\r\n");
  84.         while(OV2640_Init())                        //初始化OV2640
  85.         {
  86.                 printf("初始化OV2640失败\r\n");
  87.                 delay_ms(500);
  88.             printf("正尝试重新初始化...\r\n");
  89.                 delay_ms(500);
  90.         }
  91.         printf("初始化OV2640成功\r\n");
  92.         delay_ms(1500);                          
  93.         OV2640_JPEG_Mode();
  94.         OV2640_OutSize_Set(OV2640_JPEG_WIDTH,OV2640_JPEG_HEIGHT);
  95.         ov2640_speed_ctrl();
  96.        
  97.         SCCB_WR_Reg(0XFF,0X00);
  98.         SCCB_WR_Reg(0XD3,30);
  99.         SCCB_WR_Reg(0XFF,0X01);
  100.         SCCB_WR_Reg(0X11,0X1);
  101.         while(1)
  102.         {
  103.                        
  104.                 ov2640_jpg_photo();

  105.         }                                                                                                
  106. }











复制代码



此帖出自单片机论坛

最新回复

您好,请问你问题解决了?我的也是这样的,数据丢包了,怎么解决这个问题。  详情 回复 发表于 2016-8-19 13:36
点赞 关注
 

回复
举报

553

帖子

3

TA的资源

纯净的硅(初级)

沙发
 
获得的数据时这样的::

  1. 0xFF,0xD8,0xFF,0x00,0x10,0x4A,0x46,0x49,0x46,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xDB,0x00,0x43,0x00,0x0C,0x08,0x09,0x89,0x08,0x0C,0x0B,0x0A,0x0B,0x0E,0x0D,0x0E,0x12,0x1E,0x14,0x12,0x11,0x11,0xA5,0x1A,0x1C,0x16,0x1E,0x2C,0x26,0x2E,0x2B,0x26,0x2A,0x29,0x30,0x36,0x45,0xF0,0x33,0x41,0x34,0x29,0x2A,0x3C,0x52,0x41,0x47,0x4A,0x4D,0x4E,0x4D,0x2F,0xD5,0x5B,0x54,0x4B,0x5A,0x45,0x4C,0x4D,0xFF,0xDB,0x00,0x43,0x01,0x0D,0x0E,0xB2,0x10,0x12,0x23,0x14,0x14,0x23,0x4A,0x2A,0x32,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0x4A,0xC4,0x00,0x1F,0x00,0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0xC4,0x00,0x10,0x00,0x02,0x01,0x03,0x03,0x02,0x04,0x05,0x05,0x04,0x00,0x00,0x01,0x7D,0x01,0x02,0x03,0x04,0x11,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61,0x22,0x71,0x32,0x81,0x91,0xA1,0x08,0x23,0x42,0xB1,0x15,0x52,0xF0,0x24,0x33,0x62,0x72,0x82,0x09,0x0A,0x17,0x18,0x1A,0x25,0x26,0x27,0x28,0x29,0x2A,0x34,0x36,0x37,0x39,0x3A,0x43,0x44,0x45,0x46,0x47,0x48,0x4A,0x53,0x55,0x56,0x57,0x58,0x59,0x5A,0x63,0x64,0x66,0x67,0x69,0x6A,0x73,0x74,0x75,0x76,0x77,0x78,0x7A,0x83,0x85,0x86,0x87,0x88,0x89,0x8A,0x92,0x93,0x95,0x96,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA6,0xA8,0xA9,0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xC2,0xC3,0xC5,0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD5,0xD6,0xD8,0xD9,0xDA,0xE1,0xE2,0xE3,0xE4,0xE5,0xE7,0xE8,0xEA,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF9,0xFA,0xC4,0x00,0x1F,0x01,0x00,0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0xC4,0x00,0x11,0x00,0x02,0x01,0x02,0x04,0x04,0x03,0x07,0x05,0x04,0x00,0x01,0x02,0x77,0x00,0x01,0x02,0x11,0x04,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61,0x13,0x22,0x81,0x08,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x23,0x33,0x52,0xF0,0x15,0x62,0x72,0x0A,0x16,0x24,0x34,0xE1,0x25,0xF1,0x17,0x19,0x1A,0x26,0x27,0x28,0x29,0x2A,0x36,0x37,0x38,0x39,0x3A,0x43,0x44,0x45,0x47,0x48,0x49,0x4A,0x53,0x54,0x55,0x57,0x58,0x59,0x5A,0x63,0x64,0x65,0x66,0x68,0x69,0x6A,0x73,0x74,0x75,0x76,0x78,0x79,0x7A,0x82,0x83,0x84,0x85,0x86,0x88,0x89,0x8A,0x92,0x93,0x94,0x95,0x97,0x98,0x99,0x9A,0xA2,0xA3,0xA4,0xA5,0xA7,0xA8,0xA9,0xAA,0xB2,0xB3,0xB4,0xB6,0xB7,0xB8,0xB9,0xBA,0xC2,0xC3,0xC4,0xC6,0xC7,0xC8,0xC9,0xCA,0xD2,0xD3,0xD5,0xD6,0xD7,0xD8,0xD9,0xDA,0xE2,0xE3,0xE5,0xE6,0xE7,0xE8,0xE9,0xEA,0xF2,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0xFA,0xFF,0x00,0x11,0x08,0x00,0xC0,0x01,0x00,0x01,0x21,0x00,0x02,0x11,0x01,0x03,0x11,0xFF,0xDA,0x00,0x0C,0x03,0x01,0x00,0x02,0x11,0x03,0x00,0x3F,0x00,0xE2,0x29,0x73,0x90,0x38,0x1A,0x7A,0xD2,0x02,0x5C,0x87,0x34,0x01,0x66,0x1E,0x94,0x5C,0x4E,0x4D,0xC7,0xAD,0x00,0x67,0xEF,0xDE,0x3F,0xCC,0x68,0x56,0xF9,0xB8,0x45,0xE2,0x94,0x09,0x63,0x94,0x48,0x7D,0xC5,0x8C,0x62,0x95,0x84,0x2F,0x51,0x8A,0x7D,0x21,0xE2,0xA4,0x5A,0x62,0x1C,0x24,0x09,0x51,0xD0,0x6E,0xF5,0x51,0x56,0x9A,0xB9,0xBE,0xE2,0x79,0x62,0xA4,0xB4,0x76,0x3F,0x36,0xE9,0x4E,0xE6,0xAB,0x6A,0x47,0x14,0x0C,0x80,0x44,0x22,0x77,0xDC,0xE6,0x9C,0xFF,0x00,0x32,0xD0,0x22,0x14,0xEC,0x53,0x01,0xE1,0x33,0x4F,0x60,0x0B,0x8E,0x29,0xC1,0x68,0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,0x66,0x44,0x4B,0xAB,0x4C,0xF9,0xD6,0xA4,0xD0,0xE7,0xAE,0xE1,0xA5,0x65,0xCD,0x1E,0x28,0x10,0xC8,0x93,0x4A,0x94,0xC4,0x54,0xE6,0x81,0x16,0x9B,0x61,0x04,0x55,0xA0,0xE5,0xCD,0x03,0x68,0xA4,0x34,0xCF,0x25,0x8F,0x5A,0x58,0xF7,0xA7,0x46,0x22,0xAE,0xC5,0x79,0x9F,0xF5,0xAC,0xDC,0x63,0x93,0x48,0xBA,0xB8,0x5C,0x6E,0x34,0xC2,0xCD,0xB7,0xE2,0x81,0x8C,0x0B,0x9A,0x5D,0x98,0x61,0xEA,0xB8,0xE4,0xF1,0x48,0x72,0xC4,0x39,0x26,0x80,0x13,0x15,0x89,0xAF,0x45,0xA0,0x30,0x69,0x69,0xC2,0x98,0xC4,0xC6,0x29,0x90,0x13,0x4E,0xA3,0x22,0x98,0x12,0xA5,0x9E,0x46,0xFC,0x85,0xE5,0x22,0x29,0x07,0xF2,0xA4,0x4E,0xC4,0x0C,0x71,0x54,0xA1,0x4D,0x58,0x87,0x44,0xAD,0xBF,0x52,0x6B,0x08,0x7C,0xB1,0xEF,0x52,0xCA,0x44,0xCB,0x9A,0xD9,0x6E,0x76,0x3E,0x3B,0x1A,0x92,0x84,0xD6,0x7C,0xB6,0xBC,0x86,0xAE,0x7A,0x78,0x68,0x02,0x8B,0x2A,0x44,0xC9,0x82,0x69,0x92,0x3A,0x1E,0xB5,0x72,0x40,0xCB,0xFD,0xDE,0xB4,0xA7,0x9A,0x00,0x8A,0xA4,0x50,0x04,0x8A,0x93,0xB5,0x00,0x33,0x1E,0x95,0x27,0x00,0x43,0x26,0x28,0x01,0x31,0x5C,0xE6,0xB8,0x9F,0x14,0x21,0x1C,0xF5,0x2D,0x03,0xDA,0x81,0x4C,0x44,0xA9,0x56,0x62,0xA0,0x03,0x72,0xF0,0x0D,0x0C,0x06,0xED,0x73,0x4D,0x21,0x5C,0x81,0xE6,0x54,0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,0x71,0x8A,0xE7,0xAB,0x56,0x8E,0x56,0xDC,0x3B,0xD2,0xB8,0xE6,0x5E,0x3F,0xA5,0x54,0x93,0x93,0x60,0x32,0xAC,0x5B,0xFD,0x68,0x02,0x07,0x06,0xAD,0x06,0x26,0xDC,0xD3,0xF1,0x48,0x42,0x4C,0x04,0xA4,0x0C,0x0C,0x8D,0x75,0xB0,0x80,0x57,0x2F,0xDC,0x4B,0x32,0xA9,0x68,0x18,0xB4,0xEA,0x60,0x55,0xAB,0xBC,0xA7,0xCD,0x20,0x37,0x63,0x21,0xD4,0x52,0xD2,0x5A,0x78,0xA0,0x43,0x85,0x3C,0x50,0x03,0xC5,0x3C,0x50,0xE5,0x58,0x80,0xED,0xE7,0x19,0xA4,0x05,0x09,0x59,0x65,0x2E,0x06,0x71,0xCD,0xDF,0xDB,0xAD,0xF5,0x9A,0xC8,0x07,0x29,0x48,0x67,0x33,0x3C,0x01,0x53,0x91,0xF3,0x42,0xA5,0x77,0x27,0x1E,0xA2,0x98,0xBD,0x29,0x55,0xB0,0xD4,0xC0,0xBF,0x64,0x55,0xE4,0xF9,0x85,0x00,0x2E,0xDA,0x29,0x00,0x62,0x8C,0x50,0x02,0x62,0x14,0xC0,0xC1,0x4F,0xEF,0x31,0x58,0x57,0x5D,0x29,0x19,0x66,0x92,0x81,0x8E,0xA7,0x04,0x2D,0x48,0xA6,0x80,0x35,0x34,0xF1,0xF2,0x35,0x6A,0x8A,0x0A,0x1C,0x29,0x90,0x0F,0x14,0xF1,0x48,0x43,0xC5,0xC1,0x8E,0x15,0x3C,0x18,0xFB,0xA5,0xB0,0x94,0x01,0x76,0xD6,0x4F,0xB3,0x16,0x39,0xAD,0x7D,0x3E,0x7F,0x36,0x50,0xCC,0xA7,0x6C,0x52,0x02,0x0D,0x7E,0xD0,0x3A,0x0F,0xBD,0xD6,0xB9,0x99,0x61,0xC7,0xC0,0xA9,0x2A,0x67,0x9A,0x8B,0x14,0x4F,0x6C,0xDD,0x4A,0xD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0x60,0x1D,0x3A,0xD3,0x03,0x94,0xB8,0x0A,0xAA,0x32,0x04,0x7D,0x2A,0xF5,0xB3,0xE6,0xA8,0x0D,0xE5,0x69,0x00,0x29,0x28,0x01,0xAC,0x81,0x86,0x18,0x55,0x19,0x7B,0x29,0xBE,0xF4,0x03,0xF0,0xA6,0x9E,0x91,0x49,0x56,0x01,0x8A,0x10,0xEA,0x70,0xA0,0x09,0x05,0x48,0x80,0x37,0x6C,0x53,0x64,0x02,0xAD,0x8A,0x8F,0x14,0xFA,0x00,0x78,0xA7,0x8A,0x30,0x9E,0x28,0xE2,0x9F,0x48,0x07,0x0A,0x78,0xA4,0x04,0xC9,0xE5,0x61,0x5D,0x0C,0x32,0x2D,0xC4,0x39,0xF5,0x54,0x80,0x75,0x6B,0x4F,0x2A,0x53,0xE9,0x58,0x92,0x00,0x40,0x3E,0x17,0xDA,0xC2,0x98,0x1B,0x56,0xFC,0x2A,0x5A,0x90,0x12,0x8A,0x00,0x4A,0x00,0xF2,0xFC,0x52,0x56,0x80,0x18,0x0A,0x42,0x53,0x80,0xCD,0x00,0x49,0x56,0x2D,0xA3,0xDE,0xE2,0x98,0xF8,0xC6,0xD5,0xA4,0x15,0x00,0x3C,0x53,0xE9,0x80,0xF1,0x4E,0x14,0x80,0xA7,0x8A,0x00,0x78,0xA7,0x8A,0x40,0x38,0x85,0x20,0x24,0x5A,0xD0,0xD3,0x6E,0xA9,0x36,0xB7,0xDD,0x34,0x01,0xA1,0x7F,0xB8,0xB7,0x3E,0xA2,0xB9,0x1B,0xA8,0x9A,0xA0,0x28,0xB2,0xD3,0x55,0x4B,0x38,0x5A,0x60,0x6F,0x44,0xBB,0x23,0x0B,0xE9,0x4F,0xA9,0xA4,0xA0,0x04,0xA4,0xA0,0x0F,0x33,0x23,0xCC,0x56,0x00,0x00,0xC5,0x2E,0x10,0xA2,0x9C,0x05,0x00,0x3D,0x45,0x69,0xD0,0xFF,0x15,0x15,0x21,0x9A,0xE1,0x52,0x03,0xD6,0xA4,0xA0,0x07,0x0A,0xA0,0x07,0x8A,0x78,0xA0,0x07,0x0A,0x7D,0x1E,0x29,0x80,0x75,0x48,0x28,0x03,0x6F,0x4E,0x9F,0x8B,0x69,0x2B,0x3F,0x55,0xD3,0xFE,0xF4,0x8B,0xF7,0x81,0x80,0x67,0x38,0xEB,0xE9,0x56,0xAD,0x2D,0x3C,0x99,0xBE,0x00,0x5B,0xA2,0x80,0x12,0x8A,0x00,0x4A,0x00,0xF3,0x52,0x29,0x31,0x5A,0x98,0xA4,0xA0,0x42,0xD3,0x85,0x00,0x4F,0x6E,0x6C,0x56,0xE4,0x09,0xB1,0x00,0x32,0x5A,0x70,0xA4,0x04,0x82,0x9E,0x29,0xF1,0x4F,0x4F,0x14,0x00,0xE1,0x4F,0x80,0x78,0xA7,0x8A,0x40,0x38,0x53,0xC5,0x2D,0x3A,0x80,0x26,0x86,0x77,0x87,0x38,0xA9,0xA5,0xBE,0x96,0x65,0xDA,0xD8,0xD2,0xD2,0x80,0x2A,0x05,0x3A,0x0A,0x28,0x28,0x01,0x29,0x29,0x80,0x94,0x01,0xE7,0x3B,0x69,0x9B,0xC0,0x28,0xC5,0x00,0x26,0xDA,0x78,0x23,0x46,0xC2,0x2F,0x9B,0x27,0xB5,0x0A,0x43,0x1E,0x29,0xE2,0xA4,0x07,0x78,0xA0,0x07,0x0A,0x78,0xA0,0x07,0xD3,0x01,0xE2,0x9C,0x2A,0x40,0x78,0xA7,0x60,0x3A,0x9D,0x48,0x05,0xA5,0xA0,0x05,0x80,0x0A,0x0A,0x29,0x80,0x52,0x82,0x52,0x50,0x07,0x9E,0x1A,0x42,0x2B,0x1B,0x8A,0x31,0x48,0x41,0x8A,0x7C,0xB9,0xA8,0x19,0x04,0x7E,0x5A,0x01,0x53,0x0A,0x40,0x3C,0x53,0xC5,0x00,0x53,0x85,0x20,0x1F,0x4F,0x14,0x00,0xE1,0x14,0x00,0x00,0xF1,0x4F,0x14,0x80,0xA7,0xD2,0x01,0x69,0xD4,0x00,0xB4,0xB4,0x51,0x4C,0x4C,0x02,0x8A,0x00,0x28,0x02,0x52,0x53,0x03,0xFF,0xD9
复制代码
此帖出自单片机论坛
 
 

回复

26

帖子

0

TA的资源

一粒金砂(中级)

板凳
 
你的接收到的数据有点少。。。。
此帖出自单片机论坛

点评

是的,我也怀疑是丢数据了,我没有用中断,如果用中断应该检测pclk吗?  详情 回复 发表于 2016-6-24 12:41
 
 
 

回复

553

帖子

3

TA的资源

纯净的硅(初级)

4
 


是的,我也怀疑是丢数据了,我没有用中断,如果用中断应该检测pclk吗?
此帖出自单片机论坛
 
 
 

回复

6

帖子

0

TA的资源

一粒金砂(初级)

5
 
xinmeng_wit 发表于 2016-6-24 12:41
是的,我也怀疑是丢数据了,我没有用中断,如果用中断应该检测pclk吗?

您好,请问你问题解决了?我的也是这样的,数据丢包了,怎么解决这个问题。
此帖出自单片机论坛
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/7 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表