你只需要编写串口通信就可以了,vc++封装有CSerialPort类库直接调用就可以了,这里给你提供个教程和源码
https://blog.csdn.net/Peter_JJH/article/details/77294592