2
« le: mai 09, 2021, 11:55:24 am »
Dans ce cas est-ce que le code que j'utilise est suffisant pour une utilisation avec JMRI ?
Je rencontre un problème dans la lecture des CV qui ne fonctionne pas : que des valeur à 255.
11:52:38.272: Prog Read Cmd: CV: 8, Callback Num: 0, Callback Sub: 82
11:52:38.675: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 8, Value: 255
11:52:38.676: Prog Read Cmd: CV: 7, Callback Num: 0, Callback Sub: 82
11:52:39.109: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 7, Value: 255
11:52:39.112: Prog Read Cmd: CV: 29, Callback Num: 0, Callback Sub: 82
11:52:39.556: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 29, Value: 255
11:52:39.556: Read Track Current Cmd
11:52:41.559: Prog Read Cmd: CV: 1, Callback Num: 0, Callback Sub: 82
11:52:41.952: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 1, Value: 255
11:52:41.952: Prog Read Cmd: CV: 17, Callback Num: 0, Callback Sub: 82
11:52:42.386: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 17, Value: 255
11:52:42.387: Prog Read Cmd: CV: 18, Callback Num: 0, Callback Sub: 82
11:52:42.829: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 18, Value: 255
11:52:42.830: Prog Read Cmd: CV: 19, Callback Num: 0, Callback Sub: 82
11:52:43.271: Program Reply: Callback Num: 0, Callback Sub: 82, CV: 19, Value: 255
11:52:46.382: Status Cmd
11:52:46.384: Power Status: OFF
11:52:46.398: Status:Station: , Build: , Version: 0.0.0
11:52:46.404: Comm Type Reply Type: 0 Port: N/A
11:52:46.405: No Sensor/Turnout/Output Reply
11:52:46.408: No Sensor/Turnout/Output Reply
11:52:49.456: Read Track Current Cmd
Il y a aussi le Voltage Meter qui n'indique rien : - - - A
Il s'agit de la version 4.22+R4c4384d74 de JMRI.
Voici les messages générés dans la console par DecoderPro lors du démarrage et du lancement d'une recherche de décodeur :
2021-05-09 11:58:42,327 util.Log4JUtil INFO - ****** JMRI log ******* [main]
2021-05-09 11:58:42,384 util.Log4JUtil INFO - This log is appended to file: /home/christophe/.jmri/log/messages.log [main]
2021-05-09 11:58:42,386 util.Log4JUtil INFO - This log is stored in file: /home/christophe/.jmri/log/session.log [main]
2021-05-09 11:58:42,395 apps.AppsBase INFO - DecoderPro version 4.22+R4c4384d74 starts under Java 1.8.0_292 on Linux amd64 v3.10.0-1160.24.1.el7.x86_64 at Sun May 09 11:58:42 CEST 2021 [main]
2021-05-09 11:58:44,613 gui3.Apps3 INFO - Starting with profile Mon_Réseau_JMRI.3eec594e [main]
2021-05-09 11:58:44,707 node.NodeIdentity INFO - Using 0adc91f1-ffaa-462b-876a-5da7604188fc as the JMRI storage identity for profile id 3eec594e [AWT-EventQueue-0]
2021-05-09 11:58:44,828 xml.AbstractSerialConnectionConfigXml INFO - Starting to connect for "DCC++" [main]
2021-05-09 11:58:44,998 serial.DCCppAdapter INFO - ttyACM0 port opened at 115200 baud with DTR: true RTS: true DSR: false CTS: true CD: false [main]
2021-05-09 11:58:45,058 dccpp.DCCppInitializationManager INFO - DCC++ Initialization Complete with station type 'Unknown', version '0.0.0' and build 'Unknown' [main]
2021-05-09 11:58:45,356 util.FileUtilSupport INFO - File path program: is /home/christophe/Documents/trains électriques/dcc/centrale/JMRI/JMRI/ [main]
2021-05-09 11:58:45,357 util.FileUtilSupport INFO - File path preference: is /home/christophe/.jmri/Mon_Réseau_JMRI.jmri/ [main]
2021-05-09 11:58:45,358 util.FileUtilSupport INFO - File path profile: is /home/christophe/.jmri/Mon_Réseau_JMRI.jmri/ [main]
2021-05-09 11:58:45,358 util.FileUtilSupport INFO - File path settings: is /home/christophe/.jmri/ [main]
2021-05-09 11:58:45,359 util.FileUtilSupport INFO - File path home: is /home/christophe/ [main]
2021-05-09 11:58:45,359 util.FileUtilSupport INFO - File path scripts: is /home/christophe/Documents/trains électriques/dcc/centrale/JMRI/JMRI/jython/ [main]
2021-05-09 11:58:46,138 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:58:46,138 dccpp.DCCppCommandStation INFO - Station Type set to '' [AWT-EventQueue-0]
2021-05-09 11:58:46,139 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:58:46,140 dccpp.DCCppCommandStation INFO - Build set to '' [AWT-EventQueue-0]
2021-05-09 11:58:46,140 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:58:48,231 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: T consecutive timeouts = 0 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:58:50,232 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: Z consecutive timeouts = 1 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:58:52,233 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: S consecutive timeouts = 2 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:58:54,235 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: c consecutive timeouts = 3 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:58:56,236 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: T consecutive timeouts = 4 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:58:58,237 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: Z consecutive timeouts = 5 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:00,238 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: S consecutive timeouts = 6 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:02,239 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: T consecutive timeouts = 7 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:04,240 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: c consecutive timeouts = 8 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:06,242 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: Z consecutive timeouts = 9 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:08,243 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: S consecutive timeouts = 10 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:10,244 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: T consecutive timeouts = 11 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:12,245 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: Z consecutive timeouts = 12 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:14,247 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: c consecutive timeouts = 13 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:16,249 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: S consecutive timeouts = 14 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
2021-05-09 11:59:16,739 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:59:16,739 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:59:16,740 dccpp.DCCppReply ERROR - DCCppReply 'iDCC++ BASE STATION FOR ARDUINO UNO / L9110S / V-1.2.1+ / May 8 2021 / 21:48:06' not matched by '' [AWT-EventQueue-0]
2021-05-09 11:59:17,141 symbolicprog.CombinedLocoSelTreePane WARN - Found mfg 255 version 255; no such manufacturer defined [AWT-EventQueue-0]
2021-05-09 11:59:17,142 decoderdefn.IdentifyDecoder INFO - Decoder returns mfgID:255;modelID:255;productID:-1 [AWT-EventQueue-0]
2021-05-09 11:59:20,463 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message: c consecutive timeouts = 0 in serial.SerialDCCppPacketizer [serial.SerialDCCppPacketizer Transmit thread]
^C2021-05-09 11:59:25,123 managers.DefaultShutDownManager INFO - Normal termination complete [Thread-2]