DccPlusPlus / BaseStation

DCC++ Base Station for Arduino Uno and Mega
207 stars 150 forks source link

Decoder reading and writing CVs #37

Open WhitePassRanger opened 5 years ago

WhitePassRanger commented 5 years ago

I've seen a few videos online that DCC++ can read and write cv's, but I cannot get it to work. I am currently using the arduino and a command station, it will run the trains great, even via my phone! Is there something I need to do differently to read and write? I get "123" on every field I try and read.

Not sure if this is my operation issue or if its still under development.

Thanks for your help in advance!

atanisoft commented 5 years ago

What motor shield are you using?

WhitePassRanger commented 5 years ago

RoboJax L298P Shield R3 DC Motor Driver Module 2A H-Bridge 2 way For Arduino

This is the closest one I could find that matched the Arduino motor shield, I found others that looked completely different.

Thanks,

Matt

Sent from my iPhone!

"Ruthlessly compete with your own best self!" Apollo X Engineers

On Oct 13, 2018, at 07:19, atanisoft notifications@github.com<mailto:notifications@github.com> wrote:

What motor shield are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DccPlusPlus/BaseStation/issues/37#issuecomment-429541319, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqEEGmqRqiurnruJqjkWY7uTUp4z-K6mks5ukehugaJpZM4XabI9.

atanisoft commented 5 years ago

That looks correct from what I can tell. Check the serial console output for any clues.

WhitePassRanger commented 5 years ago

I get output from Arduino serial monitor but can't run JMRI because the port is busy. Is there another way to run JMRI and monitor at the same time?

Sent from my iPhone!

"Ruthlessly compete with your own best self!" Apollo X Engineers

On Oct 13, 2018, at 07:29, atanisoft notifications@github.com<mailto:notifications@github.com> wrote:

That looks correct from what I can tell. Check the serial console output for any clues.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DccPlusPlus/BaseStation/issues/37#issuecomment-429542017, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqEEGsn_mF3XHM6_f6F5dabVZ4WXkb8Bks5ukerHgaJpZM4XabI9.

EFA57 commented 5 years ago

You need to close the controller to free the serial connection for JMRI to work

Erich

WhitePassRanger commented 5 years ago

Okay, now I'm feeling really green!! How do you close the Arduino controller without the serial monitor shutting down?

EFA57 commented 5 years ago

Sorry,

I just saw your update.

As long as the Base Station is running and connected to the PC you should be able to run JMRI ie DecoderPro and set it to the same port as the IDE & the Sketch and let DecoderPro know to access DCC++ and follow their instructions to access programming track and then read the decoder.

You MAY need to up the current from the default 300 to about 750 for HO.

Also make sure you are powering the Motor Shield with around 12 v min.

WhitePassRanger commented 5 years ago

No dice, JMRI will not access the port because it says it is already in use and opens into preferences to select a different port.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: EFA57 notifications@github.com Sent: Monday, November 19, 2018 10:10:52 AM To: DccPlusPlus/BaseStation Cc: WhitePassRanger; Author Subject: Re: [DccPlusPlus/BaseStation] Decoder reading and writing CVs (#37)

Sorry,

I just saw your update.

As long as the Base Station is running and connected to the PC you should be able to run JMRI ie DecoderPro and set it to the same port as the IDE & the Sketch and let DecoderPro know to access DCC++ and follow their instructions to access programming track and then read the decoder.

You MAY need to up the current from the default 300 to about 750 for HO.

Also make sure you are powering the Motor Shield with around 12 v min.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DccPlusPlus/BaseStation/issues/37#issuecomment-439969447, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqEEGveyyjUKrd_ZHR08Ae3lBH-d6IKUks5uwuYcgaJpZM4XabI9.

sengels commented 5 years ago

You can't run both the serialmonitor and JMRI (at least not without some black magic software). If you want to do programming, you need to make sure to connect your programming track to the second motor output (B)... The primary motor (A) won't give any programming output...