System.out on ASC0 / Flash file system | Thales IoT Developer Community
April 6, 2014 - 1:18am, 11362 views
Hi, With the out-of-the-box configuration of the concept board the Userware/Stdout (the setting that controls where System.out calls are redirected to) is set to this. ^SCFG: "Userware/Stdout","null",,,,"off" When developing in Eclipse, I typically run my Midlet from Eclipse (connecting my PC to the USB port) and I see the output just fine. I was taking my Concept board onto the field and wanted to see the logging through the ASC0 USB interface or log it on the flash drive. I tried executing the following command (the comand itself returned OK) AT^SCFG="Userware/Stdout","ASC0" But when hooking up a serial monitor on the virtual COM port provided by ASC0 I didn't see output while I know my Midlet was doing System.out calls I then tried to write the System.out to the flash drive using the following config: AT^SCFG="Userware/Stdout","FILE",65535,"MY.LOG","buffered" But that command resulted in ERROR. Any ideas how to redirect the System.out calls to ASC0 or the Flash filesystem ?
Can I output something to ASC0 / 1 from USB Ports with AT Commands somehow also for testing?
Generally you can't because you get the replies for AT commands on the same port.
But if you for example redirect the System.out for Java applications to some interface there will be "SYSTEM.OUT STARTED" displayed on that interface and if you switch it off there will be "SYSTEM.OUT STOPPED".
If you'd like to send some data from USB port to ASC0/1 you'd have to implement such functionality in the Java MIDlet.