Sending content of Hex File to Serial Device

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Sending content of Hex File to Serial Device

Postby motheartist » Mon Jul 18, 2011 1:47 pm

Hello everybody!

I'm currently working on an interface that provides connection by bluetooth to a serial device by the help of a bluetooth RS232 adapter. I already implemented bluetooth chat example and achieved that I get ascii strings sent by the serial device to my smartphone. However to update that serial device I would

a) need a possibility to send a *.exe file (OBEX not possible due to profile boundary of the adapter)

or

b) send the hex files content to the serial device. However I'm not totally sure if reading hex files works similar to other files or if I have to think about special circumstances.

So my question for now. Anybody familiar with reading hex files and sending the full content to another device? I would appreciate some ideas, thoughts about that. Even better would be a tutorial :) I know there are some concerning reading and writing files but I'm not 100% sure they are working for my kind of issue. This most likely because the software of the serial device checks incoming files and parses the hex content to overwrite already existing files in the memory.
motheartist
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Jul 18, 2011 1:40 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 5 guests