1. helper

Here are lists of currently available commands, including system commands and user commands. Some of the command might not be well supported at moment, run help to see what commands are supported at moment, for extra commands please either refer to the source code or add by yourself.

1.1. cli list

  • System commands

name

help

help

print this

p

print memory

m

modify memory

cho

echo for command

xit

close CLI

evname

print device name

ysver

system version

eboot

reboot system

oweroff

poweroff system

ime

system time

ta

system ota

s

thread dump

  • User command

name

help

test_trng

Test TRNG

tcpc

create a tcpc for in a new task

ipc

iperf TCP client

ips

iperf TCP server

ipu

iperf UDP client

psm_set

psm set

psm_unset

psm unset

psm_get

psm get

psm_dump

psm dump

psm_erase

psm dump

amr

amr encode test

test_sdh

test SDH based on fatfs

http

http client download test

mjpeg_start

start mjpeg tasks

msg_set

message set

msg_get

message get

msg_dump

message dump

msg_reset

erase all message regions

msg_set_t1

message set test 1

rf_dump

rf dump

wifi_ap_start

start AP mode

wifi_scan

wifi scan

wifi_mon

wifi monitor

wifi_raw_send: wifi

raw send test

wifi_sta_disconnect

wifi station disconnect

wifi_sta_connect

wifi station connect

airkiss

airkiss

rc_fix_en

wifi rate control fixed rate enable

rc_fix_dis

wifi rate control fixed rate diable

wifi_capcode

capcode utils, wifi_capcode [cap_in] [cap_out]

blfdt

blfdt

tc_uart

bl test uart

audio_play_ram

play sound fm ram

audio_config_es8311

config ES831

audio_mp3

play sou mp3

audio_test

play test

audio_play

audio play

1.2. Common commands

  • View all commands

    Press TAB or type help to view:

    # help

  • Config wifi with specified ssid and passwd(default value will be used after reboot)

    Example: use SSID: bl_wifi_005 and password: 123456789

    # wifi_sta_connect bl_wifi_005 123456789

  • Set default ssid and passwd for wifi

    Example: use SSID: bl_wifi_005 and password: 123456789

    # psm_set conf_ap_ssid bl_wifi_005

    # psm_set conf_ap_psk 123456789

  • Start AP

    Use wifi_ap_start to start AP,you have to run psm_erase to erase STA related config information and reboot. The default AP SSID is BL60X_uAP_ suffixed with HEX code of the last 3 bytes of MAC address, the password will be bouffalolab

  • Reboot system

    # reboot

  • Audio recoding and playing

    This module requires SD support, and it only supports pcm format at moment

    • config sample rate

      # audio_config 11p025

      If no parameter is provided, a default of 16Khz will be used, the supported sample rates are: 8k, 16k, 24k, 32k, 48k, 11p025, 22p05, 44p1 Sample rate with decimal is represented with p as decimal point. ex, 11.025khz is represented as 11p025

    • recoding

      # audio_record test.pcm

      If no parameter is provided, a default record.pcm will be saved under the root of SD card.

      The default recording time will be 10s

    • playing

      # audio_play test.pcm

      If no parameter is provided, it will try to plya record.pcm under the root of SD card.

  • Image transfer

    Use mjpeg_start command to start image transfer related tasks.

  • Save image to SD card

    This module requires SD support, and it only supports jpeg format at moment

    • config quality of mjpeg images

      # mjpegsd_config 50

      currently support 6 quality settings: 5, 10, 25, 50, 75, 100

    • Start to save images

      # mjpegsd_start

      default to save stream at 50FPS

    • NOTE

      • the command above will save 50 images files under SD root as: 0.jpeg, 1.jpeg, …, 49.jpeg

  • Save AVI to SD card

    This module requires SD support, and it only supports AVI format at moment

    • config quality of mjpeg images

      # avisd_config 50 bl_avi_q50.avi

      currently support 6 quality settings: 5, 10, 25, 50, 75, 100

    • Start saving avi

      # avisd_start

      Default to save at 750FPS

    • NOTE

      • the command above will create a file called “bl_avi_q50.avi” under SD root

      • it is recommanded to set the allocation unit size to be “64KB”, and filesystem to be FAT32 while formatting

      • a reboot is needed if quality has to be modified after avisd\_start

      • psram, camera are needed for this module.

  • Share WIFI through QR code

    This module enables a connection to WIFI throuhg QR code

    • start

      qrcode_connect_wifi

      the camera will initilize and scan for QR code

    • NOTE

      • QR code information will be printed out once it has been recoginized, if it is not a valid WIFI hotspot, the

        module will carry on with QR scanning

      • Support UTF-8 encoded Chinese SSID

      • Support open WIFI

      • psram, camera are needed for this module.