CNC engraving machine building communication with USB devices
by:Transon2020-07-25
Computer adopted the GUID interface to open CNC engraving machine equipment, GUID is obtained when writing device drivers, can also through the API function call to obtain.
In turn call API function SetupDiGetClassDevs, SetupD -
iEnumDeviceInterfaces,SetupDiGe-
TDeviceInterfaceDetail for CNC engraving machine equipment interface element interface details contained in the device path name, select the corresponding USB endpoint and pipelines, call API function CreateFile can open the equipment, equipment for handle.
At this point, and USB communication is established, the Read - call API function
File, WriteFile can read and write USB devices, and to shut down the equipment is called CloseFile function.
engraving machine price information in the numerical control network.
We are here to help you! If you close the chatbox, you will automatically receive a response from us via email. Please be sure to leave your contact details so that we can better assist