DS1202
This is a legacy device. The following information is provided as it was documented originally, albeit with some corrections and changes for clarity and style.
Introduction
The DS1202 is a miniature Tibbo BASIC/C-programmable controller designed primarily for serial-over-IP and serial control applications.
The DS1202 features a multi-channel serial port. The device has a single DB9M connector and is priced as a single-port product, yet it packs four independent serial channels. Have no use for those DSR and DTR lines? Turn them into RX and TX of an additional serial channel. Don't want CTS and RTS either? That's one more channel! In total, there are 15 different configurations to choose from.
The DS1202 is fully supported by Tibbo IDE (TIDE) and a dedicated DS1202 platform that covers all hardware facilities of the device. This product ships preloaded with a fully functional serial-over-IP application. Written in Tibbo BASIC, the application is compatible with the Tibbo Device Server Toolkit (TDST) software suite, comes with full source codes, and can be modified by the user.
Hardware Features
- Superior upgrade to the DS203
- Based on the EM1202 embedded module
- 100BaseT auto-MDIX Ethernet port
- Up to 3.5 serial channels on a single RS232 connector:
- Baudrates of up to 921,600bps
- None/even/odd/mark/space parity modes
- 7/8 bits/character modes
- Optional flow control
- Flexible mapping with 15 different options, such as:
- A single channel: RX, TX, CTS, RTS, DSR, and DTR lines;
- 3.5 channels: RX, TX, RX2, TX2, RX3, TX3, and RX4 lines.
- 1,024KB flash memory for firmware, application, and data storage
- 2KB EEPROM for data storage
- Six LEDs:
- Green and red status LEDs on top of the device
- Green and red status LEDs on the RJ45 jack
- Link and speed Ethernet status LEDs on the RJ45 jack
- Software-controlled onboard PLL to select the clock frequency of the device:
- 11.0592MHz with PLL off
- 88.4736MHz with PLL on
- Supply voltage range: 10V ~ 24V (12V nominal)
- Dimensions: 60x47x30mm
- Firmware and Tibbo BASIC/C application are upgradeable through the serial port or network
- Tibbo BASIC/C application can be debugged through the network and no additional debugging hardware, such as in-circuit emulator, is required
- Also available as the EM1202EV (board without housing)
Programming Features
The DS1202 runs Tibbo OS (TiOS). The following is a list of the features supported by its programming platform:
- Objects:
- button — monitors the setup button
- fd — manages flash memory file system and direct sector access
- io — handles I/O lines, ports, and interrupts
- net — controls the Ethernet port
- pat — "plays" patterns on green and red status LEDs
- ppp — provides access to the Internet over a serial modem (GPRS, POTS, etc.)
- pppoe — provides access to the Internet over an ADSL modem
- romfile — facilitates access to resource files (fixed data)
- ser — in charge of serial channels
- sock — socket communications (up to 16 UDP, TCP, and HTTP sessions)
- ssi — implements up to four serial synchronous interface (SSI) channels, supports SPI, I²C, clock/data, etc.
- stor — provides access to the EEPROM
- sys — in charge of general device functionality
- Variable Types: Byte, char, integer (word), short, dword, long, real, string, plus user-defined arrays and structures
- Function Groups: 27 string functions, eight date/time conversion functions, encryption/hash calculation functions (AES128, RC4, MD5, SHA-1), and more