Giter Club home page Giter Club logo

arduinocmri's People

Contributors

ensoniq avatar k4kfh avatar madleech avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduinocmri's Issues

Bits other than 0 not working?

I'm not 100% sure if this is a bug or if it's just me doing something wrong, but I can only get bit 0 to work. I've got some if statements that deal with the results, and one works and the others don't.

Is there perhaps a better documented example of many outputs? The comments in the example there now are a little lacking.

Curious about porting this project for Energia (TI MSP430 Launchpad Family)

I have spent the day fiddling with your library trying to see if I could get it to port over into the Energia "Arduino Fork IDE". I was not having any success. I as well has many others who play with the MSP430's would get a lot of play out of this. I'm will to help with testing on the MSP430 platform.

Delay in transmit prevents usage

"void CMRI::transmit()
{
delay(50); // tiny delay to let things recover"

50 milliseconds is not a tiny delay, and it prevents things like servos from working well. Was this meant to be "delayMicroseconds(50)" or can it be changed to a non-blocking delay?

Errors in the JMRI console?

Whenever I close a JMRI turnout that's assigned to a CMRI bit, the console gives an error like these:

2016-07-07 16:21:27,084 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 10 was 41 52 00 00 00 [Receive]
2016-07-07 16:21:27,089 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 10 was 41 52 00 00 00 [Receive]
2016-07-07 16:21:33,494 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]
2016-07-07 16:21:33,498 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]
2016-07-07 16:21:33,554 jmrix.AbstractMRTrafficController     ERROR - reply complete in unexpected state: 15 was 41 52 00 00 00 [Receive]

I've also run into some issues where the Arduino seems to be "imagining" bits. It will act on some random bit being set even if I don't have that bit set up to do anything in JMRI. I may be posting this in the wrong place; it very well could be a bug with JMRI, but I wanted to check here first.

Thanks for your patience. I know I've posted a ton of issues, so I appreciate your help.

Compiling error message in Arduino IDE

When I compile my program, I get this warning message:

/home/hampton/Arduino/libraries/CMRI/CMRI.cpp: In member function 'uint8_t CMRI::_decode(uint8_t)':
/home/hampton/Arduino/libraries/CMRI/CMRI.cpp:240:9: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null]
  return NULL;
         ^
/home/hampton/Arduino/libraries/CMRI/CMRI.cpp:252:10: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null]
   return NULL;
          ^

I'm not experienced enough to know what this means, or if I should even worry about it, but I've never seen this error before when using this library.

The process function does not return the packet type processed

Despite what the README and function documentation in the cpp source file says the process function simply returns a bool, true for "poll" or "set" otherwise false. That's a shame as I have an application where if no "poll" is processed I'd like to trigger a transmit to cause an immediate update.

Example RS485 code not working?

Hi, I've wired up the circuit described on your website using a single USB RS485 transciever and an Arduino Nano with a MAX485 on a breadboard. For some reason I cannot get anything to happen. The Arduino stays in RX mode constantly according to the LEDs, so not sure why it's doing that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.