Trains.com

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

NCE cab-bus LCD character translation

746 views
2 replies
1 rating 2 rating 3 rating 4 rating 5 rating
  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
NCE cab-bus LCD character translation
Posted by gregc on Saturday, March 4, 2017 9:27 AM

the Cab Bus Communications Protocol describes the messages and timing.   But it's a bit unclear how to interpret the character strings used to update the LCD.

stripping the 8th bit matches ASCII characters.  0xFA suggests an end-of-string (i.e. NULL).   But it looks like other byte sequences suggest what the cab should display in a meaningful way (e.g loco number and speed) .

does anyone have any knowledge about how to translate the LCD strings from the command station?

 

thanks

greg - Philadelphia & Reading / Reading

  • Member since
    February 2002
  • From: Reading, PA
  • 30,002 posts
Posted by rrinker on Saturday, March 4, 2017 10:09 AM

 Looks like Page 4 gives the bit patterns that get sent for a loco address and for a speed. Requires a little binary calculation to reassemble the parts into a plain decimal number to display but nothing too fancy. I would expect that for loco information you would get those opcodes rather than the ones at th ebeginning of the section which say they display the next 8 bytes on line 1 or line 2 of the display - those are what it sends to display menu selections and so forth.

                          --Randy

 


Modeling the Reading Railroad in the 1950's

 

Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.

  • Member since
    July 2009
  • From: lavale, md
  • 4,678 posts
Posted by gregc on Saturday, March 4, 2017 10:16 AM

Randy

your referencing the 0XDB loco info cmd which reports the direction, speed and loco number.   Not sure how this is used.

the LCD update cmds: 0xC0-C7 provide the information on the LCD.  Contrary to what I suggested initially, I see now the that coding is similar to ASCII and also indicates the direction, speed and loco number.

I'm fiddling with the conversion to ASCII.   Might be as simple as inverting the 6th and 7th bits.

greg - Philadelphia & Reading / Reading

Subscriber & Member Login

Login, or register today to interact in our online community, comment on articles, receive our newsletter, manage your account online and more!

Users Online

There are no community member online

Search the Community

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT
Model Railroader Newsletter See all
Sign up for our FREE e-newsletter and get model railroad news in your inbox!