Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Franzi hh fast clock #348

Closed
wants to merge 349 commits into from
Closed

Conversation

FranziHH
Copy link

Hi,

FastClock implementation is faulty.
Here is my suggestion.
The instructions for integrating FastClock into DCC-EX are also incorrect.

For the serial connection, it is sufficient in the config.h Comment out one of the serial ports e.g.
#define SERIAL1_COMMANDS

The integration of I2C did not work at all this is my suggestion that works for me.

It just needs to be in the config.h
#define FAST_CLOCK_I2C 0x55
can be defined and, if necessary, the address can be adjusted

Many greetings, Franziska

Here are the two debug outputs before and after my change:

The order of initialization did not work for I2C

original edition

<* License GPLv3 fsf.org (c) dcc-ex.com *>
<* Checking for Clock *>
<* Clock check result - 3 *>
<* LCD6:CLOCK NOT FOUND *>
<* I2C Device found at 0x3C, OLED Display? *>
<* I2C Device found at 0x55, EEPROM? *>
<* MCP23017 I2C:0x20 Device not detected *>
<* MCP23017 I2C:0x21 Device not detected *>
<* Found PORTB pin 13 *>
<* Pin 55 Max 1497mA (501) *>
<* Found PORTB pin 12 *>
<* Pin 54 Max 1497mA (501) *>

after my change

<* License GPLv3 fsf.org (c) dcc-ex.com *>
<* I2C Device found at 0x3C, OLED Display? *>
<* I2C Device found at 0x55, Fast Clock? *>
<* Checking for Clock *>
<* Clock check result - 0 *>
<* I2C Fast Clock found at 0x55 *>
<* EXFastClock::create *>
<* MCP23017 I2C:0x20 Device not detected *>
<* MCP23017 I2C:0x21 Device not detected *>
<* Found PORTB pin 13 *>
<* Pin 55 Max 1497mA (501) *>
<* Found PORTB pin 12 *>
<* Pin 54 Max 1497mA (501) *>
<= A MAIN>
<= B PROG>
<* 128x64 OLED display configured on I2C:0x3c *>
<* LCD0:DCC-EX v5.0.2 *>
<* LCD1:Lic GPLv3 *>
<* ++ Wifi Setup Try 1 ++ *>
(...)
<* Wifi Check: [\r\nOK\r\n\0] *>
ATE0\r\n\r\nOK\r\n<* Found in 4ms *>
<* WiFi CONNECTED *>
<iDCC-EX V-5.0.2 / MEGA / STANDARD_MOTOR_SHIELD G-3bddf4d>
<* LCD3:Ready *>
<p0>
<* LCD2:Power Off *>
<* LCD3:Free RAM= 2262b *>
<* LCD6:Clk Time:562 Sp 4 *>
<jC 562 4>
<* LCD3:Free RAM= 2248b *>
<* LCD6:Clk Time:563 Sp 4 *>
<jC 563 4>
<* LCD6:Clk Time:564 Sp4 *>
<jC 564 4>
<* LCD3:Free RAM= 2239b *>

pmantoine and others added 30 commits October 4, 2023 14:54
Add facility to get the name of the track mode
Added function to return DC address
added UserAddin.txt to gitignore
Merge in power changes and EXRAIL command & update to version.h
LCC commands in EXRAIL for OpenMRN Adapter

FIrst use of compile-out of unused features.
Asbelos and others added 29 commits April 13, 2024 08:12
commit 3fc90c9
Merge: 132e2d0 91e60b3
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Apr 12 15:08:49 2024 +0100

    Merge branch 'devel' into devel_chris

commit 132e2d0
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Apr 12 15:07:31 2024 +0100

    Revert "Merge branch 'master' into devel_chris"

    This reverts commit 23845f2, reversing
    changes made to 7675599.

commit 23845f2
Merge: 7675599 28d60d4
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Apr 12 14:38:22 2024 +0100

    Merge branch 'master' into devel_chris

commit 7675599
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Apr 12 14:37:34 2024 +0100

    ONSENSOR/ONBUTTON

commit 8987d62
Author: Asbelos <asbelos@btinternet.com>
Date:   Tue Apr 9 20:44:47 2024 +0100

    doc note

commit 8f0a5c1
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Apr 4 09:45:58 2024 +0100

    Exrail notes

commit 94083b9
Merge: 72ef199 02bf50b
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Apr 4 09:08:26 2024 +0100

    Merge branch 'devel' into devel_chris

commit 72ef199
Author: Asbelos <asbelos@btinternet.com>
Date:   Thu Apr 4 09:06:50 2024 +0100

    TOGGLE_TURNOUT

commit e69b777
Author: Asbelos <asbelos@btinternet.com>
Date:   Wed Apr 3 15:17:40 2024 +0100

    BLINK command

commit c7ed474
Author: Asbelos <asbelos@btinternet.com>
Date:   Tue Apr 2 10:12:45 2024 +0100

    FTOGGLE,XFTOGGLE

commit 7a93cf7
Author: Asbelos <asbelos@btinternet.com>
Date:   Fri Mar 29 13:21:35 2024 +0000

    EXRAIL STEALTH_GLOBAL

commit 28d60d4
Author: Peter Akers <akersp62@gmail.com>
Date:   Fri Feb 16 18:02:40 2024 +1000

    Update README.md

commit 3b16299
Author: peteGSX <peteracole@outlook.com.au>
Date:   Sun Jan 21 07:13:53 2024 +1000

    EX-IO fixes in version

commit fb414a7
Author: Harald Barth <haba@kth.se>
Date:   Thu Jan 18 08:20:33 2024 +0100

    Bugfix: allocate enough bytes for digital pins. Add more sanity checks when allocating memory

commit 818e05b
Author: Harald Barth <haba@kth.se>
Date:   Wed Jan 10 08:37:54 2024 +0100

    version 5.0.8

commit c5168f0
Author: Harald Barth <haba@kth.se>
Date:   Wed Jan 10 08:15:30 2024 +0100

    Do not crash on turnouts without description

commit 387ea01
Author: Harald Barth <haba@kth.se>
Date:   Mon Nov 6 22:11:56 2023 +0100

    version 5.0.7

commit a981f83
Author: Harald Barth <haba@kth.se>
Date:   Mon Nov 6 22:11:31 2023 +0100

    Only flag 2.2.0.0-dev as broken, not 2.2.0.0

commit 749a859
Author: Asbelos <asbelos@btinternet.com>
Date:   Wed Nov 1 20:13:05 2023 +0000

    Bugfix TURNOUTL

commit 659c58b
Author: Harald Barth <haba@kth.se>
Date:   Sat Oct 28 19:20:33 2023 +0200

    version 5.0.5

commit 0b9ec74
Author: Harald Barth <haba@kth.se>
Date:   Sat Oct 28 19:18:59 2023 +0200

    Bugfix version detection logic and better message
@FranziHH FranziHH closed this by deleting the head repository Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants