Hello again,

I've gotten some helpful off-list response from Der Tiger, and to sum it up.

The hardware Tiger uses (Hobbyboard) is electrically identical to the on Nico uses (https://fstab.nl/en/lcd_owfs), except that the Hobbyboard schematic has 3 pushbuttons between P0..P3 and GND, with 10nF cap's in parallel, and 3 10k pull-ups between VCC and P0..P3. The schematic Nico uses leaves P0..P3 floating.

One theory put forward by Der Tiger is that, since the patch disables the PIO output transistors for P0..P3 and thus leaving the outputs in an undefined state, the chip/owfs could be confused.

Also, with the help of Jan's explanation on the command sequence, I cannot really see any apparent issues with the patch.

After studying the logs (which says ' Error sending initial attention'), and the corresponding code, I'm quite sure the lacking pull-ups are the source of the problem. OW_Hinit->OW_w_pios writes a byte and then read backs the PIO status, expecting them to be the same. If no pull-ups are present, it will i.e write 0x37, but read back 0x30, and fail.
This is the case in the log (see below, [1]).


Nico: Can you try to add some 10k resistors between P0-VCC, P1-VCC and P3-VCC? Remember to test with the original code (without the extra revert).
Hopefully that will help!
Thanks to Tiger and Jan for helping to (hopefully) fix this issue :)

Johan



[1]
TRAFFIC IN  <NETREAD> bus=0 (/dev/ttyUSB0)
Byte buffer DS9097U, length=1
--000: 37     (Here we write  0x37)
   <7>
TRAFFIC IN  <NETREAD> bus=0 (/dev/ttyUSB0)
Byte buffer DS9097U, length=1
--000: C8
   <.>
TRAFFIC IN  <NETREAD> bus=0 (/dev/ttyUSB0)
Byte buffer DS9097U, length=1
--000: AA
   <.>
TRAFFIC IN  <NETREAD> bus=0 (/dev/ttyUSB0)
Byte buffer DS9097U, length=1
--000: 30     (Here we read back 0x30, bit 0-3 is not pulled up.)
   <0>
  DEBUG: ow_tcp_read.c:(113) read: 4 - 0 = 4
  DEBUG: ow_transaction.c:(145) modify = 0
  DEBUG: ow_transaction.c:(208) end = 0
  DEBUG: ow_2408.c:(442) Error sending initial attention
  DEBUG: ow_2408.c:(406) Screen initialization error




On 31/03/16 23:31, Johan Ström wrote:
Great, now we have the exact source of the problem at least :)

I'm wondering if that code is actually right (with or without patch).. Not sure what LCD_COMMAND_ATTENTION is intended to do? And shouldn't LCD_COMMAND_4_BIT be written with NIBBLE_CTRL?

Anyone on the list who uses these/wrote the original code?
CC'd Der Tiger referenced in the commits, if he still has the same email.. Might have some insights; is it working for him?

Johan

On 31/03/16 21:53, Nico Bouthoorn wrote:
Cool, this code is working,  i did een fresh pull,  the revert and a new 
compile,
My display is working anyway, but other versions?


Thanks,

Nico



Johan Ström wrote:
On 29/03/16 18:52, Nico Bouthoorn wrote:
Update; i've copied module/owlib/src/c/ow_2408.c  file  from the 2.8p15 sources 
to the 3.1 version, recompiled  it again.
It is working now....
Great pinpointing! I suspect the following change:

https://sourceforge.net/p/owfs/code/ci/85dd9650cea1dcd8f8582861c797f8dda7fa479c/#diff-5

commit 85dd9650cea1dcd8f8582861c797f8dda7fa479c
Author: Paul Alfille<paul.alfi...@gmail.com>
Date:   Sun Aug 5 20:15:09 2012 +0000

       Patch from Der Tiger for LCD screen buttons


Nico, can you try the following:
1. restore the 3.1 version of the file
2. Apply the above patch, in reverse.
If you are using a git checkout, you can do 'git revert -n 85dd96'
If you are using the 3.1p1 tarball, look at the above URL, and find the
code lines added (+). Replace those with the lines removed (-).
3. Rebuild

If this does not help, please include expected vs actual behavior.

Paul is maintainer of the code?,  i've not knowledge how to debug this further.
I'd say the main one, but there are others as well. Unfortunately he has
been unseen lately.
Thanks,

Nico


Johan Ström wrote:
On 27/03/16 11:49, Nico Bouthoorn wrote:
Hi Johan,

I've setup nieuw beaglebone system, if i use the version 2.8  included in de 
debian 7 repo the display works, the version 3.1 from the git don't. I'm using 
now a DS9097U/ds2409 as interface, but no difference
There was a bunch of changes in the ds2409 (hub) handling between those
versions. Could you test without the ds2409?
       owwrite  /1F.177102000000/aux/29.09C211000000/LCD_H/clear 1
owwrite  /1F.177102000000/aux/29.09C211000000/LCD_H/screen aap
Is neither working (control nor writing)? I'm not entierly familiar with
the LCD interface of the DS2408, so a "expected" and "actual"
description would be helpful :)
But do test without the hub first, to rule that out.
The debug what you asked for:

https://fstab.nl/upload/owfs3.1_debug.out
Perfect!

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers




------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140


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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to