creating and writing files to flash / MES | Telit Cinterion IoT Developer Community
June 12, 2014 - 3:55pm, 7647 views
Hi again and thanks for your last helpful answer, Jedrzej, I now have some questions about writing data to files on the flash system. 1. Is there a way to directly write to flash using the java api or can this only be accomplished using AT^SFSA commands? 2. I have successfully created and opened a new file using this: response = m_Cmd.send("AT^SFSA=\"open\"," + filename + ",8\r"); System.out.println(response); But how do I go about writing data to the file, any examples? I'd like to then upload the file via ftp to a remote server. 3. I have noticed that sometimes I can't access the flash using Windows Explorer i.e. Module a:/ This definitively appears to happen when Netbeans is running and probably taking over the Comport. It is a bit of a nuisance to keep closing and opening the IDE and restarting the cinterion board just to have access to the flash. Using the MES with e.g. MESDir mod:a:/ also doesn't work unless I have done a PC and cinterion board reboot and NOT run netbeans yet. Any idea or alternatives about this can be improved?