[Owfs-developers] FreeBSD owfs in ports (package)

2011-11-12 Thread Johan Ström
Hi,since nobody have yet to create a FreeBSD ports package for owfs, I took some time do that, don't like to run stuff from my homedir.. ;)If anyone cares to take a look at it, I'd appreciate. I haven't submitted it to the FreeBSD team yet, it doesn't really feel that stable in regards to dependenc

[Owfs-developers] CPU based slaves

2012-04-09 Thread Johan Ström
Hi list! I've been looking into building custom slaves (private use only) using Atmel's AVR processor. As subscribers of this list is aware of this has been discussed here before, but from what I gather from the archives, they never really amounted to any real conclusion on what works or not, a

Re: [Owfs-developers] CPU based slaves

2012-04-09 Thread Johan Ström
rystal tomorrow, but I'm not hoping too much. Johan On Apr 9, 2012, at 21:00 , Patryk wrote: > Dnia 09.04.2012 o 20:26 Johan Ström Johan Ström > napisał(a): > >> Hi list! >> >> I've been looking into building custom slaves (private use only) using >&

Re: [Owfs-developers] Owfs-developers Digest, Vol 71, Issue 8

2012-04-09 Thread Johan Ström
Hi Nathan! That sounds interesting! I'm not sure the code is the problem, the logic is quite clear, it's probably more about getting the timings right. With 20MHz timing would be much more accurate. But the more working examples the better, if you have time, the community (at least me.. ;)) wou

[Owfs-developers] Updated FreeBSD port, with some patches

2014-01-13 Thread Johan Ström
Hi,a few years ago I wrote a basic FreeBSD port for owfs [1]. I have now updated it with the latest owfs release and also improved port with regard to config options etc.The patches have been submitted separately [2], but the attached shar file contains the same patches.Some features are known brok

Re: [Owfs-developers] Updated FreeBSD port, with some patches

2014-01-21 Thread Johan Ström
Great, thanks! I'll look out for a release and update the port accordingly. Regarding swig, I have never dealt with any swig stuff before, so it might just be some lookup/path/config problem.. or something much more complex! I did not really put that much time to it since I do not use it for the

[Owfs-developers] 2.9p3 exits after 1 request?

2014-04-01 Thread Johan Ström
Hi, I'm testing the 2.9p3 release on FreeBSD 8.4. I'm currently running 2.9p1 without problems, but with p3 it seems the owserver want's to exit as soon as it has served a single request? Running my main owserver (2.9p1) on port 4304, starting the p3 server on 4305: $ export LD_LIBRARY_PATH=/usr

Re: [Owfs-developers] 2.9p3 exits after 1 request?

2014-04-02 Thread Johan Ström
c/include/ow_debug.h?r1=1.31&r2=1.32 If debug is on: http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/owlib/src/c/error.c?r1=1.41&r2=1.42 if debug is on) On 4/2/14 07:42 , Johan Ström wrote: > Hi, > > I'm testing the 2.9p3 release on FreeBSD 8.4. I'm currentl

Re: [Owfs-developers] 2.9p3 exits after 1 request?

2014-04-02 Thread Johan Ström
sh under linux. > > I'm tempted to leave the error handling alone, unless you wish otherwise. > > Paul Alfille > > The error is fixed in the CVS and will be fixed in the next release. > > > On Wed, Apr 2, 2014 at 2:55 PM, Johan Ström <mailto:jo...@stromnet.se>

[Owfs-developers] FreeBSD port of 2.9p3

2014-04-08 Thread Johan Ström
Hi, I've posted about a FreeBSD port ("package") earlier, and I have now updated it with 2.9p3. This also enables python and perl support which was broken in my last port. PHP is still wreaked though.. The patches submitted in https://sourceforge.net/p/owfs/patches/19/, https://sourceforge.net

[Owfs-developers] "Optimal" DS2406 input circuitry?

2014-04-28 Thread Johan Ström
Hi! I've been experimenting for a while to get good results with a DS2406 configured for input, utilizing the edge detector latch feature (this would probably apply to DS2408 which also has this feature). Since this haven't been as simple as "connect the switch between GND and PIO", I'd thought I

Re: [Owfs-developers] "Optimal" DS2406 input circuitry?

2014-04-28 Thread Johan Ström
On 4/28/14 15:29 , Jan Kandziora wrote: > Am 28.04.2014 13:50, schrieb Johan Ström: >> Mostly this has been working good, with reliable triggering of the >> latch. However, one problem with pull-up based circuit is that I get >> erroneous triggers if VCC disappears, for

Re: [Owfs-developers] "Optimal" DS2406 input circuitry?

2014-04-29 Thread Johan Ström
On 4/28/14 15:45 , Johan Ström wrote: > On 4/28/14 15:29 , Jan Kandziora wrote: >> Am 28.04.2014 13:50, schrieb Johan Ström: >>> Mostly this has been working good, with reliable triggering of the >>> latch. However, one problem with pull-up based circuit is that I ge

Re: [Owfs-developers] New release 2.9p4

2014-04-30 Thread Johan Ström
Hi, big up for git.. :) Compiles fine on FreeBSD now, without any extra patches! Haven't tried to use it yet though. If it works OK I will probably submit the owfs port to the ports system. /Johan On 4/30/14 02:35 , Paul Alfille wrote: > Release Notes owfs 2.9p4 > 4/30/2014 > > New features > 1

Re: [Owfs-developers] New release 2.9p4 [BROKEN]

2014-05-02 Thread Johan Ström
ret=-5 DEBUG: to_client.c:(76) payload=0 size=0, ret=-5, sg=0x10A offset=0 DEBUG: to_client.c:(85) No data DEBUG: data.c:(227) Finished with client request DEBUG: handler.c:(135) OWSERVER handler done DEBUG: ow_net_server.c:(238) Normal exit. On 4/30/14 11:15 , Johan Ström wrote: Hi, big

Re: [Owfs-developers] New release 2.9p5 (replaces broken 2.9p4)

2014-05-02 Thread Johan Ström
Great work! A quick test on my lab net indicates all fine! /Johan On 5/2/14 17:48 , Paul Alfille wrote: > Thanks to quick testing by Stefano Miccoli and Johan Strom! > > Release Notes owfs 2.9p5 > 5/2/2014 > > Fixes some show-stopper bugs in 2.9p4 > Fixes: > 1. Token creation problem from Stefan

[Owfs-developers] Issue with LinkUSB dropping

2014-06-05 Thread Johan Ström
Hi, I got a LinkUSB as a master for my 1-wire net, around 80m with 30 devices. The bus is scanned every minute and temperature sensors polled (most of the devices). Around 3 times a second I try to scan the alarm dir for alarms (DS2406's), and possibly handle these. Normally this works perfectly

Re: [Owfs-developers] Issue with LinkUSB dropping + baudrate test

2014-06-06 Thread Johan Ström
current /dev/ttyUSBx device. SUBSYSTEM=="tty", \ ATTRS{product}=="FT232R USB UART", ATTRS{serial}=="", \ SYMLINK+="linkUSB0", GROUP="owfs" where of course you have to substitute with the actual serial number. BTW I also set

Re: [Owfs-developers] Issue with LinkUSB dropping + baudrate test

2014-06-07 Thread Johan Ström
On 6/6/14 16:23 , Johan Ström wrote: ... I did some speed experiments, with interesting outcome... This was done by manually telling the LINK to use a certain baudrate, and then start owserver with that setting. At 9600 bps, a full owdir (uncached) takes ~ 1700ms on my 30 devices. A owread

Re: [Owfs-developers] Issue with LinkUSB dropping + baudrate test

2014-06-09 Thread Johan Ström
was well worth the time :) I'll keep on experimenting, and I'll work on a proper patch (libftdi optional of course)! /Johan On 6/7/14 12:47 , Johan Ström wrote: On 6/6/14 16:23 , Johan Ström wrote: ... I did some speed experiments, with interesting outcome... This was done by manu

Re: [Owfs-developers] LinkUSB with libftdi [was: Issue with LinkUSB dropping + baudrate test]

2014-06-11 Thread Johan Ström
l adapter anither day with a very nice latency, i will check what chip Em segunda-feira, 9 de junho de 2014, Johan Ström <mailto:jo...@stromnet.se>> escreveu: A quick, positive (40% faster) update: I've implemented mode-toggling as described below (keep mode between LIN

[Owfs-developers] Support for LinkUSB via libftdi

2014-06-22 Thread Johan Ström
Hi, I've previously mentioned my work on LinkUSB performance improvements [1], and my goal to write a libftdi based implementation. The client-timings are generally cut about 2.5 times, depending on operation. A temp sensor is read in ~50ms instead of ~123ms. I now have some code which works f

Re: [Owfs-developers] Support for LinkUSB via libftdi

2014-06-22 Thread Johan Ström
Oops, git link fixes: https://sourceforge.net/u/stromnet/owfs/ci/ftdi-linkusb/tree/ (links to full tree, not only latest commit.. Click "History" to see all commits) And anonymous R/O clone command: git clone git://git.code.sf.net/u/stromnet/owfs owfs-stromnet On 6/22/14 23:09 , J

Re: [Owfs-developers] Support for LinkUSB via libftdi

2014-06-22 Thread Johan Ström
em might be characteristic of all the > relevant FTDI adapters, even custom runs. > > Paul > > > On Sun, Jun 22, 2014 at 5:20 PM, Johan Ström <mailto:jo...@stromnet.se>> wrote: > > > > > I do have one thing on the todo list, and that i

Re: [Owfs-developers] Support for LinkUSB via libftdi

2014-06-23 Thread Johan Ström
. But since this > would only be an optional test it might be a good solution. > > > On Mon, Jun 23, 2014 at 1:54 AM, Johan Ström <mailto:jo...@stromnet.se>> wrote: > > Thank you! Looking forward to feedback from more experienced > owfs-eyes.. :) > > Scan

Re: [Owfs-developers] Support for LinkUSB via libftdi

2014-06-23 Thread Johan Ström
l serial > ports. Now that most ports are USB emulations, perhaps we can move to > an all-scanned solution (i2c, USB, USB/serial, some of the ethernet). > > > > On Mon, Jun 23, 2014 at 9:09 AM, Johan Ström <mailto:jo...@stromnet.se>> wrote: > > Afaik, the LinkUSB is

Re: [Owfs-developers] Support for LinkUSB via libftdi

2014-07-10 Thread Johan Ström
ng, I'm OK with leaving it as is (or possibly just move to --usb with specific identification), I only have a single LinkUSB anyway.. Johan On 6/24/14 08:43 , Johan Ström wrote: 1A: Yes, this is what regular --link does now 1B: With --linkusb and a serial number. It does not use the se

[Owfs-developers] owfs 2.9p5 now in FreeBSD ports tree

2014-08-16 Thread Johan Ström
Hi, I'd like to announce that my efforts to get OWFS into the FreeBSD ports tree has been successful! With the help of commiter John Marino we now have http://www.freshports.org/comms/owfs, FreeBSD users should thus be able to install owfs using their package manager. Regards Johan --

[Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-18 Thread Johan Ström
Hi, I've noticed some problems using a FTDI based USB serial dongle together with a DS2480B based adapter (also known as DS9097U). On startup the device was not recognized at all, complaining about wrong responses. Anyone else seen these issues? I've debugged the problem and found the cause. On s

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-21 Thread Johan Ström
just the slurp time-out, and perhaps some of the FTDI timing parameters. Also there is a 0-baud issue which we should look at fixing on our end as well. Is it the serial "BREAK" or baud changed that does it? Paul On Fri, Sep 19, 2014 at 2:57 AM, Johan Ström <mailto:jo...@stromnet.se&

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-21 Thread Johan Ström
type of USB adapter and can send any tuning parameters at the start. 1-wire communication messages are pretty short, and often of variable length. You test shows some nice speed increases with better timing choices. I'd like to incorporate that eventually. Paul On Sun, Sep 21, 2014 a

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-22 Thread Johan Ström
On 22/09/14 00:21, Robin Gilks wrote: >> 1. Trying to resolve a serial port TTY name (i.e. /dev/cuaU1 on FreeBSD) >> to a potential USB device is probably doable, but not without a lot of >> effort and OS specific code. >> I don't think it's worth trying to go down that road. >> > How about using

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-23 Thread Johan Ström
Net OWSERVER-ENET w1 Hardware serial will always be a problem, but some USB-serial might be possible. Paul On Mon, Sep 22, 2014 at 2:59 AM, Johan Ström <mailto:jo...@stromnet.se>> wrote: On 22/09/14 00:21, Robin Gilks wrote: >> 1. Trying to resolve a serial port TTY n

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-23 Thread Johan Ström
I have a v1.5). So, how do we address the others? Paul Alfille On Tue, Sep 23, 2014 at 3:40 PM, Johan Ström <mailto:jo...@stromnet.se>> wrote: I'm all for auto-detection, when it is possible to do so reliably. As you mentioned in the other reply, randomly poking at stu

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-23 Thread Johan Ström
10c4:ea60 -- CP210x Unclear if it's generic or not >>> USB9097 --1a86:7523 -- HL-340 Seems generic >>> ECLO -- 0403:ea90 -- FTDI with UNIQUE product ID >>> MasterHub -- 04d8:f897 -- MTI with UNIQUE product ID >>> DS9490R -- 04fa:2490 --

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
I with UNIQUE product ID >>> MasterHub -- 04d8:f897 -- MTI with UNIQUE product ID >>> DS9490R -- 04fa:2490 -- Maxim with UNIQUE ID >>> >>> So it looks like only ECLO, the new Hobby Boards MasterHub, >>> and the DS9490R can be

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
Hi, thanks for your feedback! On 9/30/14 20:08 , Der Tiger wrote: > ReHi Johan, > > On 30/09/14 08:32, Johan Ström wrote: >> * auto-detection can only be relied on for certain pure USB devices >> * auto-detection can not be relied on when "standard" serial bridge

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
On 9/30/14 15:50 , Stefano Miccoli wrote: On 30 Sep 2014, at 08:32, Johan Ström <mailto:jo...@stromnet.se>> wrote: Hi all, picking this up again. Lets summarize the main points: * auto-detection can only be relied on for certain pure USB devices * auto-detection can not be relie

Re: [Owfs-developers] New release 2.9p6

2014-10-07 Thread Johan Ström
ter > 3. Improved systemd support -- Tomasz Torcz > > Fixes > 1. Mutex errors and checking, including read-write lock error -- > Christian Magnusson > 2. Longer timeput needed for FTDI serial adapters -- Johan Ström > 3. FreeBSD fixes -- Johan Ström > 4. mucl C library sup

Re: [Owfs-developers] 2.9p7 release

2014-10-09 Thread Johan Ström
midity > C. Barometer > 3. Improved systemd support -- Tomasz Torcz > > Fixes > 1. Mutex errors and checking, including read-write lock error -- > Christian Magnusson > 2. Longer timeput needed for FTDI serial adapters -- Johan Ström > 3. FreeBSD fixes -- Johan Ström > 4.

Re: [Owfs-developers] 2.9p7 release

2014-10-09 Thread Johan Ström
file* >Name of an *owfs* *(5)* configuration file with more > command line parame- >ters > > but cannot be processed alone, since most of the man pages > machinery is loaded by the "master" man page. > > On 09 Oct 2014, at

[Owfs-developers] DS9097U and reliable BREAK reset

2014-10-14 Thread Johan Ström
Hi, I noticed on my DS9097U adapter, hooked on via FTDI USB dongle, that it would not come back up online after a owfs restart, if the latest executed command was in DATA mode. After lots of testing and debugging, I got a patch which solves the problem. It introduces a 500ms delay before tcsend

[Owfs-developers] Non-portable make in new man Makefiles

2014-11-16 Thread Johan Ström
Hi, I was notified that owfs 2.9p8 fails to build on FreeBSD 8.4 and 9.1, seemingly due to a portability issue in the new manpages Makefiles. Not sure why it fails on these older FreeBSDs, when it works on 10.0.. But both 8.x and 9.x is on extended support so it would be nice if we could build

Re: [Owfs-developers] Non-portable make in new man Makefiles

2014-11-17 Thread Johan Ström
u > are using autoconf and all of its ancillary programs then you must > have a fairly new and updated GNU-Make. > > Which version of GNU-Make (or which other breed of make) is packaged > with FreeBSD 8.4 and 9.1? > > I will provide a patch soon for fixing this. > > S.

Re: [Owfs-developers] Non-portable make in new man Makefiles

2014-12-04 Thread Johan Ström
an3/DS28EA00.3.gz man/man3/DS28EC20.3.gz man/man3/EDS.3.gz man/man3/EEEF.3.gz man/man3/LCD.3.gz man/man3/mAM001.3.gz man/man3/mCM001.3.gz man/man3/mDI001.3.gz man/man3/mRS001.3.gz man/man3/owperl.3.gz man/man5/owfs.5.gz man/mann/owtcl.n.gz On 17/11/14 13:49, Johan Ström wrote: > GNU make is not u

Re: [Owfs-developers] Non-portable make in new man Makefiles

2014-12-21 Thread Johan Ström
s disabled under BSD and OSX, so please check if in previous versions the missing files were present. On 05 Dec 2014, at 08:40, Johan Ström <mailto:jo...@stromnet.se>> wrote: Hi, while waiting for patches, I tried the alternative approach using GNU make when building on < Fr

Re: [Owfs-developers] Non-portable make in new man Makefiles

2014-12-22 Thread Johan Ström
FYI: the FreeBSD port is now updated to use gmake. Regarding causing problems, the man page installation was already severely broken on FreeBSD (I think) so it was just as well, so we found the issue. So, no worries! Happy holidays! Johan On 12/22/14 12:37 , Stefano Miccoli wrote: You are r

Re: [Owfs-developers] How to talk to an 1wire device

2015-02-21 Thread Johan Ström
Hi Matthias! Nice to see continued work on the original (smurfix/)owslave code. I've got some similar code, forked from the taliesin fork originally form your code (according to githubs network view). Your code (today) is definitely smaller than what I've got now. I think I've tried yours way

[Owfs-developers] Link 12/45/USB support for AUX line

2015-03-12 Thread Johan Ström
Hi, The LINK adapter has an extra AUX line which can be used as a general I/O port (somewhat limited though). I've added some code to control this line via owfs: -- Dive into the World of Parallel Programming The Go Par

[Owfs-developers] Link 12/45/USB support for AUX line

2015-03-12 Thread Johan Ström
Oops, early send... Trying again, this time writing the full mail! The LINK adapter has an extra AUX line which can be used as a general I/O port (somewhat limited though). Some background, from LinkUSB manual page: --- The LinkUSBTM supports the standard RJ45 type 1-Wire bus connection wher

Re: [Owfs-developers] Link 12/45/USB support for AUX line

2015-03-13 Thread Johan Ström
write-only from the name. How about auxpower and auxsense? On Thu, Mar 12, 2015 at 12:37 PM, Johan Ström <mailto:jo...@stromnet.se>> wrote: Oops, early send... Trying again, this time writing the full mail! The LINK adapter has an extra AUX line which can be used as a general I/O

Re: [Owfs-developers] Link 12/45/USB support for AUX line

2015-03-22 Thread Johan Ström
n, or even better, solved, similar issues, ideas are welcome! On 3/14/15 02:06 , Paul Alfille wrote: Great idea! On Fri, Mar 13, 2015 at 1:48 PM, Johan Ström <mailto:jo...@stromnet.se>> wrote: Indeed, one is read only and one is write only. The reasoning behind two separate nod

Re: [Owfs-developers] owpython

2015-05-20 Thread Johan Ström
Hi, just want to give +1 for pyownet. I'm using it for my network and it works 100% flawless, scanning the alarm dir ~10 times per second and the full bus every 30 second, reading ~25 temperature sensors every 30 seconds. This have been running for about a year now, using my own master software w

[Owfs-developers] DS9097U (DS2480B) re-configuration issues

2015-07-03 Thread Johan Ström
Hi, every now and then I've noticed how my DS2480B-based adapter on my lab network seems to stop responding. Restarting OWFS has always solved the issue for the moment. TLDR: Shouldn't DS2480_big_configuration be called on comm failure? Longer version: --- The reset & Presence command works fin

Re: [Owfs-developers] DS9097U (DS2480B) re-configuration issues

2015-07-08 Thread Johan Ström
VEL_DEBUG("Bad response error. Reconnection %d/%d",pn->selected_connection->reconnect_state, reconnect_error); return gbBAD ; } return gbGOOD; } Regards Johan On 03/07/15 18:40, Johan Ström wrote: > Hi, > > every now and then I&#

Re: [Owfs-developers] RTD Slave

2015-08-30 Thread Johan Ström
Owslave has been superseeded by the M-O-A-T project: https://github.com/M-o-a-T/moat, and from my brief use (a few months back, testing only) it works really well, at least on a Mega 8. There was an introductory post on this list a few months back. You need to edit the .cfg file to build a con

Re: [Owfs-developers] Find the uninitialized data, please!

2015-09-04 Thread Johan Ström
What does debug logging reveal? Configure & build with "--enable-debug --enable-owtraffic" and then running with "--foreground --debug" usually gives a very verbose idea on what's going on. Is the stacktrace always ending up in libusb? Could possibly indicate duplicate libusb_close calls or some

Re: [Owfs-developers] Find the uninitialized data, please!

2015-09-05 Thread Johan Ström
On 05/09/15 09:21, Matthias Urlichs wrote: > Johan Ström stromnet.se> writes: > >> What does debug logging reveal? Configure & build with "--enable-debug >> --enable-owtraffic" and then running with "--foreground --debug" usually >> gives a v

Re: [Owfs-developers] Find the uninitialized data, please!

2015-09-06 Thread Johan Ström
On 06/09/15 16:45, Matthias Urlichs wrote: > Johan Ström stromnet.se> writes: >> Ok, very early crash then. Does it help buidling with --disable-zero? >> > Will try. > >> Do you have the gdb output from this as well? The above looks more like >> a syscall

Re: [Owfs-developers] owserver polling so cached values never delay

2015-10-05 Thread Johan Ström
On 05/10/15 15:54, Jan Kandziora wrote: > Am 05.10.2015 um 14:23 schrieb Alex R. Gibbs: >> However, other clients will have to wait if they happen >> to query owserver during the conversion/read. >> > No. That can only happen if you use parasite powered sensors. Because > parasite power occupies th

Re: [Owfs-developers] Try to find bug in my slave DS2423 implementation

2015-10-21 Thread Johan Ström
Run owserver (or whatever you use) with --traffic. Not sure if you need to compile with debug, but I don't think so. On 21/10/15 12:25, rot...@gmx.de wrote: > Hi Alex, > > >I’ve never done a “full byte dump” before so if you can give me some > sort of recipe to produce what you want, I should be

Re: [Owfs-developers] Try to find bug in my slave DS2423 implementation

2015-10-21 Thread Johan Ström
Oh, and --foreground is useful too. On 21/10/15 13:18, Johan Ström wrote: > Run owserver (or whatever you use) with --traffic. Not sure if you > need to compile with debug, but I don't think so. > > On 21/10/15 12:25, rot...@gmx.de wrote: >> Hi Alex, >> >>

Re: [Owfs-developers] Try to find bug in my slave DS2423 implementation

2015-10-21 Thread Johan Ström
Try --traffic (two dashes) On 21/10/15 14:58, Alex Shepherd wrote: >> >> Oh, and --foreground is useful too. > > Hmmm… > > I tried to run it using: > > /usr/bin/owserver -c /etc/owfs.conf --foreground —traffic > > but got an error: > > /usr/bin/owserver: unrecognized option ‘—traffic > > Here is s

Re: [Owfs-developers] Try to find bug in my slave DS2423 implementation

2015-10-21 Thread Johan Ström
--000: E1 55 28 10 92 BF 03 00 00 9E <.U(...> DEBUG: ow_tcp_read.c:(63) attempt 9 bytes Time: 5.00 seconds I have no clue about the state of rpi builds though, the list may help further! Regards Johan On 21/10/15 15:15, Alex Shepherd wrote: > > Hi Johan, > >> O

[Owfs-developers] Merging "moat" device specific code

2015-11-10 Thread Johan Ström
Hi, a ticket was opened a few days ago regarding merging the "moat" device specific owfs code into master: http://sourceforge.net/p/owfs/feature-requests/9/ Does anyone object that I merge this? I've run this code myself for months without any issues. The only reason I can come to think of is

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-10 Thread Johan Ström
. On 10/11/15 20:32, Colin Reese wrote: > Is this still only for attiny? I've been limping along with code for > atmega328 from elsewhere and would love if someone has time to help me port > it. I love the idea. > >> On Nov 10, 2015, at 11:10 AM, Johan Ström wrote: >>

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-10 Thread Johan Ström
local IO (and other arbitrary > values like serial), my end goal, I'd much rather get moat working. > > C > >> On Nov 10, 2015, at 12:16 PM, Johan Ström wrote: >> >> While I haven't tested it myself, there are specific code for mega328 >> (and 168,

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-11 Thread Johan Ström
headers? Johan On 11/11/15 09:09, Colin Reese wrote: > I get a number of errors on compile similar to: > > /moat.c:182: undefined reference to `pgm_read_ptr_near' > > C > > On 11/10/2015 1:07 PM, Johan Ström wrote: >> _include: world.cfg >> d

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-11 Thread Johan Ström
11/11/15 11:04, Colin Reese wrote: > I have tried on deb Linux (Ubuntu 14.04) with apt distros, also winavr. Just > downloaded owslave and tried fresh with the exact cfg you listed. > > C > >> On Nov 11, 2015, at 1:57 AM, Johan Ström wrote: >> >> Hm,

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-12 Thread Johan Ström
As long as your built it for 16MHz it should probably be compatible (I'm not familiar with any specific fuses the m328 might have). Thus, f_cpu: 1600 On 12/11/15 03:39, Colin Reese wrote: > So to avoid trying to get WinAVR to behave, on a windows machine with > avrdude I would do something l

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-12 Thread Johan Ström
a88__) || defined(__AVR_ATmega328__) // Clock is set via fuse is the f_cpu definition necessary here? C On Thu, Nov 12, 2015 at 8:44 AM, Johan Ström <mailto:jo...@stromnet.se>> wrote: As long as your built it for 16MHz it should probably be compatible (I'm no

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-12 Thread Johan Ström
nd, but if not already defined, what is the default value? Or, why is this not defined in the code already? On Thu, Nov 12, 2015 at 9:13 AM, Johan Ström <mailto:jo...@stromnet.se>> wrote: Yes, the f_cpu define only controls timing calculations, which must match the clock speed. I

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-13 Thread Johan Ström
lts.types >> code: [] >> m328test: >> _ref: mcu.mega328 >> defs: >> f_cpu: 1600 >> port: >> 1: B0~ >> 2: B1~ >> onewire_id: x0f361b8bff8a >> >> >> On 11/12/2015 12:28 PM, Johan St

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-13 Thread Johan Ström
with my LV library and do not receive a response. Is uart debug as simple as enabling it and then inserting uart_putc() and uart_puts() statements where I see fit? C On 11/13/2015 12:05 AM, Johan Ström wrote: Ah, using the latest code is always a good start.. :) Yes, the 'moat' devi

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-13 Thread Johan Ström
be uphill. C On 11/13/2015 11:05 AM, Johan Ström wrote: Not sure if there is any good docs on this yet, don't think so, and the code has a quite a few "clever tricks" which minimizes size & enhances customability but makes it a bit tricky to follow for the uninitiated. Basic

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-14 Thread Johan Ström
part! I am good to go with git (https://github.com/iinnovations) I'll give the owfs a build and throw it on a machine and see what I see. Thanks for the help! C On 11/13/2015 11:50 AM, Johan Ström wrote: Just sending F2 does not work, no. You need to send F2, then two more bytes ide

Re: [Owfs-developers] Merging "moat" device specific code

2015-11-16 Thread Johan Ström
That's not moat-related, nor owfs-related: "Internal compiler error". I'd check for updates on your env, or change Linux dist or something. For the record, line 476 of ow_moat.c is static ZERO_OR_ERROR FS_r_alarm_status(struct one_wire_query *owq) i.e nothing fancy at all. On 16/11/15 01:10, C

Re: [Owfs-developers] 3.1p1 release, anyone?

2015-11-23 Thread Johan Ström
Actually, it seems the master branch of https://github.com/M-o-a-T/owfs is broken.. In July, a similar bug was fixed (segfault on owdir), which was fixed with https://github.com/M-o-a-T/owfs/pull/2. This has been working fine since then, but after the latest merges into master (bb9d4027713644d7a

Re: [Owfs-developers] 3.1p1 release, anyone?

2015-11-23 Thread Johan Ström
On 23/11/15 20:20, Jan Kandziora wrote: > Am 23.11.2015 um 19:15 schrieb Colin Reese: >> No, I am indeed using: >> >> https://github.com/M-o-a-T/owfs.git >> >> Where is the main archive? >> > $ git clone git://git.code.sf.net/p/owfs/code owfs-code > > Note that it is the main *owfs* repo. There is

Re: [Owfs-developers] 3.1p1 release, anyone?

2015-11-24 Thread Johan Ström
On 24/11/15 17:56, Matthias Urlichs wrote: > On 24.11.2015 17:10, Matthias Urlichs wrote: >> I'll take a look ASAP. > I have rebased my "master" branch. Seems I mistyped a branch name > yesterday. Sorry about that. Great! For you git new-comers, 'git pull' will most likely not work properly here

Re: [Owfs-developers] 3.1p1 release, anyone?

2015-11-26 Thread Johan Ström
On 25/11/15 14:56, Jan Kandziora wrote: > Am 25.11.2015 um 10:03 schrieb Stefano Miccoli: >> Cannot check right now, but if I didn’t do something terribly wrong I >> should be at the latest commit on master, so below e85572. >> >> It seems to me that actually e85572 introduced the bug: >> >> http

Re: [Owfs-developers] 3.1p1 release, anyone?

2015-11-26 Thread Johan Ström
On 26/11/15 23:06, Jan Kandziora wrote: > Am 26.11.2015 um 22:55 schrieb Johan Ström: >> Re-adding the -EISDIR check fixes the issue (but, I assume, restore the >> original external issue). >> If we have no proper fix for the original external issue right now, I >> s

Re: [Owfs-developers] 3.1p1 release

2016-01-14 Thread Johan Ström
Great! On 14/01/16 16:28, Jan Kandziora wrote: > Hi, > > as Paul seems to be unavailable and noone else dashes to the front, I > claim benevolent dictatorship to decide we should have a 3.1p1 release > including all the remaining patches from Paul and the recent fixes from > Johan, Tomasz and myse

[Owfs-developers] libftdi support: take 2

2016-01-25 Thread Johan Ström
Hi, some of you may remember my earlier attempts to add a libftdi based LinkUSB interface into master. For reference: http://sourceforge.net/p/owfs/mailman/message/32492037/ In short, the client-timings are generally cut about 2.5 times, depending on operation. A temp sensor is read in ~50ms i

Re: [Owfs-developers] libftdi support: take 2

2016-01-27 Thread Johan Ström
Hi, thanks for your input! On 27/01/16 18:40, Stefano Miccoli wrote: Good news. In a few days I will have an old LinkUSB available for testing, although with a limited number of sensors only: I will try-out your implementation. Great! I've been running one LinkUSB and one DS2480B, FTDI-dong

Re: [Owfs-developers] libftdi support: take 2

2016-01-27 Thread Johan Ström
On 27/01/16 23:09, Johan Ström wrote: Hi, thanks for your input! On 27/01/16 18:40, Stefano Miccoli wrote: Good news. In a few days I will have an old LinkUSB available for testing, although with a limited number of sensors only: I will try-out your implementation. Great! I've

Re: [Owfs-developers] libftdi support: take 2

2016-01-27 Thread Johan Ström
On 27/01/16 23:42, Jan Kandziora wrote: > Am 27.01.2016 um 23:09 schrieb Johan Ström: >> (libftdi *does* have a ftdi_usb_find_all but "list all" only works on >> libftdi >= 1.x. And it only lists devices with *known* FTDI vid/pid's. >> Let's say a

Re: [Owfs-developers] libftdi support: take 2

2016-01-27 Thread Johan Ström
On 27/01/16 23:45, Stefano Miccoli wrote: > Minor glitch on module/owlib/src/c/ow_ftdi.c: > > here you use MIN and MAX macros, which are defined in . > Don’t ask me why, but this file is not included in linux: > > — form ow.h: > > #ifdef HAVE_SYS_TYPES_H > #ifdef __FreeBSD__ > #include > #endif

Re: [Owfs-developers] libftdi support: take 2

2016-01-28 Thread Johan Ström
On 28/01/16 08:16, Johan Ström wrote: > On 27/01/16 23:42, Jan Kandziora wrote: >> Am 27.01.2016 um 23:09 schrieb Johan Ström: >> >> >> I'm against putting the listing/probing code into owserver. We have >> small tools for everything and shouldn't st

Re: [Owfs-developers] libftdi support: take 2

2016-01-28 Thread Johan Ström
On 28/01/16 23:58, Jan Kandziora wrote: > Am 28.01.2016 um 23:38 schrieb Johan Ström: >> What do you think? >> > Sounds reasonable. But if you name it owusbprobe, it should be able to > detect DS9490 and DS9481, too. > Actually, I think DS9490 is based on the DS2490 chi

Re: [Owfs-developers] libftdi support: take 2

2016-01-28 Thread Johan Ström
On 29/01/16 08:28, Johan Ström wrote: > > Also, since we don't have any Prolific layer (yet), we must use the > systems regular COM port emulation. This presents a new issue: doing so > cross-platform. > Ehr, the issue is mapping the USB device to the correct /dev/ttyXX nam

Re: [Owfs-developers] libftdi support: take 2

2016-01-29 Thread Johan Ström
On 29/01/16 15:02, Jan Kandziora wrote: > Am 29.01.2016 um 08:28 schrieb Johan Ström: >> On 28/01/16 23:58, Jan Kandziora wrote: >>> Am 28.01.2016 um 23:38 schrieb Johan Ström: >>>> What do you think? >>>> >>> Sounds reasonable. But if you

Re: [Owfs-developers] Introducing a new "latesttemp" node on the DS18B20, DS18S20, DS1822, DS1825, and DS28AE00.

2016-02-02 Thread Johan Ström
+1, I'm using my 1wire bus for more than temperature sensors, blocking on something that does not need to block would ruin my setup (polling alarms every 0.2s) On 03/02/16 01:43, Jerry Scharf wrote: > Hi, > > This would break my code. I send out simultaneous on each bus I have > then come back aro

Re: [Owfs-developers] libftdi support: take 2

2016-02-04 Thread Johan Ström
On 27/01/16 18:40, Stefano Miccoli wrote: Good news. In a few days I will have an old LinkUSB available for testing, although with a limited number of sensors only: I will try-out your implementation. Stefano, did you get any chance to give my ftdi code a spin? Regards Johan ---

Re: [Owfs-developers] libftdi support: take 2

2016-02-04 Thread Johan Ström
On 29/01/16 16:54, Matthias Urlichs wrote: > Hi, > > On 27.01.2016 23:45, Stefano Miccoli wrote: >> #ifdef HAVE_SYS_TYPES_H >> #ifdef __FreeBSD__ >> #include > Umm, why doesn't this code use HAVE_SYS_PARAM_H ?? > No idea, was not introduced in the ftdi branch. I've commited a fix there now thoug

Re: [Owfs-developers] OWFS and OSX...

2016-02-04 Thread Johan Ström
Hi, at least the current master (or well, ftdi branch but nothing touched there since 9a8aa0 == 3.1p1) detects libusb properly on my OS X (10.10.5): checking for LIBUSB... yes ... Compile-time options: USB is enabled I have no custom configure flags, and libusb from brew

Re: [Owfs-developers] libftdi support: take 2

2016-02-04 Thread Johan Ström
On 29/01/16 15:02, Jan Kandziora wrote: > Am 29.01.2016 um 08:28 schrieb Johan Ström: > > >> As for the DS9481, it seems to be based on the Prolific PL-2303HXD chip, >> a generic adapter chip similar to the FTDI. Behind that, it emulates a >> DS2480B (owfs source cod

Re: [Owfs-developers] libftdi support: take 2

2016-02-09 Thread Johan Ström
5446176 > DEBUG: ow_ftdi.c:(397) attempt 21474836481 bytes Time: 0.1995157928 > seconds > DEBUG: ow_ftdi.c:(458) ftdi_read: 1 - 0 = 1 (3 retries) > DEBUG: ow_ds9097U.c:(643) wrong response (E7 not 00) > DEBUG: ow_ds9097U.c:(665) Failed second attempt at resetting baud >

Re: [Owfs-developers] libftdi support: take 2

2016-02-11 Thread Johan Ström
On 04/02/16 23:26, Jan Kandziora wrote: > Am 04.02.2016 um 23:11 schrieb Johan Ström: >> vid =0x0B6A, pid = 0x5A03 >> "This device is identified as a DS18E17 / DS9481P-300 USB adapter. >> To use this, you need to use the DS2480B device, and point it to >> the

Re: [Owfs-developers] libftdi support: take 2

2016-02-15 Thread Johan Ström
On 10/02/16 08:25, Stefano Miccoli wrote: On 10 Feb 2016, at 07:55, Johan Ström <mailto:jo...@stromnet.se>> wrote: Basic functionality seems OK, but there is a sequence that breaks the server. $ owserver --link ftdi:i:0x0403:0x6001 --foreground ^C $ owserver -d ftdi:i:0x04

  1   2   3   >