[Owfs-developers] owfs 2.5p2 and CVS fail to build if configured without zeroconf

2006-09-22 Thread Christoph Scheurer
Hello,

I just noticed that 2.5p2 as well as CVS fail to build if configured without
zeroconf with the following errors:

gcc -DHAVE_CONFIG_H -I. -I. -I../../../../src/include -I../include -fexceptions 
-Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wstrict-prototypes -Wredundant-decls -D_FILE_OFFSET_BITS=64 -D__EXTENSIONS__ 
-g -O2 -pthread -pthread -pthread -MT ow_server.lo -MD -MP -MF 
.deps/ow_server.Tpo -c ow_server.c  -fPIC -DPIC -o .libs/ow_server.o
ow_server.c: In function `ServerWrite':
ow_server.c:150: warning: initialization discards qualifiers from pointer 
target type
ow_server.c: In function `ConnectToServer':
ow_server.c:462: warning: implicit declaration of function 
`DNSServiceReconfirmRecord'
ow_server.c:462: error: `kDNSServiceType_SRV' undeclared (first use in this 
function)
ow_server.c:462: error: (Each undeclared identifier is reported only once
ow_server.c:462: error: for each function it appears in.)
ow_server.c:462: error: `kDNSServiceClass_IN' undeclared (first use in this 
function)
ow_server.c: At top level:
ow_server.c:184: warning: `ServerNOP' defined but not used
make[4]: *** [ow_server.lo] Error 1


This the output of configure:


Deployment location: /usr/local/stow/owfs-cvs

Compile-time options:
  Caching is enabled
  USB is enabled
  I2C is enabled
   HA7Net is enabled
   Multithreading is enabled
Parallel port DS1410E is enabled
TAI8570 barometer is enabled
 Thermocouple is enabled
 Debug-output is enabled
Profiling is DISABLED
   Zeroconf (Bonjour) is DISABLED

Module configuration:
owfs is enabled
 owhttpd is enabled
  owftpd is enabled
owserver is enabled
  owcapi is enabled
swig is enabled
  owperl is enabled
   owphp is enabled
owpython is enabled
   owtcl is enabled


I would prefer if owserver would still build without the necessity to install
zeroconf which was the case with 2.5p1.

Regards,

Christoph

-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6

http://scheurer-clark.net

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] problem writing PIO on DS2413

2006-09-22 Thread Christoph Scheurer
Hello,

I have a DS2413 attached to a serial master DS9097U-E25 with owfs-2.5p1 . On
power-on both PIO.A and PIO.B read 1. Any attempt to write to PIO.A, PIO.B,
PIO.ALL, or PIO.BYTE is just ignored (LEDs are attached for monitoring). If
the value of e.g. PIO.A is read back immediately after being written, the data
is garbled:

echo 0  /mnt/1wire/3A.7C31/PIO.A; cat /mnt/1wire/3A.7C31/PIO.A
2Ùæ§HÙæ§cat: /mnt/1wire/3A.7C31/PIO.A: Numerical result out of range

and after waiting for a couple of seconds PIO.A reads 1 again. Has anyone a
functioning DS2413 switch? Is this likely to be a software or rather a
hardware error? Other sensors (temperature) on the same bus are operating
normally.

Regards,

Christoph


-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] problem writing PIO on DS2413

2006-09-22 Thread Christoph Scheurer
Hello,

 What happens to the uncached values?
They do not show the garbled output but just ignore the write attempt.

I also already tried to explicitly mount owfs with --write, just in case...

-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Serial Port Requirements

2006-04-24 Thread Christoph Scheurer
Hi,

I see your problem, but on the other side you have all motherboards with PCI
slots (which have SMBus contacts) and any recent RAM slots which have on-board
SMBus controllers but no generic I2C host chips. And most of these are already
supported by the kernel.  From what I could see in the w1 kernel code, all
commands to the I2C-1-Wire bridges in fact are also SMBus compliant and thus
the use of the kernel smbus layer seems more natural.  The linux kernel i2c
system automatically translates SMBus packets if they are sent to a true
I2C-master device (e.g. parport bit-banging).  If you have to write a layer on
top of your proprietary I2C library anyway, couldn't you copy over the SMBus
- I2C functionality from the kernel source?

Christoph

On Sun, Apr 23, 2006 at 08:32:40PM +0200, Jan Kandziora wrote:
 I have a special request: It seems the kontron guys haven't used the 
 generic /dev/i2c interface, but instead build a propietary interface (morons) 
 and a userspace library, which exports i2c (not smbus) functions only. I'm 
 still into bugging them to make a driver using the generic i2c interface, but 
 if this fails, I'd have to port the owfs i2c Interface to that libary.
 
 It would make things easier if you could stick to the raw i2c calls of 
 the /dev/i2c interface.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Serial Port Requirements

2006-04-23 Thread Christoph Scheurer
Hi,

Besides more restrictive electrical specifications and timeouts to prevent the
bus  to be locked, SMBus is a subset of I2C, i.e. for the protocol every I2C
master device can send all commands a SMBus slave is able to understand while
this is not true the other way around. Because of this it would be better to
stick to SMBus commands. If the PXA board is truely I2C it should be no
problem for it to issue all the SMBus commands. That it is not SMBus compliant
can only mean that it has other electrical characteristics or does not support
the timeouts required by SMBus.

Christoph

On Sat, Apr 22, 2006 at 03:37:04PM -0400, Paul Alfille wrote:
 That's OK. There is so little actual i2c code, I can use the raw i2c commands.
 
 Near as I can tell, there are only a few primatives:
 DeviceReset
 1W reset
 1W channel select
 1W read/write byte
 1W triplet
 1W powerbyte
 
 Some things, like selecting i2c address, and distinguishing between -100 and 
 -800 aren't so clear. Testing will be useful.
 
 Paul
 
 
 On Saturday 22 April 2006 03:30 pm, Jan Kandziora wrote:
  Am Samstag, 22. April 2006 15:55 schrieb Paul Alfille:
   Ok, after perusing a lot of code examples, I get it.
  
   Everyone cheats. They either copy the relevant defines from the header
   file, or pretend that kernel headers are the same as glibc headers. It's
   messy, but I can do that.
 
  I'd like to add here the PXA board I have here is said to have no support
  for smbus protocol - I'm not sure, but I think that's solely a driver
  issue, right?
 
  Jan
 


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] Serial Port Requirements

2006-04-22 Thread Christoph Scheurer
Hi,

as far as I remember the header file which is supposed to be used with
userland programs is distributed as part of the the lm-sensors source package
as it is needed also in the sensors-detect program.

Christoph

On Sat, Apr 22, 2006 at 09:55:33AM -0400, Paul Alfille wrote:
 Ok, after perusing a lot of code examples, I get it.
 
 Everyone cheats. They either copy the relevant defines from the header file, 
 or pretend that kernel headers are the same as glibc headers. It's messy, but 
 I can do that.
 
 Paul
 
 On Friday 21 April 2006 09:31 pm, Paul Alfille wrote:
  Jan (or anyone else).
 
  I'm having trouble with /dev/i2c programming.
 
  There are many usermode examples, including kernel source
  /Documentation/i2c Linux journal:
  http://www.linux-mag.com/content/view/96/2108/1/6/
  http://www.charmed.com/txt/dev-interface.txt
 
  http://lists.arm.linux.org.uk/pipermail/linux-arm/2005-June/010077.html
 
  All these examples involve linux/i2c.h and linux/i2c-dev.h
 
  Unfortunately, those header files cause no end of errors and redefines.
  Basically, I'm stymied.
 
  Paul
 
 
 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Owfs-developers mailing list
 Owfs-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/owfs-developers

-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6

http://scheurer-clark.net


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] w1 changes

2006-03-10 Thread Christoph Scheurer
 What should the command line interface look like?
 
 owfs /dev/i2c-?/address
Seems good, the address would be an integer between 0-127 for the standard
7-Bit I2C-addresses? The 10-Bit addresses are included in the I2C standard but
the kernel support is only experimental since no known I2C devices with 10-Bit
addresses are known yet.

Christoph

-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


Re: [Owfs-developers] w1 changes

2006-03-10 Thread Christoph Scheurer
 What should the command line interface look like?
 
 owfs /dev/i2c-?/address
Just a suggestion concerning the internal structure of such an adapter:

If you look at Documentation/i2c/smbus-protocol it seems to be better to
implement it only using the SMBus subset of the I2C protocol, if at all
possible. Otherwise owfs would have to check whether the /dev/i2c-? device
really supports the full I2C protocol (see Documentation/i2c/functionality ).

The advantage I see with implementing the adapter based on the SMBus protocol
is, that most motherboards contain SMBus controllers that are supported by the
I2C subsystem. You can get access to theses buses e.g. off of SDRAM modules
(see http://www.madhacker.org/locate_smbus.htm ) and the DS2482 could be
easily (internally) attached to any PC.

Christoph

-- 
Christoph Scheurer  GnuPG key Id: 0x6128C6B6


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers


[Owfs-developers] w1 changes - DS2804-x00

2006-03-08 Thread Christoph Scheurer
Hello,

first of all I apologize for breaking the thread but I just subscribed because
of the recent discussion about kernel w1 adapter support.

As I understand you were looking for beta testers and their specific setup
(thread started by Stuart Poulton on Feb 27, 2006).

We are planning to attach DS2804-x00 devices to an external I2C-bus connected
to the parallel port via a PCF 8584 on EPP port adapter (for schematic see
http://www.voxel.at/prj/i2c/ ). We should receive our DS2804-x00 samples from
Maxim soon. We intend to use DS2413 switches attached to multiple DS2804-x00
on the I2c-bus to remotely reset/power-cycle nodes in our compute cluster. We
might also attach temperature sensors to remotely monitor the case temperature
independent of on-board sensors in the nodes.

Kind regards,

Ch. Scheurer

--
Christoph Scheurer  GnuPG key Id: 0x6128C6B6


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers