From: Jan K. <ja...@dg...> - 2011-04-14 13:28:16
|
The mode 23 is sent from the clock to the computer (via the board) at the moment it is set by a person selecting this mode on the clock. This also goes for the start/stop button. The SETNRUN command is given by the computer to the clock (via the board) to set a time on the clock and to tell the clock which side should run. This only works on the clock in mode 23. If you want to show a message on the clock DGT_CMD_CLOCK_MESSAGE command (as described in the low level driver) must be used to display and a DGT_CMD_END_CLOCK_MESSAGE to return back to the time display. This results in the ready for disps acknowledgement, if I'm correct. To my knowledge the board does not store the clock acknowledgments, the driver has to do this. With kind regards, Met vriendelijke groet, Jan Krabbenbos Software Development Phone: +31(0) 53-4305195 Fax: +31(0)53-4329365 http://www.dgtprojects.com visit address: Hengelosestraat 66, 7514 AJ Enscheded, The Netherlands mail address: PO Box 1295, 7500 BG Enschede, The Netherlands >-----Original Message----- >From: Random Persons [mailto:net...@gm...] >Sent: donderdag 14 april 2011 13:16 >To: Main discussion place for dgtnix relative topics >Subject: Re: [Dgtnix-devel] Sim Info > >Well, I would say I am missing when exactly Mode 23 is sent to the PC. >Clock version info has a request, and I send the Mode 23 after I send >the clock version. > >Here is some of the low level driver code I used it to check my Mode >23 to make sure it was being sent correctly. > >http://ideone.com/q1WF3 > >There are three ack Messages in DGT_BWTIME this is from the low level >driver >0x81 // Ready for disps >0x88 // Start/Stop button pressed >0x8a // Clock Mode > >then there is the other one >SETNRUN (Clock Mode = 23) where it sets the clockMode to 23 I am guess >you send this BWTime when a DGT_CMD_CLOCK_SETNRUN is sent from the >computer. > > > |