Open gorillale opened 7 months ago
Hi Andrew,
What type of decoder are you trying to write CVs to, and what sort of address?
i.e., is it a multi-function (Loco) decoder or an accessory decoder that uses one of several addressing modes?
Maybe send me the AP_DCC example that works and the NmraDcc example that doesn’t work.
Alex
On 27/03/2024, at 3:26 AM, gorillale @.***> wrote:
Hi on POM Mode i cant write CV Values, no advancedAck will be called. I use Arduino UNO as accessory decoder.
into SM mode ist ok to read write cv. I not known what ist the problem? have you disabled POM write?
With the other library AP_DCC it works to write CV on POM Mode. For read i must be program andwer code.
Have anyone same problem, used with newset Library? Regards Andrew
— Reply to this email directly, view it on GitHub https://github.com/mrrwa/NmraDcc/issues/79, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5Y53PGNIHWAEALIXKLVFTY2FZOTAVCNFSM6AAAAABFJBJL66VHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDQNBRGIZTQOA. You are receiving this because you are subscribed to this thread.
NmraDccAccessoryDecoder_test.zip Hi thank you for answere. I have send test app and Electronic Sheet. Same use with AP_DCC, other Code (that works).
Hi Andrew,
So you’re trying to write CVs in an Accessory Decoder with an address of 1001.
1) What type of DCC Command station are you using?
The issue is that the DCC Protocol has multiple different DCC Commands to perform a CV Write via PoM, and different DCC Systems do this differently.
Some DCC Systems don’t support Accessory Decoder CV PoM protocol at all. To provide a way to support PoM for Accessory Decoder on systems that don’t support it, I added a Multi-Function Decoder address that an Accessory Decoder would listen for Multi-Function Decoder PoM commands and do the CV Write that way.
To enable this put the MultiFunction DCC Address in the last parameter (OpsModeAddressBaseCV) of the Dcc.init() method. See below for details:
void init (uint8_t ManufacturerId, uint8_t VersionId, uint8_t Flags, uint8_t OpsModeAddressBaseCV);
2) I see you have enabled DCC packet Printing using
#define NOTIFY_DCC_MSG
Can you send me the raw DCC packets showing the Accessory Decoder CV PoM Commands, as that may help to debug this.
Regards
Alex Shepherd
m: +64-21-777764 e: @.***
On 27/03/2024, at 8:36 PM, gorillale @.***> wrote:
NmraDccAccessoryDecoder_test.zip https://github.com/mrrwa/NmraDcc/files/14769663/NmraDccAccessoryDecoder_test.zip Hi thank you for answere. I have send test app and Electronic Sheet. Same use with AP_DCC, other Code (that works).
— Reply to this email directly, view it on GitHub https://github.com/mrrwa/NmraDcc/issues/79#issuecomment-2022127317, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5Y53ON5X7YIMZYBTCJSILY2JSIFAVCNFSM6AAAAABFJBJL66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGEZDOMZRG4. You are receiving this because you commented.
Hi on POM Mode i cant write CV Values, no advancedAck will be called. I use Arduino UNO as accessory decoder.
into SM mode ist ok to read write cv. I not known what ist the problem? have you disabled POM write?
With the other library AP_DCC it works to write CV on POM Mode. For read i must be program andwer code.
Have anyone same problem, used with newset Library? Regards Andrew