Skip navigation links

TiJOS Framework

See: Description

Packages 
Package Description
java.io
Input/Output support
java.lang
Core Java classes
java.lang.annotation
Basic support for annotations
java.math  
java.net
Network communication through TCP and UDP sockets or URLs.
java.text
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
java.util
Utilities
tijos.framework
Access to TiJOS framework
tijos.framework.appcenter
Application center class
tijos.framework.devicecenter
Device bus related classes, such as GPIO I2C, PWM, etc., can be used to develop the sensor which is not supported in the standard library
tijos.framework.eventcenter
Event center class, which deals with events from hardware peripherals, such as GPIO events
tijos.framework.networkcenter.dns
DNS client
tijos.framework.networkcenter.mqtt
MQTT3.1.1 client
tijos.framework.networkcenter.ntp
Network time protocol client class
tijos.framework.platform
System Settings related classes, like host name and other settings
tijos.framework.platform.lan
Local Area Network,LAN class
tijos.framework.platform.lpwan
Low Power Wide Area Network classes, such as: NB-IoT, LoRaWAN, etc
tijos.framework.platform.peripheral
Classes to access the peripherals on the development board, like keyboard, button, light, etc
tijos.framework.platform.wlan
WIFI class
tijos.framework.sensor.button
Button classes
tijos.framework.sensor.dht
DHT11(22) classes
tijos.framework.sensor.ds18b20
DS18B20 classes
tijos.framework.sensor.general
General Sensor classes
tijos.framework.sensor.hcsr
HCSR04(04+) classes
tijos.framework.sensor.mq
MQn classes
tijos.framework.sensor.vs1838b
VS1838B classes
tijos.framework.transducer.buzzer
Buzzer classse
tijos.framework.transducer.led
LED classes
tijos.framework.transducer.oled
OLED classes
tijos.framework.transducer.relay
Relay classes
tijos.framework.util
Utility
tijos.framework.util.base64
Utility classes for base64
tijos.framework.util.crc
Utility classes for CRC
tijos.framework.util.json
JSON-java suppport
tijos.framework.util.logging
Utility classes for logging
tijos.framework.util.text
Dot matrix font class

TiJOS JDK Overview

The TiJOS JDK includes two parts: the standard Java JDK and the TiJOS Framework, the standard Java JDK part is compatible with the Oracle standard Java JDK, and the standard Java code can be used directly on the TiJOS platform; The TiJOS Framework is mainly used to operate hardware peripherals and sensors, while also supporting the configuration of the platform itself, such as the network.

Standard Java core class support

The TiJOS JDK contains most of the commonly used Java base core classes, including java.lang, java.io, java.net, java.util, etc. The classes in these packages are the base of the entire JAVA JDK to meet the various application development requirements.

Given that TiJOS runs under the very limited resources of the MCU, the following Java features are not supported in the TiJOS JDK:

  1. Reflection: Unsupported
  2. Serialization : Unsupported
  3. Regular Expression : Unsupported, You can use string - related operation functions to achieve the corresponding functions
  4. Locale : Unsupported
  5. finalize: Do not execute code in an object's finalize method, which is not invoked

 

The TiJOS JDK supports core packages provided in the standard Java JDK, including

Standard Java PackageDescription
java.langthe basic classes of the Java language
java.ioIO Stream support, which contains all of the output stream classes
java.netNetwork classes
java.utilContains collections and various utility classes

 

java.lang Package Support

TiJOS JDK contains most of the classes of the standard java.lang package, but the reflection reletated methons are not supported, like ClassLoader, etc.

The following list only lists the standard Java classes and interfaces supported by the TiJOS JDK, and you can refer to the standard Java documentation for specific use.

Supported Class List

  • Boolean
  • Byte
  • Character
  • Class
  • Double
  • Enum
  • Float
  • Integer
  • Long
  • Math
  • Number
  • Object
  • Runtime
  • Short
  • String
  • StringBuffer
  • StringBuilder
  • System
  • Thread
  • Throwable
  • Void

java.io Package Support

TiJOS JDK contains most of the classes of the standard java.io package, but serialization is not supported.

The following list only lists the standard Java classes and interfaces supported by the TiJOS JDK, and you can refer to the standard Java documentation for specific use.

Supported Class List

  • BufferedInputStream
  • BufferedOutputStream
  • BufferedReader
  • BufferedWriter
  • ByteArrayInputStream
  • ByteArrayOutputStream
  • CharArrayReader
  • CharArrayWriter
  • DataInputStream
  • DataOutputStream
  • File
  • FileInputStream
  • FileOutputStream
  • FileReader
  • FileWriter
  • FilterInputStream
  • FilterOutputStream
  • FilterReader
  • FilterWriter
  • InputStream
  • InputStreamReader
  • LineNumberInputStream
  • LineNumberReader
  • OutputStream
  • OutputStreamWriter
  • PipedInputStream
  • PipedOutputStream
  • PipedReader
  • PipedWriter
  • PrintStream
  • PrintWriter
  • PushbackInputStream
  • PushbackReader
  • Reader
  • SequenceInputStream
  • StreamTokenizer
  • StringBufferInputStream
  • StringReader
  • StringWriter
  • Writer

java.net Package Support

TiJOS JDK contains standard java.net core package, including TCP, UDP, DNS network protocols related classes, like Socket and ServerSocket, DatagramSocket, URI, and so on. Proxy, HTTP, URL related classes are not include so far.

The following list only lists the standard Java classes and interfaces supported by the TiJOS JDK, and you can refer to the standard Java documentation for specific use.

Supported Class List

  • DatagramPacket
  • DatagramSocket
  • Inet4Address
  • InetAddress
  • InetSocketAddress
  • RemoteSocket
  • ServerSocket
  • Socket
  • SocketAddress
  • URI

java.util Package Support

The TiJOS JDK supports most of the classes in java.util, including collections, clocks, and so on, which do not support functions such as Locale, TimeZone, etc.

The following list only lists the standard Java classes and interfaces supported by the TiJOS JDK, and you can refer to the standard Java documentation for specific use.

Supported Class List

  • AbstractCollection
  • AbstractList
  • AbstractMap
  • AbstractMap.SimpleEntry
  • AbstractMap.SimpleImmutableEntry
  • AbstractQueue
  • AbstractSequentialList
  • AbstractSet
  • ArrayDeque
  • ArrayList
  • Arrays
  • BitSet
  • Calendar
  • Collections
  • Date
  • Dictionary
  • GregorianCalendar
  • HashMap
  • HashSet
  • Hashtable
  • IdentityHashMap
  • LinkedHashMap
  • LinkedHashSet
  • LinkedList
  • Observable
  • PriorityQueue
  • Properties
  • Random
  • Stack
  • StringTokenizer
  • Timer
  • TimerTask
  • TreeMap
  • TreeSet
  • UUID
  • Vector

 

Summary

The above is the package and related classes supported in the current TiJOS JDK, which are the same usage as standard Java and are the most commonly used core classes in Java programming, we will gradually add more and more classes on requirements.

TiJOS Framework

The other large part of the framework class in the TiJOS JDK is to operate on hardware resources and sensor in the application, including the operation of various hardware interfaces and sensor, while also providing some of the tools that might be used, such as BASE64, JSON, and so on

 

Components

Pakcage NameDescription
tijos.framework.platformSystem Settings related classes, like host name and other settings
tijos.framework.eventcenterEvent center class, which deals with events from hardware peripherals such as GPIO events
tijos.framework.networkcenterNetwork center class, management network related configuration and status, such as: WLAN, DNS, etc
tijos.framework.devicecenterDevice bus related classes, such as GPIO I2C, PWM, etc., can be used to develop the sensor which is not supported in the standard library
tijos.framework.networkcenter.ntpNetwork time protocol client class
tijos.framework.networkcenter.mqttMQTT3.1.1 client
tijos.framework.appcenterApplication management center
tijos.framework.utilUtility classes, like Delay, BitConverter, etc
tijos.framework.util.base64BASE64
tijos.framework.util.jsonJSON
tijos.framework.util.crcCRC8, CRC16
tijos.framework.util.loggingLogger class, output to the print port

 

More Resources

NameUrl
TiJOS Web Sitehttp://www.tijos.net
TiJOS Communityhttp://bbs.tijos.net
TiJOS Document Resource Centerhttp://www.tijos.net/docs
TiJOS Driver Storehttp://store.tijos.net