On Tue, 10 Nov 2015 00:13:41 +0100
Stefano Miccoli mo...@icloud.com wrote: 

> On my owfs.conf I had these two lines:
> 
> server: link = /dev/ttyS0
> server: server = some.fully.qualified.domain.name:4304
> 
> which mean that sensors at the root (owdir /) will be collected from a
> Link45 (see http://www.ibuttonlink.com/products/link45
> <http://www.ibuttonlink.com/products/link45>) connected to local serial
> port /dev/ttyS0 and the sensors from a remote owserver.
 
Oh - you have a local owserver querying another owserver on a different 
machine! My owfs.conf only has 
server: w1
in that position. 
 
bus.0/bus.0/interface/settings
address W1 bus monitor
name    W1 monitor
 
bus.0/bus.1/interface/settings
address w1_bus_master1
name    w1


> So I had
> 
> /bus.0/interface/settings/name          ->      LinkHub-E v1.1
> /bus.0/interface/settings/address       ->      /dev/ttyS0
> /bus.1/interface/settings/name          ->      tcp
> /bus.1/interface/settings/address       ->     
> some.fully.qualified.domain.name:4304

> (note the bus.0 and bus.1 thing.) This resulted in the 40ms times?
> After inserting the dotted quad instead of the domain name, things went on
> smoothly? and I convinced myself it was a DNS lookup issue. (but maybe
> this was not the real problem.) Maybe there is another factor forcing a
> bus rescan on your setup at each dir command? 
 
I know from Wireshark that the BBB is not hitting my network router with any 
DNS requests during the speed test. No idea what it might be doing internally. 
But I don't even have "localhost" involved, definitely not any non-numeric 
addresses. 
 

> IMHO your config should be:
> 
> ! server: server = localhost:4304
> server: server = config for your bus masters
> server: port = 4304

Mine was like that, except the second one said
server: port = localhost:4304
Maybe that was the only problem? 
 
Netstat showed owserver as 127.0.0.1:4304, and I could not access it from other 
machines out on the network. After I changed to 
! server: server = 10.1.1.4:4304
and 
server: port = 4304
netstat showed it as 0.0.0.0:4304, and I could reach it from outside. 
 
 
> (localhost does no harm if you have the '127.0.0.1      localhost? line in
> /etc/hosts, and ?hosts: files dns? in /etc/nsswitch.conf, which should be
> the default.)

I believe I have those:
---
ubuntu@arm:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       arm
ubuntu@arm:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
---
 
Always more to learn,
 
Loren

| Loren Amelang | lo...@pacific.net |




------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to