EHS6T : application problem with usb log | Telit Cinterion IoT Developer Community
January 19, 2022 - 12:43pm, 1265 views
Hello,
I have a java application running in EHS6T modem.
I output some log on USB.
AT^SCFG="Userware/Stdout","usb1",,,,"on"
It works normally when I have an usb cable connected to the PC.
But when I disconnect le cable, the application is not working.
Something seems to be locked.
Do you know this problem ?
Regards,
Mohamed BENDADI
Hello,
I suppose that the problem is caused by the "on" parameter that you have added. By default it is "off" and I would recommend not to change it.
According to the documentation when it's 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 the VM when a lot of outputs are created, even a full stop of the VM is possible, if the used device is in flow control. Please use this option very carefully, and never in a production environment."
I suppose that the MIDlet execution may be stopping if USB is not connected because the output is not being read then.
In practice you should not face logs being truncated if you leave the default setting.
Regards,
Bartłomiej
Thank you for the answer.
It’s what I supposed.
We use the USB output for debugging.
So, it’s not possible to empty this buffer in our java program ?
If I can’t log with USB output, how can I debug my program with the default setting ?
Regards,
Mohamed BENDADI
Hello,
Normally it is not a problem if the debug interface is not connected. The app should still work. That's why I suspect this <blockmode> parameter which you set to "on". I think that such a setting may only have sense for some special debug purposes. I never use it and I have never encountered such an issue as you are having. Please remove it or set to "off", make sure it is set correctly and test if you still have this problem.
Regards,
Bartłomiej
It works.
Thank you.