dcc-ex / basestation-ex Goto Github PK
View Code? Open in Web Editor NEWPartial re-write of DCC++, maintained for historical purposes. Not actively bug-fixed or developed
Home Page: https://dcc-ex.com
Partial re-write of DCC++, maintained for historical purposes. Not actively bug-fixed or developed
Home Page: https://dcc-ex.com
When I was changing all my current code to deal with milliamps (but also keeping the raw pin reading) I saw that this code separately handles reading the current sense pin. Reading a CV, for example:
fills 8 registers by:
taking ACK_BASE_COUNT number of readings
averages them
sends 3 reset packets, 5 verify packets and 6 idle packets (In DCC++ classic, the last one was 1 reset)
takes ACK_SAMPLE_COUNT number of readings
subtract the base reading to get the difference
smooths it
then sees if that value is greater than our ACK_SAMPLE Threshold
If so, the decoder sent a current spike acknowledge, then does a bWrite
then repeats this all again to verify and at the end, we added one more reset packet
Does that look good now? Who can test?
How does this handle different motor controllers? If current sense device reports a different number of amps per millivolts on that pin, Don't the variables have to be tweaked experimentally for each board??
If I change this to actual current in milliamps, would that make the math better or worse? With pin values can be 11 or 12 for a BTS7960B at 5 Amps (I think). But we know the Uno is 300 means about 890mA. And we know programming needs to be 250ma or less or we are supposed to throw an overcurrent condition. Regardless of max current, we are always looking for a difference of some amount. What is that amount? And again, does that mean a table for every board?
Last, what about stay alive caps? Is DCC++ designed so that there is voltage on the track so the caps are charged or does it only pulse during the small time something is sent to the loco? That would mean we have to account for caps blocking us sensing the pulse since they may filter it.
README.md mentions a sketch file that is missing
To utilize this sketch, simply download a zip file of this repository and open the file DCCpp_Uno.ino within the DCCpp_Uno folder using your Arduino IDE.
Sent by ([email protected]). Created by fire.
Name: ManiA
Email: [email protected]
Timezone: +5:30
Software: DCC++ EX
Version: 2
Title: Just for Testing please ignore
Description: This is with attachment.
Attachments:
Sent by ([email protected]). Created by fire.
Name: LarryDribin
Email: [email protected]
Timezone: -6
Software: CommandStationEx
Version: 0
Title: CommandStation-EX intermittently supports writing CVs
Description: When I change Horn in JMRI, it changes the Bell.
Sent by ([email protected]). Created by fire.
Name: GregKaye
Email: [email protected]
Timezone: 10
Software: EXInstaller
Version: 1.0
Title: Brand new mega arrive today and cant finf the com port
Description: Hi I have a brand new Arduino mega 2560 that arrive today i have tried to use the n installer and it will not find my com port if i use Arduino IDE it finds the com port . I have previously had issues with dcc++ and jmri working for a few minutes then timing out so i bought a new Arduino Motor Shield Genuine (cost AUD $41 ) as i am in Australia and haven't been able to buy deek robot motor Shield and a clone mega 2560 as a genuine are ($80aud ) and due to COVID it is very hard to find stock and delivery times are 4 + weeks or more So i decided to buy new Clone mega and new motor shield so i know that they should be working and after listening to Toms Trains and things about dcc++ ex and the interview with one of the developers a couple of days ago . i thought it was time to ask for some help . . Has any body had issue with the new software not finding the com port ??
Remaining email Quota: 73
Attachments:
Sent by ([email protected]). Created by fire.
Mk
[email protected]
DCC++ EX
DCC++ EX
2.1
Title
Provide more details
undefined
Fred: Can you have Fire-Bot send emails to the Support-Planning Repo instead of the BaseStation-EX Repo.
Thanks,
Larry
Currently the PROG track sends the CV read/write and immediately sends a decoder reset packet before checking for decoder ACK. It should send the CV read/write command and only send the reset packet AFTER processing any decoder ACK responses.
Sent by ([email protected]). Created by fire.
Name: ManiAkasapu
Email: [email protected]
Timezone: 5.75
Software: CommandStationEx
Version: 2.2
Title: Just for Testing please ignore
Description: Details without attachment.
Remaining email Quota: 74
Greetings, fire here!
@FrightRisk recently invited @fire-bot to this repository. Before fire is enabled, @FrightRisk needs to complete a few steps:
Only @FrightRisk will be able to enable fire using the above link. If someone added fire by mistake, feel free to remove @fire-bot from your repo's collaborators.
Sent by ([email protected]). Created by fire.
Name:Mani
DescriptionForm embedded in Mkdocs.. With attachment
Attachments:
Sent by ([email protected]). Created by fire.
Name: ManiA
Email: [email protected]
Timezone: +5:30
Software: DCC++ EX
Version: 2
Title: Another one for testing please ignore
Description: This is without Attachment.
Sent by ([email protected]). Created by fire.
Name: ManiA
Email: [email protected]
Timezone: -1
Software: EXInstaller
Version: 1
Title: Just testing one more time
Description: All picklists are working
Attachments:
Sent by ([email protected]). Created by fire.
ghj
[email protected]
DCC++ EX
DCC++ EX
2.1
Title
Provide more detailsdsfsd
undefined
Sent by ([email protected]). Created by fire.
Name: ff
Email: [email protected]
Timezone: -12
Software: CommandStationEx
Version: 0
Title: df
Description:
Sent by ([email protected]). Created by fire.
Name: RogerBeschizza
Email: [email protected]
Timezone: BST [GMT+1}
Software: Throttle
Version: 3.0.0
Title: Test of Support Form
Description: Looks great. Well done.
Attachments:
I would like to calibrate current sample max to be defined in each supported motor shield. ultimately being selectable for the high power motor shields would be nice as well, something like 3A, 5A,or 10A for the BTS7960 for instance but at least getting the right levels in for a default without user having to go change the code. If could choose in Amps rather than 0-1023 would be desirable as well.
Hello all,
I was directed to this GIT from a comment made on the old Site DCC++. There is a dialog that explains a bit more.
There are DCC packets of up to ten bytes of data. For example the CV XPOM command which you can find in the RCN214 spec of the RailCommunity. The original code does not handle such large packets. I have adapted the "loadDccPacket" routine to generate the bit stream. If there is interest to include it, just let me know.
DCC++ is just great for starting digital model railroading!!!!
Sent by ([email protected]). Created by fire.
Name: Mani Akasapu
Email: [email protected]
Timezone: 4
Software: EXInstaller
Version: 3.0
Title: Testing version picklist
Description: With Attachment.
Remaining email Quota: 73
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.