LOCODUINO

Aide
Forum de discussion
Dépôt GIT Locoduino
Flux RSS

jeudi 28 mars 2024

Visiteurs connectés : 52

Bibliothèque DCCpp

Encore un DCC++ ? Mais à quoi ça sert ?

. Par : Thierry

Pourquoi une bibliothèque ? Nous sommes devant le cas typique d’un projet dont une bonne partie du code doit pouvoir être ré-utilisée dans d’autres projets. C’est le but d’une bibliothèque, et c’est ce que j’ai décidé de faire après avoir vu tout le monde ici s’en servir, et l’avoir moi-même utilisé dans au moins deux projets différents : (...)

Retourner à l'article

Vous répondez à :

Bibliothèque DCCpp 29 février 2020 21:35, par CLB89

Bonsoir Thiéry,
Juste une mise à jour après de nouveaux essais :
1. Environnement : croquis inchangé, Arduino IDE 1.8.12, JMRI 4.18, Arduino Mega 2560 + Shield Ethernet V2, Configuration DCCpp.h :
« #define USE_EEPROM
//#define USE_OUTPUT
//#define USE_SENSOR
#define USE_TEXTCOMMAND
//#define USE_ETHERNET_WIZNET_5100
#define USE_ETHERNET_WIZNET_5500
//#define USE_ETHERNET_WIZNET_5200
//#define USE_ETHERNET_ENC28J60 ».

2. Durant la compilation du croquis j’ai le message suivant :
« C :\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\libraries\Ethernet\src\utility/w5100.h:457:25 : warning : result of ’(256 << 8)’ requires 18 bits to represent, but ’int’ only has 16 bits [-Wshift-overflow=]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
 ^ »

3. Le log session de JMRI contient les informations suivantes :

« 2020-02-29 15:41:41,208 util.Log4JUtil INFO - ****** JMRI log ******* [main]
2020-02-29 15:41:41,219 util.Log4JUtil INFO - This log is appended to file : C :\Users\claud\JMRI\log\messages.log [main]
2020-02-29 15:41:41,220 util.Log4JUtil INFO - This log is stored in file : C :\Users\claud\JMRI\log\session.log [main]
2020-02-29 15:41:41,227 apps.Apps INFO - PanelPro version 4.18+R37ad3d0 starts under Java 1.8.0_241 on Windows 10 x86 v10.0 at Sat Feb 29 15:41:41 CET 2020 [main]
2020-02-29 15:41:41,448 apps.Apps INFO - Starting with profile Mon_Réseau_JMRI.3e952548 [main]
2020-02-29 15:41:41,632 node.NodeIdentity INFO - Using 6fee769e-e147-4c16-8ee9-9d4a32c78f9c as the JMRI storage identity for profile id 3e952548 [AWT-EventQueue-0]
2020-02-29 15:41:41,817 dccpp.DCCppReply ERROR - DCCppReply value index too big. idx = 1 msg = iDCCpp LIBRARY BASE STATION FOR ARDUINO : V-2.0.0 / Feb 29 2020 15:39:56 [AWT-EventQueue-0]
2020-02-29 15:41:41,818 dccpp.DCCppReply ERROR - DCCppReply value index too big. idx = 2 msg = iDCCpp LIBRARY BASE STATION FOR ARDUINO : V-2.0.0 / Feb 29 2020 15:39:56 [AWT-EventQueue-0]
2020-02-29 15:41:52,082 util.FileUtilSupport INFO - File path program : is C :\Program Files (x86)\JMRI\ [main]
2020-02-29 15:41:52,082 util.FileUtilSupport INFO - File path preference : is C :\Users\claud\JMRI\Mon_Réseau_JMRI.jmri\ [main]
2020-02-29 15:41:52,083 util.FileUtilSupport INFO - File path profile : is C :\Users\claud\JMRI\Mon_Réseau_JMRI.jmri\ [main]
2020-02-29 15:41:52,083 util.FileUtilSupport INFO - File path settings : is C :\Users\claud\JMRI\ [main]
2020-02-29 15:41:52,083 util.FileUtilSupport INFO - File path home : is C :\Users\claud\ [main]
2020-02-29 15:41:52,083 util.FileUtilSupport INFO - File path scripts : is C :\Program Files (x86)\JMRI\jython\ [main]
2020-02-29 15:41:52,693 PanelPro.PanelPro INFO - Main initialization done [main]
2020-02-29 15:42:29,356 audio.JoalAudioFactory INFO - Initialised JOAL using OpenAL : vendor - OpenAL Community version - 1.1 ALSOFT 1.15.1 [Listed Table Generation]
2020-02-29 15:43:13,831 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message : T consecutive timeouts = 0 in network.DCCppEthernetPacketizer [network.DCCppEthernetPacketizer Transmit thread]
2020-02-29 15:43:18,832 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message : Z consecutive timeouts = 1 in network.DCCppEthernetPacketizer [network.DCCppEthernetPacketizer Transmit thread]
2020-02-29 15:51:28,411 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message : T consecutive timeouts = 0 in network.DCCppEthernetPacketizer [network.DCCppEthernetPacketizer Transmit thread]
2020-02-29 15:54:24,323 log.LogPanel ERROR - ---Send T command --- [AWT-EventQueue-0]
2020-02-29 15:54:26,842 log.LogPanel ERROR - ---Send T command --- [AWT-EventQueue-0]
2020-02-29 15:55:46,291 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message : T consecutive timeouts = 0 in network.DCCppEthernetPacketizer [network.DCCppEthernetPacketizer Transmit thread]
2020-02-29 16:01:05,370 jmrix.AbstractMRTrafficController WARN - Timeout on reply to message : Z consecutive timeouts = 0 in network.DCCppEthernetPacketizer [network.DCCppEthernetPacketizer Transmit thread]
2020-02-29 16:02:46,099 audio.DefaultAudioManager INFO - Shutting down active AudioFactory [AWT-EventQueue-0]
2020-02-29 16:02:46,204 managers.DefaultShutDownManager INFO - Normal termination complete [AWT-EventQueue-0]
 »

Merci de votre aide,
Claude

Qui êtes-vous ?
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.

Lien hypertexte

(Si votre message se réfère à un article publié sur le Web, ou à une page fournissant plus d’informations, vous pouvez indiquer ci-après le titre de la page et son adresse.)

98 Messages

Rubrique Bibliothèques

Bibliothèque Accessories (1)

Bibliothèque Accessories (2)

Un décodeur d’accessoires universel (1)

Un décodeur d’accessoires universel (2)

Un décodeur d’accessoires universel (3)

Bibliothèque LcdUi (1)

Bibliothèque LcdUi (2)

La bibliothèque Servo

Bibliothèque SoftWare Serial

Bibliothèque Serial

Bibliothèque EEPROM

Bibliothèque Wire : I2C

Bibliothèque LCD

La bibliothèque ScheduleTable

Bibliothèque MemoryUsage

Bibliothèque EEPROMextent

La bibliothèque SlowMotionServo

Bibliothèque Commanders

Bibliothèque DCCpp

Bibliothèque DcDccNanoController

La bibliothèque ACAN (1)

La bibliothèque ACAN (2)

Bibliothèque LightEffect

Les derniers articles

Bibliothèque LightEffect


Christian

La bibliothèque ACAN (2)


Jean-Luc

La bibliothèque ACAN (1)


Jean-Luc

La bibliothèque SlowMotionServo


Jean-Luc

Bibliothèque DCCpp


Thierry

Bibliothèque DcDccNanoController


Thierry

Bibliothèque LcdUi (2)


Thierry

Bibliothèque LcdUi (1)


Thierry

Bibliothèque Accessories (2)


Thierry

Bibliothèque Accessories (1)


Thierry

Les articles les plus lus

Bibliothèque Wire : I2C

Bibliothèque SoftWare Serial

La bibliothèque Servo

La bibliothèque SlowMotionServo

Bibliothèque DcDccNanoController

Bibliothèque EEPROM

Bibliothèque DCCpp

Bibliothèque LCD

Bibliothèque MemoryUsage

Bibliothèque Accessories (1)