In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the secondary development process of SuperIO". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "what is the secondary development process of SuperIO" can help you solve the problem.
1.1 flow chart of secondary development
1.2 reference related components
Find the Development package and reference the relevant components in it. As shown below:
1.3 develop device driver module 1.3.1 develop send protocol driver
Inherit the SuperIO.Device.DeviceSendProtocol interface, override the relevant FunctionXX interface functions, and package the data. "XX" represents hexadecimal data. For example, the Function31 function is called through the this.SendProtocol.GetSendCmdBytes (addr, new byte [] {0x32}, null, false) function.
The interface function can correspond to the interface function in the receiving protocol.
1.3.2 develop a receiver protocol driver
Inherits the SuperIO.Device.DeviceReceiveProtocol interface, overrides the relevant FunctionXX interface functions, and packages the data. "XX" represents hexadecimal data. For example, the Function31 function is called through the this.ReceiveProtocol.GetAnalysisData (data, null,-1) function.
The interface function can correspond to the interface function in the sending protocol.
1.3.3 Parameter data, real-time data persistence
You can inherit the SuperIO.Device.DeviceParameter and SuperIO.Device.DeviceRealTimeData classes, add new attributes to the subclasses, override the SaveSerializePath attribute to specify the path to save the data, and perform serialization and deserialization operations to save and get the data.
Secondary developers can customize the data persistence class of SuperIO.SerializeOperation.SerializeOperation type.
1.3.4 develop and run device drivers
Inherit the SuperIO.Device.RunDevice1 abstract class and rewrite the corresponding function interface to complete the corresponding function.
For a specific description of the function, please see the subsequent development examples.
1.3.5 create ContextMenu menu
The context menu is displayed through the ShowContextMenu function of the device interface, which is displayed when you right-click in the list of software platforms.
1.4 Development of graphic display module
The graphical display interface inherits both the Form form class and the SuperIO.Show.IGraphicsShow interface, which is used to display the form and driver data.
Different data information can be integrated into one interface for display, which is more intuitive and convenient to view.
1.5 develop data dissimilation module
For the same kind of equipment, the data of different formats are output without changing the device driver module, which is more used for docking with other integrated systems.
1.6 develop service module
Here you can develop a variety of services for equipment and platform, such as: the platform collects data and uploads to the service center, etc., using this kind of interface interface is widely used.
1.7 Debug drivers, modules
You can inherit MainForm forms, call the debug interface, and debug with an interface; also
Yes, through DebugDevice. GetDebugInstance () gets a debugging example and debugs without an interface.
1.8 Mount drivers, modules
Run the ConfigTool.exe configuration tool to mount the developed drivers and modules. As shown below:
This is the end of the content about "what is the secondary development process of SuperIO". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.