Open communication with device (Visa?)
Receive result (all 10000 bytes?)
Possibly repeat Send/Recieve
Save result to file
- Indicate the communication medium , SerialPort , Ethernet TCP/IP , USB ,
- Indicate the protocol in which the data is packed.
- Is any handschaking required before the data is send
Set up a webcam
Start acquiring images
Analyse the images to detect puffs of smoke from the fire across the room
Decode back into binary
Don't forget to include a termination character
I'm assuming, due to the lack of further information that your device is communicating via smoke signals.