I am working on the following: I have a microcontroller and a Nokia N70 mobile phone that communicate with each other over virtual COM port (phone: SPP). I send from the phone a command that is executed by the microcontroller and i get the textual result. This works fine. I have also implemented rotuines for sending/receiving files from phone to MC and vice versa. Sending files from phone to MC works very fine with files of nearly any size. On the other side there is a strange problem when trying to receive (file) data from MC. If data size exceeds some few kilobytes (according to my tests less or more 5 or 6 kbytes), the phone application hangs and blocks !? Receiving small files up to 2-3 kbytes works fine. When using another communication programm written for a notebook i receive the entire file of any size --> it is a nokia problem.... I have heard and read that some Nokia phone have this problem? Has anyone had these problems? Are there good workarounds?
PS: I open a FileConnection for SPP profie and then using "openOutputStream" and "openInputStream". As i said i can communicate very well and even send data files, BUT receiving relativ big data sizes makes problems!!!!???
PPS: I read data bytewise with "myInputStream.read()" and write the read byte
directly to file. I do this in a loop until file content (i get file size at the very beginning) is read.
I am thankful for every help.....