Skip to main content

Expansion Board CAM126B-P-24

Navigation bar

The CAM126B-P-24 expansion board provides a rich set of interfaces, as shown below:

Expansion Board Interface Definition​

Photo

Installation​

alt text

  • Pressing down the black latch on the expansion board locks the FPC cable; lifting it releases the cable.

J1 24PIN FPC​

Photo

24-pin expansion interface information:​

24 PIN 0.5MM FPC connector

Caution

The SDIO voltage is 1.8V

Link: https://pan.baidu.com/s/1NyfRuSKcakxMJCZohiFl6A?pwd=fanc Extraction code: fanc Copy this content and open the Baidu Netdisk mobile app for a more convenient operation

pinDefinitionBall numberRV1126RV1126BPPin name CAM126B-P
1GND
2GND
3VCC5V0
4VCC5V0
5USB_HOST_DPY1USB_HOST_DP
6USB_HOST_DMY2USB_HOST_DM
7GND
8ADKEY_IN0E17SARADC_IN0
9GND
10WIFI_WAKE_HOSTA13GPIO1_D1GPIO3_B7SAI2_SDI1_M0/UART1_RX_M1/I2C5_SDA_M1/GPIO3_B7
11BT_RSTT18GPIO3_A5GPIO6_A1VI_CIF_D1_M0/CAN0_TXD_M1/SAI0_LRCK_M1/PWM1_CH1_M2/UART4_RX_M2/I2C3_SDA_M3/GPIO6_A1
12BT_WAKEP17GPIO3_A6GPIO6_A2VI_CIF_D2_M0/CAN1_RXD_M1/SAI0_SDO0_M1/PWM1_CH2_M2/UART5_tX_M2/I2C4_SCL_M1/GPIO6_A2
13BT_WAKE_HOSTR17GPIO3_A4GPIO6_A0VI_CIF_D0_M0/CAN0_RXD_M1/SAI0_SCLk_M1/PWM1_CH0_M2/UART4_TX_M2/I2C3_SCL_M3/GPIO6_A0
14WIFI_REG_ONB13GPIO1_D0GPIO3_B6SPI1_CSN1_M1/SAI2_MCLK_M0/SDMMC1_DETN/UART1_TX_M1/I2C5_SCL_M1/GPIO3_B6
15SDIO_D0B16GPIO1_B4GPIO3_A2SDMMC1_D0/I2C1_SCL_M1/GPIO3_A2
16SDIO_D1C16GPIO1_B5GPIO3_A3SDMMC1_D1/I2C1_SDA_M1/GPIO3_A3
17SDIO_D2D15GPIO1_B6GPIO3_A4SDMMC1_D2/GPIO3_A4
18SDIO_D3C15GPIO1_B7GPIO3_A5SDMMC1_D3/GPIO3_A5
19SDIO_CMDA16GPIO1_B3GPIO3_A1SDMMC1_CMD/GPIO3_A1
20SDIO_CLKD16GPIO1_B2GPIO3_A0SDMMC1_CLK/GPIO3_A0
21UART0_RTSNB15GPIO1_C0GPIO3_A6UART2_RTSN_M0/GPIO3_A6
22UART0_TXC14GPIO1_C3GPIO3_B1SAI2_SDI2_M0/UART2_TX_M0/GPIO3_B1
23UART0_RXD14GPIO1_C2GPIO3_B0UART2_RX_M0/GPIO3_B0
24UART0_CTSNA15GPIO1_C1GPIO3_A7UART2_CTSN_M0/GPIO3_A7
SourceSchematic1126-1126BP
24pin.xlsx
SchematicSchematicDatasheet 1126B-p CAM126B-P-24-V1.0-20261013-原理图.pdf

J2 TTL​

Information

When using TTL, make sure the DIP switch is set to 2/4 to enable it!

When using TTL, make sure the DIP switch is set to 2/4 to enable it!

When using TTL, make sure the DIP switch is set to 2/4 to enable it!

Photo

Debug method reference 24PIN expansion TTL

The default interface of CAM126B-P is ttyS2, and the default baud rate is 9600

ttyS2 Serial Port Quick Reference​

ItemValue
Device node/dev/ttyS2
Controlleruart2 @ 0x21170000 (alias serial2 = &uart2)
Pin muxuart2m0 (func 4)
TX24PIN-22 UART0_TX = GPIO3_B1 (uart2_tx_m0)
RX24PIN-23 UART0_RX = GPIO3_B0 (uart2_rx_m0)
RTS / CTS24PIN-21 = GPIO3_A6 (Bluetooth by default) / 24PIN-24 = GPIO3_A7
Default baud rate9600

TTL shares ttyS2 with Bluetooth: comment out start_bt before using TTL​

The TTL debug port and the Bluetooth module share the same UART (/dev/ttyS2); only the baud rate and purpose differ:

PurposeDevice nodeBaud rateS01 DIP
TTL debug/dev/ttyS296002 / 4
Bluetooth/dev/ttyS21500000 (hardware flow control)1 / 3

At boot, start_wifibt() in /usr/bin/wifibt-init.sh runs start_bt first, which attaches hciattach and starts a background guardian loop (init_bt → do_init_bt) that keeps retrying. When the DIP switch is in the TTL position, the module side of the UART is disconnected, so hciattach always fails and the loop keeps reopening ttyS2, interrupting or corrupting the output on the TTL port (including the login prompt).

Therefore, before using TTL, comment out start_bt in the start | restart branch:

cp -a /usr/bin/wifibt-init.sh /usr/bin/wifibt-init.sh.bak
sed -i '/Starting Wi-Fi\/BT/,/start_wifi/ s/start_bt$/# start_bt/' /usr/bin/wifibt-init.sh
sed -n '/start | restart)/,/;;/p' /usr/bin/wifibt-init.sh # confirm start_bt is now # start_bt

After the change, boot only initializes Wi-Fi and no longer touches ttyS2. The wifibt-init.sh start_bt subcommand is still available, so when Bluetooth is needed (DIP 1 / 3) run it separately:

wifibt-init.sh start_bt
hciconfig -a # hci0 appears means attach succeeded

Corresponding SDK source and build-time method:

ItemContent
Source locationexternal/rkwifibt/scripts/wifibt-init.sh (installed as /usr/bin/wifibt-init.sh by post-wifibt.sh)
Manual changeSame as above: comment out start_bt in the start | restart branch of start_wifibt()
Build-time changeAdd RK_WIFIBT_BT_DAEMON_DISABLED=y to the board defconfig; device/rockchip/common/scripts/post-wifibt.sh then inserts return 0 into start_bt() after installation
How it takes effectRun ./build.sh wifibt and then repack the rootfs (./build.sh rootfs); no full rebuild needed
Tip

If you only change the script and not the config, /etc/init.d/S36wifibt-init.sh restart reruns the same start_wifibt(), so restarting the service is enough — no reboot required.

J3 USB​

Photo

Pin numberFunction descriptionReference color
1GNDBlack
2OTG_DPGreen/White
3OTG_DMWhite
4VCC5V0Red

J4 ADC Native Interface​

Photo

Pin numberFunction descriptionReference color
1GNDBlack (ADC function TBD)
2ADCRed (ADC function TBD)

J5 WIFI Antenna​

Information

When using Bluetooth, make sure the DIP switch is set to 1/3 to enable it!

When using Bluetooth, make sure the DIP switch is set to 1/3 to enable it!

When using Bluetooth, make sure the DIP switch is set to 1/3 to enable it!

Photo

  • Bluetooth / BT antenna - IPEX Gen 4

S01 DIP switch​

Photo

Pin numberFunction descriptionDescription
1UART RX WIFISet the DIP switch to 1 / 3 to enable the WIFI function
2UART RX OSet the DIP switch to 2 / 4 to enable the TTL function
3UART TX WIFISet the DIP switch to 1 / 3 to enable the WIFI function
4UART TX OSet the DIP switch to 2 / 4 to enable the TTL function

Schematic​

| Schematic | 1126-1126BP
24pin.xlsx
| Schematic | Schematic | Datasheet 1126B-p CAM126B-P-24-V1.0-20261013-原理图.pdf|

CAM126B-P can refer to the CAM126 wiring.

When the same 24PIN expansion board is connected to RV1126 (CAM126), the GPIOs, controllers, and device nodes differ from the 1126B-P. See RV1126 24PIN configuration.

AI Translation Notice

This page was translated into English by AI and is provided for reference only. The original document is written in Chinese. If there is any discrepancy, the Chinese version prevails.

本页英文内容由 AI 自动翻译生成,仅供参考;原文为中文,如有差异请以中文原文为准。

查看中文原文 / View the Chinese original →