BaseStation icon indicating copy to clipboard operation
BaseStation copied to clipboard

Decoder reading and writing CVs

Open WhitePassRanger opened this issue 6 years ago • 9 comments

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!

WhitePassRanger avatar Oct 13 '18 03:10 WhitePassRanger

What motor shield are you using?

atanisoft avatar Oct 13 '18 13:10 atanisoft

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 <[email protected]mailto:[email protected]> 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.

WhitePassRanger avatar Oct 13 '18 13:10 WhitePassRanger

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

atanisoft avatar Oct 13 '18 13:10 atanisoft

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 <[email protected]mailto:[email protected]> 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.

WhitePassRanger avatar Oct 13 '18 14:10 WhitePassRanger

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

Erich

EFA57 avatar Oct 13 '18 14:10 EFA57

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

WhitePassRanger avatar Oct 13 '18 14:10 WhitePassRanger

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.

EFA57 avatar Nov 19 '18 17:11 EFA57

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 [email protected] 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.

WhitePassRanger avatar Nov 19 '18 23:11 WhitePassRanger

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...

sengels avatar Jan 13 '19 00:01 sengels