EHS6T : application problem with usb log | Telit Cinterion IoT Developer Community
January 19, 2022 - 12:43pm, 1002 views
I have a java application running in EHS6T modem.
I output some log on USB.
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 ?
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.
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 ?
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.