The hostname detection depends on a sequence of interactions with the end device. Nodegrid will send the pre-configured "probes" (usually an ENTER) and expect the pre-defined "matches".
If there is no match to the pre-defined match strings, you will need to add a customized string as a new match.
The most important part is to find out a specific match that will isolate the hostname from any other string sent from the end device.
To help with that, we suggest to use a regular expression tool.
Set it to python as it usually better suits the matching process in Nodegrid.
Then, paste the output from your device in the TEST STRING textbox and start with basic REGULAR EXPRESSION. Remember, the goal is to get a single match. For instance, using this device's output as an example:
There may be other factors contributing to hostname detection mismatch. For example, if a probe is sent more than once due to retries, will the end device prompt the hostname again?
You can enable data logging in the device to check what is actually being exchanged.