LuckFox Pico Ultra W RV1106G3

Haven't tried out my LuckFox Pico Ultra W for over 1 month. Tonight, actually, today, is Canada's Thanksgiving of year 2024.

1. Preparation

1.1 lsusb

  • Step 1: hold the BOOT button
  • Step 2: then connect the USB cable
  • Step 3: release the BOOT button

LuckFox Pico Ultra W is quite picky at USB Type 3 cables.

1
2
➜  ~ lsusb | grep Fuzhou
Bus 009 Device 014: ID 2207:110c Fuzhou Rockchip Electronics Company

1.2 Flash firmware

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
➜  ultra-w-buildroot sudo upgrade_tool uf update.img 
[sudo] password for lvision:
Loading firmware...
Support Type:1106 FW Ver:0.0.00 FW Time:2024-07-08 21:16:43
Loader ver:1.01 Loader Time:2024-07-08 21:15:08
Start to upgrade firmware...
Download Boot Start
Download Boot Success
Wait For Maskrom Start
Wait For Maskrom Success
Test Device Start
Test Device Success
Check Chip Start
Check Chip Success
Get FlashInfo Start
Get FlashInfo Success
Prepare IDB Start
Prepare IDB Success
Download IDB Start
Download IDB Success
Download Firmware Start
Download Image... (100%)
Download Firmware Success
Upgrade firmware ok.
➜ ultra-w-buildroot

1.3 Wired Connection MAC Address Keeps Varying. How?

Please add the following script:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
➜  ~ cat /etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: false
addresses:
- 192.168.1.122/24 # Replace with your desired static IP address and subnet mask
routes:
- to: default
via: 192.168.1.1 # Replace with your gateway IP address
nameservers:
addresses:
- 8.8.8.8 # Replace with your DNS server IP addresses
- 8.8.4.4
macaddress: 72:a4:45:da:3a:e6
➜ ~

and then do sudo netplan apply.

1.4 ssh Into LuckFox Pico Ultra W

  • username: root
  • password: luckfox
Luckfox Pico Ultra W CPUInfo Luckfox Pico Ultra W MemInfo
Luckfox Pico Ultra W CPUInfo Luckfox Pico Ultra W MemInfo

2. Luckfox Pico Ultra W CSI Camera

2.1 Connection Of CSI Camera

For my LuckFox Pico Ultra W, I need to follow the following citation: When connecting the camera to LuckFox Pico Ultra development boards, ensure that the metal side of the camera ribbon cable faces the chip on the development board. (Refer to CSI Camera)

v4l2-ctl --list-devices and rkipc.ini

2.2 Content of rkipc.ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[root@luckfox data]# cat rkipc.ini 
[audio.0]
enable = 1
card_name = hw:0,0
encode_type = G711A
format = S16
sample_rate = 8000
channels = 2
frame_size = 1152
bit_rate = 16000
input = mic_in
volume = 50
enable_aed = 0
enable_bcd = 0
enable_vqe = 1
vqe_cfg = /oem/usr/share/vqefiles/config_aivqe.json
rt_audio_period_size = 1024

[video.source]
enable_aiq = 1
enable_vo = 0
vo_dev_id = 3 ; 0 is hdmi, 3 is mipi
enable_ivs = 1
enable_jpeg = 1
enable_venc_0 = 1
enable_venc_1 = 1
enable_venc_2 = 0
enable_npu = 1
npu_fps = 10
buffer_line = 1296
enable_rtsp = 1
enable_rtmp = 0
rotation = 0 ; available value:0 90 180 270

[video.0]
buffer_size = 1492992 ; w * h / 2
buffer_count = 4
enable_refer_buffer_share = 1
stream_type = mainStream
video_type = compositeStream
max_width = 2304
max_height = 1296
width = 2304
height = 1296
rc_mode = CBR
rc_quality = high
src_frame_rate_den = 1
src_frame_rate_num = 25
dst_frame_rate_den = 1
dst_frame_rate_num = 25
target_rate = 0
mid_rate = 1024
max_rate = 2048
min_rate = 0
output_data_type = H.265
smart = close
h264_profile = high
gop = 50
smartp_viridrlen = 25
gop_mode = normalP
stream_smooth = 50
enable_motion_deblur = 1
enable_motion_static_switch = 0
frame_min_i_qp = 26
frame_min_qp = 28
frame_max_i_qp = 51
frame_max_qp = 51
scalinglist = 0
enable_debreath_effect = 0
debreath_effect_strength = 16

......
......
......
[roi.4]
stream_type = thirdStream
id = 1
enabled = 0
name = test
position_x = 0
position_y = 0
width = 0
height = 0
quality_level = 3

[roi.5]
stream_type = thirdStream
id = 2
enabled = 0
name = test
position_x = 0
position_y = 0
width = 0
height = 0
quality_level = 3

[region_clip.1]
enabled = 0
position_x = 0
position_y = 0
width = 640
height = 480

[network.ntp]
enable = 1
refresh_time_s = 60
ntp_server = 119.28.183.184
[root@luckfox data]#

2.3 luckfox-config

Luckfox Pico Ultra W luckfox-config Luckfox Pico Ultra W About
Luckfox Pico Ultra W luckfox-config Luckfox Pico Ultra W About
Luckfox Pico Ultra W Enable CSI Luckfox Pico Ultra W CSI Enabled
Luckfox Pico Ultra W Enable CSI Luckfox Pico Ultra W CSI Enabled

2.4 Snapshot of Streamed Video Over RTSP

Snapshot