Programmable Hardware Manual WS1102 © 2021 Tibbo Technology Inc
Table of Contents 2 WS1102 Programmable Wireless RS232/422/485 Controller 3 Power Arrangement .................................................................................................................. 7 Serial Port .................................................................................................................................. 7 Definition of RS422 and RS485 Modes ..........................................................................................
WS1102 Programmable Wireless RS232/422/485 Controller 3 WS1102 Programmable Wireless RS232/422/485 Controller Introduction The WS1102 is a compact Tibbo BASIC/C-programmable wireless controller equipped with an RS232/422/485 serial port. The product targets serial-over-IP (SoI) and serial control applications. This cloud-native device incorporates Wi-Fi (802.11a/b/g/n over 2.
WS1102 Programmable Wireless RS232/422/485 Controller 4 a vendor-agnostic product, it can communicate with Microsoft Azure, Google Cloud, Amazon Web Services (AWS), and virtually any other cloud services provider. There are eight LEDs on the device's front: green and red main status LEDs, a yellow access point association (link) LED, and five blue LEDs, which can be used for Wi-Fi signal strength indication or other purposes. A buzzer is provided as well.
WS1102 Programmable Wireless RS232/422/485 Controller 5 § Built-in buzzer § RTC (no backup battery) § 58KB SRAM for Tibbo BASIC/C variables and data § 4MB flash for code storage o System files and TiOS occupy a combined 2,408KB o 1,688KB available for storing up to two app binaries § Additional 4MB flash for the hardened fault-tolerant file system § 2048-byte EEPROM for data storage § Eight LEDs o Green and red main status LEDs o Yellow access point association (link) LED o Five blue LEDs (for Wi-Fi signa
WS1102 Programmable Wireless RS232/422/485 Controller 6 with the Chrome, Chromium, Edge, and Opera web browsers) to connect to the WS1102's console. Configuration properties can also be read and set through Tibbo BASIC/C code. 3. TLS is supported on a single outgoing TCP connection. 4. To enable Wi-Fi debugging, you must enable autoconnect — automatic association with a designated Wi-Fi network. This can be accomplished via the integrated BLE console or in code. 5.
WS1102 Programmable Wireless RS232/422/485 Controller 7 o sys — in charge of general device functionality(1) o wln — handles the Wi-Fi interface1 · Function groups: String functions, trigonometric functions, date/time conversion functions, encryption/hash calculation functions, and more · Variable Types: Byte, char, integer (word), short, dword, long, real, and string, as well as user- defined arrays and structures Notes: 1.
WS1102 Programmable Wireless RS232/422/485 Controller 8 RS232 RS422*** RS485*** #1 RTS– (output) #2 RX (input) RX– (input) RX– (input) #3 TX (output) TX+ (output) TX+ (output) #4 DTR (output)* TX– (output) TX– (output) #5 Ground Ground Ground #6 DSR (input)** RX+ (input) RX+ (input) #7 RTS (output) RTS+ (output) #8 CTS (input) CTS+ (input) #9 CTS– (input) * When serial debu
WS1102 Programmable Wireless RS232/422/485 Controller 9 Use the ssi. object (see the TIDE, TiOS, Tibbo BASIC, and Tibbo C Manual) to communicate with the MCP23008. To select the desired serial port mode, set the state of the I/O expander's lines GP5 and GP6 as shown in the table below (these lines are not to be confused with GPIO5 and GPIO6, which are the CPU lines driving the I²C interface of the I/O expander). Both GP5 and GP6 should be configured as outputs.
WS1102 Programmable Wireless RS232/422/485 Controller 10 In the RS485 mode, which is half-duplex, the PL_IO_NUM_3_INT1 GPIO line acts as the direction control line. The line must be configured as an output.
WS1102 Programmable Wireless RS232/422/485 Controller 11 Unified flash memory Program flash memory (available app/disk space) (available app space) --- 4MB (4,048KB) Data flash memory EEPROM (space occupied by the SCS) 4MB (4,048KB) 2KB (28 bytes) On the advice of one of our customers, we are giving you the following reminder: Like all other EEPROMs on the market, EEPROM ICs used in Tibbo devices allow for a limited number of write cycles. As the Wikipedia article on EEPROM states, the EEPROM "..
WS1102 Programmable Wireless RS232/422/485 Controller 12 Built-in Wi-Fi and BLE The WS1102 features built-in Wi-Fi and BLE interfaces. These interfaces are accessible via wln. and bt. objects. The expanded wln. object supports automatic association with a designated network, wireless debugging, and Transport Layer Security (TLS) 1.2 encryption. LED Bar The WS1102 features an LED bar comprised of five blue LEDs. The bar can be used for signal strength indication and other purposes.
WS1102 Programmable Wireless RS232/422/485 Controller 13 Use the ssi. object (see the TIDE, TiOS, Tibbo BASIC, and Tibbo C Manual) to communicate with the MCP23008. To turn an LED on, configure the corresponding line of the IC as an output and set it LOW. Refer to the MCP23008 datasheet for information on how to achieve this. The WS1102 is fully supported by CODY, Tibbo's project code wizard. CODY can generate the scaffolding for your WS1102 projects, including the code to control the LED bar.
WS1102 Programmable Wireless RS232/422/485 Controller 14 The wall mounting plate can be used to mount the WS1102 on a wall in a semi-permanent or permanent manner. The diagram below shows the installation footprint.
WS1102 Programmable Wireless RS232/422/485 Controller 15 Status LEDs (LED Control Lines) Every Tibbo device has two status LEDs — green and yellow — that indicate various device modes and states. We refer to these LEDs as "Status Green" (SG) and "Status Red" (SR).
WS1102 Programmable Wireless RS232/422/485 Controller 16 Federal Communications Commission (FCC) Statement You are cautioned that changes or modifications not expressly approved by the part responsible for compliance could void the user’s authority to operate the equipment. This device complies with Part 15 of the FCC Rules.