(1) OBEX introduction
1. What is OBEX and what is its purpose?
OBEX is called Object Exchange, and it is called Object Exchange protocol. It has a core position in this software, and is used in both file transmission and IrMC Synchronization.
The OBEX protocol is built on the upper layer of the IrDA architecture.
The OBEX protocol uses the "PUT" and "GET" commands to conveniently and efficiently exchange information between different devices and platforms. Supports a wide range of devices, such as PCs, PDAs, phones, cameras, automatic recorders, calculators, data collectors, watches, and so on.
The OBEX protocol defines a flexible concept-objects. That is, the object. These objects can include files, diagnostic information, e-commerce cards, and bank deposits. Objects does not have any advanced technical meaning here, but depends on your application.
The OBEX protocol is small enough to support "command and control" functions, such as operations on televisions and video recorders. Avenue can perform complex operations, such as database transaction processing and synchronization.
OBEX has the following features:
1. Friendly applications-fast development.
2. Tightening-available on small devices with limited resources.
3. Cross-platform
4. Flexible data support.
5. It is convenient to act as an upper-layer protocol for other Internet transmission protocols.
6. Scalability: provides expansion support for future needs without affecting the existing implementations. For example, scalable security and data compression.
7. It can be tested and debugged.
For more details about OBEX, refer to the IrOBEX protocol.
II. OBEX object model
About Headers
The object model answers how the object is described in the OBEX protocol. This model must include transmitted objects and descriptions of objects. To achieve this, OBEX defines the concept of Headers.
A Header reflects an aspect of an object, such as name, length, description text, or object itself. For example, a file object demo.txt contains its name. A type is marked as "text", and its length and file itself.
Headers composition
Headers are composed of <Header ID> and <Header Value>, which are <HI> and <HV> for short.
HI consists of one byte, indicating the content contained in the Header and its format. HV contains one or more bytes, and its structure is determined by HI.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.