Hello guys I'm working at a project using Arduino mega 2560 and VDIP1
< http://www.ftdichip.com/Firmware/Precompiled/UM_VinculumFirmware_V205.pdf >
The VDIP is connected to RX1 and TX1 on Arduino board.
I managed to write on the flash drive but the problem is that I need to run twice the open file write to file and close file block of code after I plugged in the flash drive. After that is writing well.
Another problem is that I can't manage to get all the messages from the vdip1. for example if I'm sending "FWV" command which should return the firmware version as: " FWV 0x0D 0x0D something 0x0D something 0x0D " I get back only FWV.
If anyone has any idea about my problems I would rely appreciate your help.
or example if I'm sending "FWV" command which should return the firmware version as: " FWV 0x0D 0x0D something 0x0D something 0x0D " I get back only FWV.
What does your code do when it gets a 0x0D? It prints a carriage return and line feed, and then returns. Why?
I took that function from an example I tried to make a function to recognise the prompt recording each character that it was coming from VDIP into a array of 3 chars and compare it with ":>" but it didn't worked. Can you give me an example how I should get each respond from the VDIP?