Connect to COM ports
On successful connection send <CR> twice.
Send ‘cmd=list<CR><LF>’ for config. Look for:
Programming Commands to to reproduce Configuration: <CR><LF>
<CR><LF>
1234,2,AP1000000M2110090012,0,0,0,180,30,1,0,1,1,0,0,3, <CR><LF>
1234,3,1,a,Chan1,2,2,inH2O,0,100,0,0,0,0,0,0,1, <CR><LF>
1234,3,4,a,Chan4,2,2,inH2O,0,100,1,2,0,0,0,0,1, <CR><LF>
1234,3,4,l,1,2,0,0,0,0,0,0,0,0, <CR><LF>
1234,3,4,h,1,2,0,0,0,0,0,0,0,0, <CR><LF>
1234,3,4,s,0,0,0,0, <CR><LF>
1234,7,0,[login to view URL],user,pass,[login to view URL],50200,trihedral,1, <CR><LF>
<CR><LF>
Begin parsing from ‘Configuration: <CR><LF><CR><LF>’ and end at `<CR><LF><CR><LF>`.
Parse command line by line and populate text input.
Parse text inputs into commands and send to device.
<CR> carriage return
<LF> line feed
## Deliverables
**C++ VSP Application (USB) - Read/write to device and parse text input fields**
I have a device that connects to a computer by USB and can be communicated with via a COM port.
I have the code that will detect and connect to the device, also with read/write functions already developed.
**Basic specification:**
* Program must connect to COM ports
* Once connected to a COM port, program must send <CR> twice, ignoring any response it [login to view URL] receive a config, program must send ‘cmd=list<CR><LF>’. It will print out a lot of information. The parts we are interested in are the commands:
Programming Commands to to reproduce Configuration: <CR><LF>
<CR><LF>
1234,2,AP1000000M2110090012,0,0,0,180,30,1,0,1,1,0,0,3, <CR><LF>
1234,3,1,a,Chan1,2,2,inH2O,0,100,0,0,0,0,0,0,1, <CR><LF>
1234,3,4,a,Chan4,2,2,inH2O,0,100,1,2,0,0,0,0,1, <CR><LF>
1234,3,4,l,1,2,0,0,0,0,0,0,0,0, <CR><LF>
1234,3,4,h,1,2,0,0,0,0,0,0,0,0, <CR><LF>
1234,3,4,s,0,0,0,0, <CR><LF>
1234,7,0,[login to view URL],user,pass,[login to view URL],50200,trihedral,1,<CR><LF>
<CR><LF>
To parse this information, we will look for ‘Configuration: <CR><LF><CR><LF>’ to start with and <CR><LF><CR><LF> to finish.
Each command can then simply be parsed line by line.
* Each command must be parsed according to the protocol documents ??" each parameter parsed must then be put into the relevant user input field.
* Program must be able to parse user input fields into commands and then send them to the device.
*<CR> = carriage return
<LF> = line feed*
I have attached the user manual for the device along with protocols and such that must be followed when developing for this project.
Type "elephant" at the top of your bid to confirm you have read, understand and are able to accomplish all of this.
Feel free to message me about anything.
Thanks.