39
SWRS225B – FEBRUARY 2019 – REVISED MARCH 2020
Product Folder Links:
Detailed Description
Copyright © 2019–2020, Texas Instruments Incorporated
6.6
Hostless Mode
The SimpleLink™ Wi-Fi
®
CC3135MOD device incorporates a scripting ability that enables offloading of
simple tasks from the host processor. Using simple and conditional scripts, repetitive tasks can be
handled internally, which allows the host processor to remain in a low-power state. In some cases where
the scripter is being used to send packets, it reduces code footprint and memory consumption. The
if-this-
then-that
style conditioning can include anything from GPIO toggling to transmitting packets.
The conditional scripting abilities can be divided into conditions and actions. The conditions define when to
trigger actions. Only one action can be defined per condition, but multiple instances of the same condition
may be used, so in effect multiple actions can be defined for a single condition. In total, 16 condition and
action pairs can be defined. The conditions can be simple, or complex using sub-conditions (using a
combinatorial AND condition between them). The actions are divided into two types, those that can occur
during runtime and those that can occur only during the initialization phase.
The following actions can only be performed when triggered by the pre-initialization condition:
•
Set roles AP, station, P2P, and Tag modes
•
Delete all stored profiles
•
Set connection policy
•
Hardware GPIO indication allows an I/O to be driven directly from the WLAN core hardware to indicate
internal signaling
The following actions may be activated during runtime:
•
Send transceiver packet
•
Send UDP packet
•
Send TCP packet
•
Increment counter increments one of the user counters by 1
•
Set counter allows setting a specific value to a counter
•
Timer control
•
Set GPIO allows GPIO output from the device using the internal networking core
•
Enter Hibernate state
NOTE
Consider the following limitations:
•
Timing cannot be ensured when using the network scripter because some variable
latency will apply depending on the utilization of the networking core.
•
The scripter is limited to 16 pairs of conditions and reactions.
•
Both timers and counters are limited to 8 instances each. Timers are limited to a
resolution of 1 second. Counters are 32 bits wide.
•
Packet length is limited to the size of one packet and the number of possible packet
tokens is limited to 8.