Closed kodidu closed 2 years ago
Could you show output of ipctool
without flags?
root@openipc-xm530:~# ipctool
---
board:
vendor: Xiongmai
cloudId: ------
snsType: 55
chip:
vendor: Xiongmai
model: XM530
ethernet:
mac: "-------"
rom:
- type: nor
block: 64K
partitions:
- name: boot
size: 0x40000
sha1: 821bac0f
contains:
- name: xmcrypto
offset: 0x2fc00
- name: uboot-env
offset: 0x30000
- name: env
size: 0x10000
sha1: afd8fab3
- name: kernel
size: 0x200000
sha1: a930524b
- name: rootfs
size: 0x500000
path: /,squashfs
sha1: 22c1d611
- name: rootfs_data
size: 0xb0000
path: /overlay,jffs2,rw
size: 8M
ram:
total: 64M
media: 32M
firmware:
kernel: "3.10.103+ (SMP Sun Nov 14 17:10:22 UTC 2021)"
toolchain: gcc version 7.5.0 (Buildroot -geac3d7b)
god-app: /usr/bin/majestic
Is Majestic working on your camera? According to XM SDK source code you might have something like F37
Yes it is starting up and seems to detect the sensor. DEBUG: libfvideo: F37!
root@openipc-xm530:~# killall majestic; majestic
LIBH264: Complied at Apr 30 2019 16:55:22
12:36:22 [ main] main@132 Majestic Free for Xiongmai, version master+d9d602c, built on 2021-11-14
12:36:22 [app_conf] load_config@122 Using /etc/majestic.yaml as main configuration
12:36:22 [ sdk] sdk_specific_config@768 sdk_specific_config()
12:36:22 [ config] parse_param_value@108 Section 'cloud' doesn't exist in config '/etc/majestic.yaml'.
12:36:22 [watchdog] watchdog_start@85 Watchdog timeout set to 10 seconds
DEBUG: [ISP_SDK]BUILD TIME:Sep 21 2021 11:58:04
DEBUG: OSC:12M
12:36:22 [ log] printf@262 SYS/VI set in [ Sofia ]
12:36:22 [ log] printf@262 Vstd_init [ PAL ]
12:36:22 [ log] printf@262 Rslt [ 0 ]
12:36:22 [ log] printf@262 IPC_Venc: [ H.264 ]
12:36:22 [ log] printf@262 Sns_IF: [ By src ]
DEBUG: SnsCfgFile: 55
DEBUG: sensor_get_chip:
12:36:22 [ log] printf@262 0x40
12:36:22 [ log] printf@262 0x1
12:36:22 [ log] printf@262 0x1
12:36:22 [ log] printf@262 0x37
12:36:22 [ puts]
DEBUG: Venc:495
DEBUG: DspChip:XM530
DEBUG: SnsIF:MIPI
DEBUG: Vstd:PAL[25fps]
DEBUG: ------------- SOIF37 2M 25fps init ok! (@20190909)----------------
DEBUG: sensor_init Ok!
DEBUG: cmos_fps_set F37 2M 25fps
DEBUG: cmos_fps_set F37 2M 25fps
DEBUG: Init over ~~~~~~~~
DEBUG: ProductType: 0x0
DEBUG: libfvideo: F37!
DEBUG: isp_sample end!
DEBUG: imageStyle XM!
12:36:22 [ sdk] ViChnConfig@120 ViChn = 0, enNorm = 0, enSize = 14
12:36:22 [ sdk] COMM_VENC_Start@171 VencChn = 0,enType = 96,enNorm = 0,enSize = 14,enRcMode = 0
12:36:22 [ sdk] COMM_SYS_GetPicSize@148 enNorm = 0,enPicSize = 14
12:36:22 [ puts] XM_MPI_ISP_MemInit OK...
12:36:22 [root_med] RootMediaSupplier_new@10 new RootMediaSupplier(NAL)
12:36:22 [root_med] RootMediaSupplier_new@10 new RootMediaSupplier(MJPEG)
12:36:22 [ evhttp] new_http_server@288 HTTP server started on 0.0.0.0:80
12:36:22 [root_med] RootMediaSupplier_new@10 new RootMediaSupplier(MP4)
12:36:22 [root_med] RootMediaSupplier_new@10 new RootMediaSupplier(MP4A)
12:36:22 [ rtsp] rtsp_init@153 RTSP server started on port 554
12:36:22 [ sdk] sdk_fps_by_stream@725 sdk_fps_by_stream(0)
12:36:22 [ sdk] sdk_secsInGop_by_stream@738 sdk_secsInGop_by_stream(0)
12:36:22 [ sdk] sdk_secsInGop_by_stream@738 sdk_secsInGop_by_stream(0)
DEBUG: black and white
DEBUG: EShutter 1/1
DEBUG: color
^C12:36:23 [ log] printf@262 Interrupt signal received
12:36:23 [root_med] RootMediaSupplier_drop@37 drop RootMediaSupplier(MP4)
12:36:23 [root_med] RootMediaSupplier_drop@37 drop RootMediaSupplier(MP4A)
12:36:23 [root_med] RootMediaSupplier_drop@37 drop RootMediaSupplier(NAL)
12:36:23 [root_med] RootMediaSupplier_drop@37 drop RootMediaSupplier(MJPEG)
12:36:23 [ sdk] sdk_dealloc_static_bufs@708 sdk_dealloc_static_bufs()
12:36:23 [watchdog] watchdog_stop@126 Watchdog closed
12:36:23 [ main] main@202 Shutdown main thread
Please try new ad-hoc version to test different addresses ipctool.gz
root@openipc-xm530:~# ./ipctool
---
board:
vendor: Xiongmai
version: 2.1.11.14
cloudId: fdsfdsf
snsType: 55
chip:
vendor: Xiongmai
model: XM530
ethernet:
mac: "sfsf"
rom:
- type: nor
block: 64K
partitions:
- name: boot
size: 0x40000
sha1: 821bac0f
contains:
- name: xmcrypto
offset: 0x2fc00
- name: uboot-env
offset: 0x30000
- name: env
size: 0x10000
sha1: afd8fab3
- name: kernel
size: 0x200000
sha1: a930524b
- name: rootfs
size: 0x500000
path: /,squashfs
sha1: 22c1d611
- name: rootfs_data
size: 0xb0000
path: /overlay,jffs2,rw
size: 8M
ram:
total: 64M
media: 32M
firmware:
kernel: "3.10.103+ (SMP Sun Nov 14 17:10:22 UTC 2021)"
toolchain: gcc version 7.5.0 (Buildroot -geac3d7b)
sensors:
- vendor: Silicon Optronics
model: JXF37
control:
bus: 0
type: i2c
addr: 0x40
Hello!
Using openipc 2.1 firmware for xm530. ipctool does not detect any sensor. Majestic only works in hls h265 mode, mp4, jpg, rtsp does not work... Only some i2c_write timeout is shown in the kernel log.
This is the setting file from the original firmware:
Can I provide some more info from /proc/* ?