Is there any way to communicate with the serial port via xml messaging? I mean I want send/receive a structured packet from high level (java) which parsing by the Embedded device (C). Is there any way to do that?? If xml messaging is not possible any other alternative way to send structured packet over serial port.
Thanks
The serial port is just the transport you have available. You can theoretically run just about any protocol over serial port that you could run over other communication means. Theoretically you could even run TCP/IP over bongo drums.
If the embedded device supports it, you can run TCP/IP over the serial port, and pass your XML structure over TCP/IP based protocols.
Converting serial port data to TCP/IP in a linux environment
Even if the embedded device cannot run a protocol like TCP/IP, you can still transmit XML messages over the serial port and interpret them in your C program.