RFXCOM RFXtrx433 Spezifikationen Seite 85

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 95
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 84
WifiCtrl Reference Card
Communication
WifiCtrl can be controlled by simple ascii based commands via USB,
WLAN, SPI and USART. Default communication port is USB
(virtual serial port) with 115 200 baud. Each port is buffered with a
256 byte FIFO.
Note: All commands are written in lower case.
There are three mechanism to detect commands or data packages in
a data stream. Data is separated and processed every..
set flush size X X bytes (default 80)
set flush time X X µs with no data reception
(default 2500 µs)
set separator X occurrence of char ’X’ (default \0’)
These mechanism can be enabled or disabled by sending 0 or off as
a parameter. At least one mechanism must be active!
e.g. set separator off, set flush time 0
WifiCtrl will acknowledge each command and print warnings. Every
message is finished by \r\n”.
IO-Control
IO-Pins of the extension port are tri-state and can be set to 0, 1 or
high-impedance.
set portX Y Z X = port (A,B,C,D)
set portXY Z Y = pin (0..7)
Z = level (0..1)
get portX Y returns ’0’ or ’1’, pin has high-impedance
Note: Interface commands will overwrite IO-settings and disable
the corresponding pins.
Interfaces
WifiCtrl has three configurable USART and one SPI, each capable
of either processing commands or being connected to another
interface. Baud rate error must be regarded, when opening a
USART. SPI frequency is 24 MHz/prescaler.
Note: SPI is shared with the onboard 433 Mhz transceiver, causing
traffic during power-up and all 433 Mhz related send-commands.
set usartXY Z X = port (C,D)
Y = number (0..1)
Z = baud rate (300..2 000 000 baud)
set usartXY close close USART and release IO pins
get usartXY returns connection state and baud rate
set spi X Y X = mode (SLAVE, MASTER)
Y = prescaler (2,4,8,16,32,64,128)
set spi close close SPI and release IO pins
get spi returns connection state and prescaler
Send
The send-command can be used to send data to the on-board
interfaces or the 433 Mhz ISM band.
Send to on-board interfaces:
send X Y X = interface (usb, wlan, usart[d0,c0,c1], spi)
Y = data
Send to 433 Mhz:
send he XY send HomeEasy EU
send heuk XY send HomeEasy UK simple
X = format (0x = hex, 0b = bin, ”= normal)
Y = data in selected format
send it XY send Intertechno (HX2262)
X = format (0x = hex, 0b = bin, ”= normal)
Y = data in selected format
Examples: send usartd0 hello world, send he 0x3FAA
Log
WifiCtrl has a 1024 byte (MiniCtrl 256 byte) FIFO buffer for storage
of received 433 Mhz messages.
get log get log data. Each entry is separated by \r\n
Note: FIFO data can be read only once!
set log 1 enable log (default)
set log 0 disable log, data is streamed to USB
Data format can be changed to hex, bin or normal. Normal will
display HX2262 messages in tristate (0,1,F), HomeEasy will be in
hex format.
A typical HX2262 message:
binary: IT 00:00:20 0000000000000101010101000
normal: IT 00:00:20 000000FFFFF0
hexadecimal: IT 00:00:20 0000AA8
no timestamp: IT 0000AA8
set format X X = format (hex, bin, nor)
set timestamp X X = enable timestamp (0..1)
set multiple packages X X = disable filtering of multiple
packages (not recommended)
Due to similarities between the Intertechno (HX2262) and the
HomeEasy UK simple protocol, only one type can be received
simultaneously. The user can activate the desired protocol.
set protocol X X = (it,uk) (default: it)
get protocol returns ”it” or ”he”
Connect
Connect commands allow the user to connect different interfaces, so
that they work as an interface converter. The following interfaces
can be connected:
- WLAN
- USB
- usart[d0,c0,c1]
- spi
During a connection, all data sent to Interface X is sent directly to
Y. The disconnect-command disconnects one Interface, the other is
still connected. To self-disconnect the Interface send: ”EXIT”
connect X Y X = interface (usb,wlan,usart[d0,c0,c1],spi)
disconnect X Y = interface (usb,wlan,usart[d0,c0,c1],spi)
Wlan
WifiCtrl uses the RN171 Wifi-Module from Roving Networks.
General settings can be set/viewed by:
set wlan set IP, network and password
get wlan display all wlan settings
For full access use the connect command and refer to the RN171
datasheet from Roving Networks. Follow these steps:
- type "connect usb wlan"
- configure the RN171 with its own commands
- type "EXIT" to disconnect USB from Wlan
- type "disconnect wlan" to disconnect Wlan from USB
Remember to enter command mode of the RN171 by sending ”$$$”.
All further commands of the RN171 are finished by <cr>.
Miscellaneous
set date dd.mm.yyyy d = day (1..31)
get date m = month (1..12)
y = year
set time hh:mm:ss h = hours (0..23)
get time m = minutes (0..59)
s = seconds (0..59)
get version returns firmware version
get id returns board id
All settings will be discarded during next power-up, unless they were
saved.
save save changes made by set-commands
reset reset settings to default.
Version 0.2, last updated 13.01.2013
Copyright
c
2013 Philip Parsch
Seitenansicht 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 94 95

Kommentare zu diesen Handbüchern

Keine Kommentare