【我和小安派】AiPi-Com-D200 无法显示画面问题分析

[复制链接]
查看1023 | 回复10 | 2024-1-9 09:10:20 | 显示全部楼层 |阅读模式
本帖最后由 lazy 于 2024-7-4 17:46 编辑

AiPi-Com-D200 烧录程序后无法显示画面问题分析
出厂固件和 [color=rgba(0, 0, 0, 0.87)]测试固件:点击下载 没问题。只有源代码获取不到数据。
出厂固件 热点名称 AiPi-CAM
测试固件 热点名称 aipi-cam
大小写不太一样。


烧录程序后,无画面,查看日志看到请求数据帧超时。
再次网上查看,发现摄像头没有初始化成功。


屏幕截图 2024-01-09 085459.png
然后就是下图这里因该是返回了0了。
屏幕截图 2024-01-09 085428.png
感觉应该是会有一个类似 gc3145.h的一个文件。里面定义了一些摄像头的参数。
这里尝试写了一个,不过参数应该是不对。导致还是没有画面。
屏幕截图 2024-01-09 085212.png
添加到这里。
屏幕截图 2024-01-09 085333.png


  1. /**
  2. * @file image_sensor.h
  3. * @brief
  4. *
  5. * Copyright (c) 2022 Bouffalolab team
  6. *
  7. * Licensed to the Apache Software Foundation (ASF) under one or more
  8. * contributor license agreements.  See the NOTICE file distributed with
  9. * this work for additional information regarding copyright ownership.  The
  10. * ASF licenses this file to you under the Apache License, Version 2.0 (the
  11. * "License"); you may not use this file except in compliance with the
  12. * License.  You may obtain a copy of the License at
  13. *
  14. *   http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  18. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  19. * License for the specific language governing permissions and limitations
  20. * under the License.
  21. *
  22. */
  23. #ifndef __GC2145_H__
  24. #define __GC2145_H__

  25. #include "image_sensor.h"

  26. static struct image_sensor_command_s gc2145_init_list[] = {
  27.     { 0x12, 0x80 },
  28.     { 0x67, 0x00 },
  29.     { 0x68, 0x00 },
  30. };

  31. static struct image_sensor_config_s gc2145_config = {
  32.     .name = "GC2145",
  33.     .output_format = IMAGE_SENSOR_FORMAT_YUV422_YUYV,
  34.     .slave_addr = 0x78,
  35.     .id_size = 2,
  36.     .reg_size = 1,
  37.     .h_blank = 0x21,
  38.     .resolution_x = 640,
  39.     .resolution_y = 480,
  40.     .id_addr = 0xfcfd,
  41.     .id_value = 0x2155,
  42.     .pixel_clock = 24000000,
  43.     .init_list_len = sizeof(gc2145_init_list)/sizeof(gc2145_init_list[0]),
  44.     .init_list = gc2145_init_list,
  45. };

  46. #endif /* __GC2145_H__ */
复制代码
感觉我的这个从机地址和参数可能都不对。
GC2145 CSP DataSheet http://files.pine64.org/doc/datasheet/PinebookPro/GC2145 CSP DataSheet release V1.0_20131201.pdf

官方资料这个摄像头没有发现什么匹配的信息。

屏幕截图 2024-01-09 090003.png

貌似只有针脚定义。



期待莫工提供些摄像头的配置头文件。

回复

使用道具 举报

爱笑 | 2024-1-9 09:33:49 | 显示全部楼层
已经在催莫工处理这个了
用心做好保姆工作
回复 支持 反对

使用道具 举报

lazy | 2024-1-9 09:41:06 | 显示全部楼层
爱笑 发表于 2024-1-9 09:33
已经在催莫工处理这个了

跟代码跟到这里,感觉好像就是摄像头没有初始化。
回复 支持 反对

使用道具 举报

WT_0213 | 2024-1-9 09:43:58 | 显示全部楼层
确实是,程序有这个问题
回复 支持 反对

使用道具 举报

爱笑 | 2024-1-9 11:19:32 | 显示全部楼层
WT_0213 发表于 2024-1-9 09:43
确实是,程序有这个问题

软件有点问题,目前软件部正在修了!
用心做好保姆工作
回复 支持 反对

使用道具 举报

bzhou830 | 2024-1-9 11:23:30 | 显示全部楼层
爱笑 发表于 2024-1-9 11:19
软件有点问题,目前软件部正在修了!

不要着急
选择去发光,而不是被照亮
回复 支持 反对

使用道具 举报

timo | 2024-1-9 16:14:12 | 显示全部楼层
期待
回复

使用道具 举报

7788 | 2024-1-9 20:24:20 | 显示全部楼层
厉害
回复

使用道具 举报

曹县 | 2024-1-10 17:53:36 | 显示全部楼层
回复

使用道具 举报

WT_0213 | 2024-1-11 09:02:50 | 显示全部楼层
希望能早日修复
回复 支持 反对

使用道具 举报

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

本版积分规则