Get Xport (Lantronix) 'name' with Bascom code

Guest #1596023
Hi,
It is possible to give the XPort (Lantronix) a name. I do this with the 
Lantronix DeviceInstaller. I would like to read/get this name with a 
bascom code. Does anybody now if its possible at all, and if possible, 
how?

Some more information, although i think this is not necessary to know:
I use an ATMega1280 and the XPort is connected to one of my UARTs. I 
configure XPort only via the Lantronix DeviceInstaller.

Thanks
Andrea
Guest
Hi,

if you use the virtual com port, the name is e.g. COM3.

If you communicate with the XPort directly, it has a TCP/IP address. To 
give it a friendly name you must have a DNS-Server within your net. Ask 
your network administrator.

Regards Reinhard
Guest
Apparently, I did not make myself clear. I don't have a problme with the 
communication, everything works fine.
With the Lantronix DeviceInstaller I can set a property 'name' for the 
XPort, I dont't need this name for communication, I want to use it for 
something else. What I want is to read/Get this property 'name' in my 
bascom code, if its possible at all. If it's not possible. no problem, 
this is only one way to solve my task. But maybe someone knows how to 
get it.
Thanks Andrea
Guest
It's still unclear what you want to do, so if you want to give your 
device a name then watch out for C:\Windows\System32\drivers\etc hosts 
file and simply give it a name.

In this case you don't need a DNS environment.
Guest
Please have a look at the Lantronix DeviceInstaller tif. You can see 
there is a property 'name'.
For example:
When I use a Xbee module, there is a property called 'nodeidentifier' 
which is the same like the 'name' property, in XPort.
This 'nodeidentifier' I can access in my Bascom code by setting the xbee 
in Command mode and then sending the AT Command 'atni', which returns 
the 'nodeidentifier'. I want to know what i have to do to get the 'name' 
of the XPort, if possible at all.
I hope I could clarify. Sorry for the inconvenience ;-)
Attached files:

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.