本帖最后由 lazy 于 2024-7-4 17:46 编辑
AiPi-Com-D200 烧录程序后无法显示画面问题分析
出厂固件和 [color=rgba(0, 0, 0, 0.87)]测试固件:点击下载 没问题。只有源代码获取不到数据。
出厂固件 热点名称 AiPi-CAM
测试固件 热点名称 aipi-cam
大小写不太一样。
烧录程序后,无画面,查看日志看到请求数据帧超时。
再次网上查看,发现摄像头没有初始化成功。
然后就是下图这里因该是返回了0了。
感觉应该是会有一个类似 gc3145.h的一个文件。里面定义了一些摄像头的参数。
这里尝试写了一个,不过参数应该是不对。导致还是没有画面。
添加到这里。
- /**
- * @file image_sensor.h
- * @brief
- *
- * Copyright (c) 2022 Bouffalolab team
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership. The
- * ASF licenses this file to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- *
- */
- #ifndef __GC2145_H__
- #define __GC2145_H__
- #include "image_sensor.h"
- static struct image_sensor_command_s gc2145_init_list[] = {
- { 0x12, 0x80 },
- { 0x67, 0x00 },
- { 0x68, 0x00 },
- };
- static struct image_sensor_config_s gc2145_config = {
- .name = "GC2145",
- .output_format = IMAGE_SENSOR_FORMAT_YUV422_YUYV,
- .slave_addr = 0x78,
- .id_size = 2,
- .reg_size = 1,
- .h_blank = 0x21,
- .resolution_x = 640,
- .resolution_y = 480,
- .id_addr = 0xfcfd,
- .id_value = 0x2155,
- .pixel_clock = 24000000,
- .init_list_len = sizeof(gc2145_init_list)/sizeof(gc2145_init_list[0]),
- .init_list = gc2145_init_list,
- };
- #endif /* __GC2145_H__ */
复制代码 感觉我的这个从机地址和参数可能都不对。
GC2145 CSP DataSheet http://files.pine64.org/doc/datasheet/PinebookPro/GC2145 CSP DataSheet release V1.0_20131201.pdf
官方资料这个摄像头没有发现什么匹配的信息。
貌似只有针脚定义。
期待莫工提供些摄像头的配置头文件。
|