In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the characteristics of SSIO". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the characteristics of SSIO.
Characteristics of 1.SSIO
Lightweight high-performance communication framework, suitable for a variety of application fields, polling mode, automatic control mode, concurrent mode and singleton mode.
It is not only the communication framework, but also the coordination mechanism of device driver, IO channel and control mode scenario.
Support protocol driver, you can write standard protocols and custom protocols according to the specification.
Support for sending data buffers, command cache retransmission and priority sending.
Support protocol filters, filter data according to rules, and can inherit interfaces and customize filtering methods.
Support to receive data buffer, you can cache data that does not conform to the filter, and the next received data for splicing.
Support the scheduling of devices according to the priority of device commands to ensure that drivers with high-level commands are sent in time.
Supports a device driver, supports both serial port and network communication, and can monitor IO channel data.
Support a device driver, in network communication can support TCP Server and TCP Client two working modes.
Multiple devices are supported to share the same IO channel for communication.
Regular cleaning of timed-out network IO channels is supported.
Support display view interface to meet different display requirements.
Support service component interface, you can customize to complete OPC service, 4-20mA output, LED large screen display, short message service, and multi-function gateway service.
Support the creation of multi-service instances to split different businesses.
Supports cross-platform deployment and can run on Linux and Windows systems.
two。 Protocol for the testing process
Protocol header (2 bytes), client number (ASCII,4 numeric characters), file name, file content, protocol tail (2 bytes)
Example: 0x35pc0x35pr 0001Die yMMddHHmmss.txt, file contents, 0x3je 0x33
3. Test result
The test starts at about 14:00 on 2016-8-16 and takes a screenshot at around 13:00 on 2016-8-17. A 65kb file is sent every 5 seconds, and the SSIO is responsible for receiving and storing the data. As shown below:
Why is there wrong data in the contents of the red circle? This is because the protocol begins with 0x35 and 0x35 and ends with 0x33 and 0x33, but the protocol data includes the file name, which is named according to the time rule: yyMMddHHmmss.txt, so the data of the file name in the protocol may include 0x35 or 0x33 data, so it is normal to intercept data. However, special attention should be paid to the process of designing communication protocols.
4. Open source branch
SSIO 2.0 is modified based on the SSIO1.3 version, and a lot of changes have been made, so a new branch has been created. You should pay attention when downloading it on github, as shown below:
At this point, I believe you have a deeper understanding of "what are the characteristics of SSIO?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.