发帖
10 0 0

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

lazy
论坛元老

33

主题

942

回帖

8396

积分

论坛元老

积分
8396
吐槽专区 1638 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

貌似只有针脚定义。



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

──── 0人觉得很赞 ────

使用道具 举报

2024-1-9 09:33:49
已经在催莫工处理这个了
2024-1-9 09:41:06
爱笑 发表于 2024-1-9 09:33
已经在催莫工处理这个了

跟代码跟到这里,感觉好像就是摄像头没有初始化。
2024-1-9 09:43:58
确实是,程序有这个问题
2024-1-9 11:19:32
WT_0213 发表于 2024-1-9 09:43
确实是,程序有这个问题

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

不要着急
2024-1-9 16:14:12
期待
2024-1-9 20:24:20
厉害
2024-1-10 17:53:36
2024-1-11 09:02:50
希望能早日修复
您需要登录后才可以回帖 立即登录
高级模式
12下一页
统计信息
  • 会员数: 28098 个
  • 话题数: 39306 篇