Patent ID: 11709722

Abstract:
The present invention provides an extensible communication framework supporting multiple communication protocols, for connecting a software platform and a device. The extensible communication framework comprises a communication interface and a communication model, wherein the communication interface comprises a device interface, a channel interface and a protocol interface. The communication model calls the device interface, the channel interface and the protocol interface during communication. When the software platform is connected with the device, a class is created in the device interface, the class is inherited from the device interface; a channel protocol is newly created in the channel interface, the channel protocol is inherited from the channel interface; a sub-protocol interface is created in the protocol interface, the sub-protocol interface is inherited from the protocol interface. The software platform communicates with the device through the communication model, and the class, the channel protocol and the sub-protocol interfaces are called during communication. The present invention makes software code maintenance and function addition become very convenient, and ultimately ensures the product software quality.