RK-WI.232EUR-R Radiotronix, RK-WI.232EUR-R Datasheet - Page 24

RF Modules & Development Tools DEVELOPMENT KIT

RK-WI.232EUR-R

Manufacturer Part Number
RK-WI.232EUR-R
Description
RF Modules & Development Tools DEVELOPMENT KIT
Manufacturer
Radiotronix
Datasheet

Specifications of RK-WI.232EUR-R

Silicon Manufacturer
Radiotronix
Silicon Core Number
WI.232EUR-R
Kit Application Type
Wireless Connectivity
Application Sub Type
Embedded Radio Module
Kit Contents
2x Brds/Mod/Ant, CD, Cable, Docs, Batt
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
RK-WI232EUR-R
int EscapeString(char *src, char src_len, char *dest)
{
}
Figure 11: Command Conversion Code
9.3.
Writing to a volatile register is nearly instantaneous. Writing to a non-volatile register, however,
takes typically 16 ms. Because the packet size can vary based on the need for encoding, there
are two possible packet structures. The following tables show the byte sequences for writing a
register in each case.
WARNING:
the register write. Loss of important configuration information could occur if the unit loses power
during a non-volatile write cycle.
Table 9, Write Register Command, value to be written is less than 128 (0x80).
Wi.232EUR User’s Manual
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
// The following function copies and encodes the first
// src_len characters from *src into *dest.
// encoding is necessary for Wi.232 command formats.
// The resulting string is null terminated.
// of this string is the function return value.
// ---------------------------------------------------
char src_idx, dest_idx;
// Save space for the command header and size bytes
// ------------------------------------------------
dest_idx = 2;
// Loop through source string and copy/encode
// ------------------------------------------
for (src_idx = 0; src_idx < src_len; src_idx++)
{
}/*for*/
// Add null terminator
// -------------------
dest[dest_idx] = 0;
// Add command header
// ------------------
dest[0] = 0xFF;
dest[1] = dest_idx – 2;
// Return escape string size
// -------------------------
return dest_idx;
Header
Byte 0
0xFF
if (src[src_idx] > 127)
{
}/*if*/
dest[dest_idx++] = (src[src_idx] & 0x7F);
dest[dest_idx++] = 0xFE;
Writing to Registers
Be sure that the module is properly powered and remains powered for the duration of
Byte 1
Size
0x02
0
Register
Byte 2
Register
© 2003-2007 Radiotronix Inc.
0
Value
Byte 3
Value
This
The size
23

Related parts for RK-WI.232EUR-R