I am using a CMOS camera to take pictures through serial communication. This works perfectly fine and as a result i get an array of HEX values which using a python script get converted into a nice JPEG image. I need to automatically store this array into a text file in the linux console on the Udoo. I have read numerous threads and forums but it all goes back to arduino and an external SD library that communicates using serial. I dont know how to create a text file on the linux desktop and store the array there. Any ideas? This might be trivial im not sure, this is my first time working with arduinos and its IDE. All help is more than appreciated. Thank you!
eh ? , I`m a little lost what happening , Not sure if I have this right . The Sam/Arduino part has a CMOS camera which sends the picture as HEX value via serial to the quad part, which the quad part picks up decodes with python ?. Make a python script to dump your data !!!
Correct. The sam has a CMOS camera connected to Serial3. This takes the picture and returns an array of hex characters. In order to decode it with python i need to save this array of hex values to a text file somewhere on the quad part. Right now i can only see this array using the serial monitor on the arduino IDE. What im trying to figure out is how can I create a text file and write the array data into it.
THis should be a good starter ? http://stackoverflow.com/questions/2089 ... ing-python You just need to look at the com port and print to file .
the issue is that there is too much data in a picture to transmit through serial from the SAM to the Arm hence it takes a long time. Connected the cameras to the usb ports instead and works perfectly. thank you!