Re: [PLUG] serial communication over ethernet (VY)

2017-03-18 Thread Mike C.
>
> Hello All:
>
> I am looking for a mechanism from Linux to configure a device that's a
> small ethernet server:
>
>https://www.lantronix.com/wp-content/uploads/pdf/XPort-AR_CR.pdf
>
> The initial steps involve configuring its BAUD rate, IP address etc..
> On Windows, per their instructions, folks are asked to use things like
> telnet and hyperterminal,
> or other serial communication tools.
>
> On Linux, I have configured serial ports before, using things like
> minicom.  But those devices would show up as /dev/TTY***.In this
> device, it is showing up in an ethernet port.
>
> what tools can I use to configure this device in such scenario under Linux?
> I know exactly which ethernet port it is connected to (e.g.  eth1)
>
> thanks in advanced for any tip.
>
>
Are you connecting to the device via a serial port?

Standard configuration for serial port communication is: 9600, 8, N, 1

i.e.
Bits per second (Baud Rate): 9600
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None

This getting started document explains how to connect via the serial port.
https://www.lantronix.com/wp-content/uploads/pdf/XPort-AR_QS.pdf

The device also has DHCP enabled, so you could just plug into your LAN. You
can run the command arp -a before plugging in it and then after. You should
see the new mac & ip addr entry in your computer's arp table.

Here's an example of an arp table entry on my computer:

gateway (10.0.0.1) at 00:00:ca:11:22:33 [ether] on enp2s0

The first 6 characters of any mac addr are reserved for the OUI,
Organizationally Unique Identifier. In my example arp table entry, 00:00:ca
is for Arris.

Lantronix's OUI is: 00:80:A3

HTH,

Mike
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] Ubuntu and NFS during boot

2017-03-18 Thread Tom
You could use "user" and "noauto" mount options in fstab instead of
relying on "bg" and then run mount command with timeout by a script in
a loop very couple of minutes until it is mounted. Or give up after so
many unsuccessful attempts.
Would that work for you?
On Fri, 2017-03-17 at 20:36 -0700, John Meissen wrote:
> robert.ci...@gmail.com said:
> > Sounds like you want autofs:
> > 
> > https://help.ubuntu.com/community/Autofs 
> 
> No, different use case. What I want is for 'mount' to work the way
> it's 
> supposed to:
> 
>   bg / fg   Determines  how the mount(8) command behaves if an
> attempt
> to mount an export fails.  The fg option causes mount(8)
> to 
> exit with an error status if any part of the  mount 
>  request
> times  out  or  fails  outright.  This is called a
> "foreground"
> mount, and is the default behavior if neither the fg nor
> bg 
> mount option is specified.
> 
> If the bg option is specified, a timeout or failure
> causes the
> mount(8) command to fork a child  which  continues  to 
>  attempt
> to mount the export.  The parent immediately returns
> with a zero exit code.  This is known as a "background"
> mount.
> 
> It works fine if I run it manually. What's different about the boot
> process?
> 
> 
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug