I'm developing an application for a nokia C1 that has s40. i'm using the CommConnection to open a connection to the USB comm = (CommConnection) Connector.open("comm:USB1) and it works alright with the input and output stream. The problem is that data sent to the port gets buffered in the cellphone, so when the device in which i connect it loses power and restarts the data sent by the USB is not the new data it needs to send, its the past that. I use flush and close for the input stream, but it doesn't seem to erase the buffer from the port. Is there a way to clean the buffer from the phone so that the new data sent is accurate??
thanks in advance