Debug: configure system.out on ASC / USB | Thales IoT Developer Community
July 14, 2015 - 12:23pm, 2588 views
I need help. I've a module "EHS5" with Mini PCI-E connector mounted on a "Mini PCI-E to USB Adapter". I've created a simple J2ME application that send strings on System.out.
1) I've configurated the debug with:
AT^SCFG="Userware/DebugMode","on"
AT^SCFG="Userware/Stdout","ASC0"
Note: i've not see the message "SYSTEM.OUT STARTED"....
2) I've installed the application and then start with:
AT^SJAM=0,"a:/test.jad",""
AT^SJAM=1,"a:/test.jad",""
But nothing appear out from the USB.....
3) Same result if I use the command
AT^SCFG="Userware/Stdout","USB1"
4) Note: if I get the configuration with the command AT^SCFG? I read:
^SCFG: "Userware/Stdout","usb1",,,,"off"
What is the meaning of the "off" ???
Thks
Hello,
Please open Computer, Properties and choose Device Manager. Open Ports and you will see all the USB ports for the Cinterion EHSX module. Check first if you can send commands on the port, then redirect System.out and check if there's output. You only need to set "Userware/Stdout". "Userware/DebugMode" is not relevant here.
Please remember that the port on which you redirect System.out is reserved for the application output only and no AT command will be accepted any more.
Please also disconnect the terminal on PC (in case of USB only) when you reset the device.
If you have ASC0 connected to the PC you should also be able to redirect System.out there.
The meaning of "off" you can find in the AT commands specification:
- "off" - Stdout strings are truncated if output device handling reaches its transmission capability.
- "on" - Stdout strings are never truncated. If output device buffer is full, the Java VM is waiting until memory becomes free again. This handling may slow down or stop the VM and should never be used in a production environment.
Regards,
Bartłomiej