Interactive Mode (Extremely Simple! Standard App)
This section explains functions specific to the Extremely Simple! Standard App (App_Twelite). For common features, please refer to the TWELITE APPS manual top page.
Interactive Mode cannot be used while TWELITE is sleeping.
Set the Mx
pin settings to Child Continuous Mode or Parent/Relay Mode.
Display Example
The following screen is displayed.
--- CONFIG/TWELITE APP V1-08-2/SID=0x8201001f/LID=0x78 ---
a: set Application ID (0x67720102)
i: set Device ID (--)
c: set Channels (18)
x: set Tx Power (03)
t: set mode4 sleep dur (1000ms)
y: set mode7 sleep dur (10s)
f: set mode3 fps (32)
z: set PWM HZ (1000,1000,1000,1000)
o: set Option Bits (0x00000000)
b: set UART baud (38400)
p: set UART parity (N)
---
S: save Configuration
R: reset to Defaults
Commands
Command Item | Default | Remarks | |
---|---|---|---|
a | Application ID | 0x67720102 | 32bit |
i | Logical Device ID | Auto | Child 1 -100 , Parent 121 , Relay 122 |
c | Frequency Channel | 18 | 11 -26 |
x | Transmission Output and Retry Count | 03 | |
Retry Count | 0 | 1 -9 times, 0 means default 2 times, F disables | |
Transmission Output | 3 | 0 -3 | |
t | Child Intermittent 1-second Mode Interval | 1000 | 100 -10000 ms |
y | Child Intermittent 10-second Mode Interval | 10 | 2 -10000 s |
f | Child Continuous 0.03-second Mode Cycle | 32 | 4 /8 /16 /32 times per second |
z | PWMx Frequency | 1000 | 1 -64000 Hz, individually set by comma separation |
o | Option Bits | 0x00000000 | Other detailed settings |
b | UART Alternative Baud Rate | 38400 | Enabled by BPS pin |
p | UART Parity | N | 8-( N /O /E )-1 |
Details of each command are shown below.
a
: Application ID
All devices communicating must share the same value. It logically separates networks.
i
: Logical Device ID
Set when it is necessary to identify multiple child devices.
Set any value from 1
to 100
for child devices, 121
for parent devices, and 122
for relay devices.
121
or 122
switches to parent or relay mode. In this case, Mx
pin settings are not required.In the Extremely Simple! Standard App, the initial value of Logical Device ID differs depending on the operation mode.
c
: Frequency Channel
All devices communicating must share the same value. It physically separates networks.
x
: Transmission Output and Retry Count
Specify the radio transmission output and the number of additional packet transmissions.
t
: Child Intermittent 1-second Mode Interval
Overrides the intermittent interval of the child intermittent 1-second mode from 1 second to another value. Unit is milliseconds.
Setting 0
disables periodic wakeup by timer. In this case, wakeup occurs on falling edge of DIx
but not on rising edge.
y
: Child Intermittent 10-second Mode Interval
Overrides the intermittent interval of the child intermittent 10-second mode from 10 seconds to another value. Unit is seconds.
Setting 0
disables periodic wakeup by timer. In this case, wakeup occurs on falling edge of DIx
but not on rising edge.
f
: Child Continuous 0.03-second Mode Cycle
Overrides the number of transmission requests per second from 32 times to 4
/8
/16
times. Retry count is not included.
z
: PWMx
Frequency
If one value is specified, it overrides the frequency of all PWM ports. If specified by comma separation, individual values for PWM1
to PWM4
can be overridden.
o
: Option Bits
Specify a 32bit number. Enables settings linked to each bit.
Target Bit | Setting Item | Initial | Transmission | Reception | Continuous | Intermittent |
---|---|---|---|---|---|---|
0x00000001 | Low Latency Mode | 0️⃣ | ✅ | ✅ | ✅ | |
0x00000002 | Disable Periodic Transmission | 0️⃣ | ✅ | ✅ | ||
0x00000004 | Disable Periodic Transmission and UART Output | 0️⃣ | ✅ | ✅ | ||
0x00000010 | Disable Transmission on AIx Change | 0️⃣ | ✅ | ✅ | ||
0x00000020 | Disable AIx Value | 0️⃣ | ✅ | ✅ | ✅ | |
0x00000040 | Change PWMx Calculation Formula | 0️⃣ | ✅ | ✅ | ✅ | |
0x00000100 | Transmit Only When Button Pressed | 0️⃣ | ✅ | ✅ | ✅ | |
0x00000800 | Disable Internal Pull-up of DIx | 0️⃣ | ✅ | ✅ | ✅ | |
0x00008000 | Add Relay Function to Child | 0️⃣ | ✅ | ✅ | ✅ | |
0x00001000 | Set Max Relay Steps to 2 for Child Relay | 0️⃣ | ✅ | ✅ | ✅ | |
0x00002000 | Set Max Relay Steps to 3 for Child Relay | 0️⃣ | ✅ | ✅ | ✅ | |
0x00010000 | Invert PWMx Waveform | 0️⃣ | ✅ | ✅ | ||
0x00020000 | Turn Off PWMx After Startup | 0️⃣ | ✅ | ✅ | ||
0x00080000 | Alternative Port Assignment | 0️⃣ | ✅ | ✅ | ✅ | ✅ |
0x00100000 | Turn Off DOx for 2 Seconds After Startup | 0️⃣ | ✅ | ✅ | ||
0x00400000 | Invert DOx Output | 0️⃣ | ✅ | ✅ | ✅ | |
0x00800000 | Disable Internal Pull-up of DOx | 0️⃣ | ✅ | ✅ | ✅ |
b
: UART Alternative Baud Rate
Overrides the alternative baud rate selected when the BPS
pin is connected to GND
at startup from 38400
bps.
Values can be selected from 9600
/19200
/38400
/57600
/115200
/230400
. Specifying other values may cause errors.
This setting is not applied when the BPS
pin is left open at startup. The baud rate is fixed at 115200
bps.
This is a specification to prevent situations where Interactive Mode becomes unusable due to baud rate changes.
p
: UART Parity
N
means no parity, O
means odd parity, and E
means even parity.
Data bits are fixed to 8, stop bits to 1. Hardware flow control cannot be set.
Details of Option Bits
Explanation of settings linked to each bit of the Option Bits value.
00000001
: Low Latency Mode
Low Latency Mode shortens the delay on the receiver side by quickly transmitting after detecting changes in DIx
.
Low Latency Mode Operation
In the initial state, there is a delay of about 30-70ms until DIx
is reflected on DOx
. Low Latency Mode shortens this delay to about 3-10ms by simplifying processing to avoid chattering and wireless packet interference.
- Falling edge detection uses interrupts
- After detection, no new detection occurs for about 100ms
- Rising edge detection uses periodic judgment
- Transmission occurs if 5 consecutive readings are High at 1ms intervals
- (Initially, transmission occurs if 5 consecutive readings are High at 4ms intervals)
- No transmission or retransmission delay is set at detection; the wireless packet is immediately sent
- Typical delays are about 3-5ms for falling edges and about 10ms for rising edges
- Actual delay varies due to transmission/reception failures, etc.
- In intermittent mode, the time from wakeup to transmission is also shortened
00000002
: Disable Periodic Transmission
Disables periodic transmission every 1 second in continuous mode for child devices.
00000004
: Disable Periodic Transmission and UART Output
For child devices: disables periodic transmission every 1 second in continuous mode and stops UART output of received data.
00000010
: Disable Transmission on AIx
Change
For child devices: disables transmission when AIx
input changes in continuous mode.
Since released AIx
ports report undefined values, connect them to VCC
when analog input is not used. This option allows omission of connection to VCC
.
00000020
: Disable AIx
Value
Sends packets treating unused ports as 0xFFFF
without using ADC measurement values.
00000040
: Change PWMx
Calculation Formula
By default, adjusted output for volume control is applied to PWMx
.
This option disables that and outputs full scale for inputs below 1.8V.
Duty Cycle Calculation Formula
Duty cycle \(duty\) can be expressed using input voltage \(V_{input}\) and power supply voltage \(V_{cc}\) as in (1).
When this option is enabled, (2) is applied instead.
Note that inputs above 2.0V are treated as unused.
00000100
: Transmit Only When Button Pressed
Continuously transmits packets when DIx
input is Low.
For example, used to remotely control a motor. The motor runs while the remote button is pressed and stops when the radio signal is lost.
Continuous Transmission Operation
- When any
DIx
is Low, transmits 32 times per second - Continues transmitting 32 times per second for 1 second after all
DIx
transitions to High - If no packet is received for 0.5 seconds after any
DOx
transitions to Low, allDOx
return to High.PWMx
is retained.
00000800
: Disable Internal Pull-up of DIx
Disables all internal pull-ups (about 50kΩ) of DIx
.
00008000
: Add Relay Function to Child
Adds relay function to child devices in continuous mode. Maximum relay steps is 1.
00001000
: Set Max Relay Steps to 2 for Child Relay
Changes maximum relay steps to 2 when 00008000
: Add Relay Function to Child is set.
00002000
: Set Max Relay Steps to 3 for Child Relay
Changes maximum relay steps to 3 when 00008000
: Add Relay Function to Child is set.
00010000
: Invert PWMx
Waveform
Inverts the output waveform of PWMx
.
When maximum value is input to AIx
, PWMx
becomes Low.
00020000
: Turn Off PWMx
After Startup
Sets PWMx
output to Low state after startup or reset.
PWMx
is High during about 1ms hardware initialization period after startup.00080000
: Alternative Port Assignment
Enables alternative port assignment.
Connecting transistors etc. to PWM2
/PWM3
may cause unstable operation (Details). Use this option in such cases.
Alternative Port Assignment Contents
- Change
PWMx
assignmentDI3
→PWM1
DI1
→PWM2
DI2
→PWM3
BPS
→PWM4
- Change
DIx
assignmentPWM1
→DI1
PWM4
→DI2
SDA
→DI3
DI4
→DI4
(no change)
- Change
BPS
assignmentSCL
→BPS
- Disable
SCL
/SDA
SCL
: noneSDA
: none
00100000
: Turn Off DOx
for 2 Seconds After Startup
Sets DOx
to Low state for 2 seconds after startup or reset.
You can light LEDs connected to DOx
at startup.
DOx
is High during about 1ms hardware initialization period after startup.00400000
: Invert DOx
Output
Inverts DOx
output.
Unlike the initial state, when one DI is Low level, the other DO is High level.
00800000
: Disable Internal Pull-up of DOx
Disables all internal pull-ups (about 50kΩ) of DOx
.