otgw

Attachments
Login

Attachments

In many cases it can be useful to provide an attachment with your forum post. For example a log file, a picture, or a screen shot. The attachment may be uploaded via this page. When the upload succeeds it gets an ID assigned. You can refer to it in your forum post (in markdown) using [log file](/ext/attachment?id=12345). If the attachment is an image, you can place it inline in your forum post (in markdown) using ![screen shot](/ext/attachment?id=99999).

Please be conservative with uploading screen shots. If you want to show the messages being exchanged, upload a log as a text file, not a screen shot of the OTMonitor log tab. First of all, such a screen shot would probably not show enough messages to be useful. Second, it can't be processed by any tools that analyze the messages.

As a protection against spammers trying to dump irrelevant files, you will have to be logged in to upload an attachment. Since that is a requirement to be able to post to the forum anyway, it should not be much of an inconvenience for legitimate users.

Creating a log file

The easiest way to create a log file is by using OTmonitor. Go to Options → Connection. Configure the connection depending on the OTGW version you have as described below and click "Connect".

After having connected OTmonitor to the OTGW, go to Options → Logging. In the "Logfile" section, select a directory and specify a name pattern. The default name pattern of "otlog-%Y%m%d.txt" creates a log file with a name containing the current date. Then check the "Logfile" box. I suggest not to enable "Include details of bit fields" or "Include message ID". These settings only make the log file bigger without providing any additional information.

When the issue has been reproduced or the tests have been performed, logging can be stopped by unchecking the "Logfile" box. Next, collect the log file from the chosen directory and upload it. If the file is big, you can compress it using gzip, 7z, or zip.