1.1 Two-time development flowchart
1.2 Referencing related components
Find the "development package" and refer to the related components inside. Such as:
1.3 Development Device Driver Module 1.3.1 Development Send protocol Driver
Inherit the SuperIO.Device.DeviceSendProtocol interface, overwrite the related FUNCTIONXX interface function, carry on the data packing, "XX" represents 16 binary data, For example: The FUNCTION31 function is called by this.SendProtocol.GetSendCmdBytes (addr, new byte[] {0x32}, NULL, FALSE) function.
interface functions can correspond to interface functions in the receive protocol.
1.3.2 Development Receive Protocol driver
Inherit the SuperIO.Device.DeviceReceiveProtocol interface, overwrite the related FUNCTIONXX interface function, carry on the data packing, "XX" represents 16 binary data, For example: The FUNCTION31 function is called via the this.ReceiveProtocol.GetAnalysisData (data, NULL,-1) function.
interface functions can correspond to interface functions in the Send protocol.
1.3.3 parameter data, real-time data persistence
You can inherit the SuperIO.Device.DeviceParameter and SuperIO.Device.DeviceRealTimeData classes, add new properties to the subclass, override the Saveserializepath property to specify the path to save the data, serialize and deserialize To save and get data.
Two times developers can SuperIO.SerializeOperation.SerializeOperation types to customize data persistence classes.
1.3.4 Development Run device driver
Inherit the SuperIO.Device.RunDevice1 abstract class, overriding the corresponding function interface to complete the corresponding function.
See the following development examples for specific function descriptions.
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 Developing the Graphics display module
The graphical display interface inherits both the form form class and the SuperIO.Show.IGraphicsShow interface for displaying forms and driving data.
Different data can be integrated into an interface to display, viewing more intuitive and convenient.
1.5 Developing data-out modules
For the same type of device, without changing the device driver module, output different formats of data, more for interfacing with other integrated systems.
1.6 Development Service Module
Here you can develop a variety of services for devices, platforms, such as: the platform after the acquisition of data information uploaded to the service center, etc., the use of such interface interface application is more extensive.
1.7 Debug Driver, module
You can inherit the MainForm form, invoke the Debug interface, and debug in the case of an interface;
Yes, through Debugdevice. Getdebuginstance () Gets a debug instance and debugs without an interface.
1.8 Mounting Driver, module
Run the ConfigTool.exe Configuration tool to mount the developed drivers and modules. Such as:
Author qq:504547114
QQ Group: 54256083
Official website: http://www.bmpj.net
Source Article address: http://www.bmpj.net/index.php?m=article&f=view&id=3
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Three. Superio two-time development process