Custom Default Feature of Serial Communication App
For example, if you create firmware that changes the baud rate from 115200bps to 9600bps, you can use it at 9600bps from the start.
Configuration Procedure
1. Apply Settings
Change the settings in Interactive Mode and press S
to save.
2. Download Settings
Prepare software that can download data using the xmodem protocol.
While still in Interactive Mode (before selecting items), request xmodem download.
In TeraTerm, perform the following operations:
- Select
File > Transfer > XMODEM > Receive...
- Choose
Option > Checksum, Binary
- Specify file name (e.g.,
conf.bin
) - Press
Open
You can use lrzsz
on macOS or Linux.
lrx --binary --xmodem /path/to/conf.bin
Usually, enter Interactive Mode with
screen
, then pressCtrl+A
and execute:exec !! lrx -b -X /path/to/conf.bin
If the download succeeds, a 128-byte file is generated (may be smaller depending on xmodem implementation).
3. Creating Custom Binary
Concatenate the downloaded file to the end of the firmware binary file to create a custom binary.
Use command line tools or general file concatenation tools for concatenation.
Example
Example assuming downloaded xmodem file is conf.bin
, original binary file is App_Uart_BLUE_L1305_V1-4-X.bin
, and custom binary to create is App_Uart_custom_V1-4-X.bin
.
【Windows】
copy App_Uart_BLUE_L1305_V1-4-X.bin App_Uart_custom_V1-4-X.bin
type conf.bin >> App_Uart_custom_V1-4-X.bin
【macOS / Linux】
cat App_Uart_BLUE_L1305_V1-4-X.bin conf.bin > App_Uart_custom_V1-4-X.bin
4. Writing Custom Binary
Write the concatenated custom binary to TWELITE.
When entering Interactive Mode after writing custom binary, C-
is displayed at the end of the first line.
--- CONFIG/TWE UART APP V1-04-2/SID=0x81001f1c/LID=0x78 C- ---
When overwriting settings from Interactive Mode and saving to custom binary, CE
is displayed instead of C-
.
--- CONFIG/TWE UART APP V1-04-2/SID=0x81001f1c/LID=0x78 CE ---