Changeset 55 in projects


Ignore:
Timestamp:
Jan 1, 2010, 1:12:46 PM (10 years ago)
Author:
sven-win
Message:

Documation M200 Procotol: Some extensions that are neccessary

Location:
punch-card/protocols/documation-m200
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • punch-card/protocols/documation-m200/pc-uc-protocol.h

    r50 r55  
    5252#define M200_CLIENT_BINARY           '5'
    5353#define M200_CLIENT_RESET            '6'
     54#define M200_CLIENT_VERBOSE          '7'
    5455 
    5556/* Server response codes */
     
    6465#define M200_SERVER_ACK_BINARY       "205"
    6566#define M200_SERVER_ACK_RESET        "206"
     67#define M200_SERVER_ACK_VERBOSE      "207"
     68
     69/* Signal codes */
     70#define M200_SERVER_SIGNAL_PREFIX    "3"
     71#define M200_SERVER_SIGNAL_ERROR     "0"
     72#define M200_SERVER_SIGNAL_READY     "1"
     73#define M200_SERVER_SIGNAL_BUSY      "2"
     74#define M200_SERVER_SIGNAL_HCK       "3"
     75#define M200_SERVER_SIGNAL_MOCK      "4"
     76#define M200_SERVER_SIGNAL_RISE      "1"
     77#define M200_SERVER_SIGNAL_FALL      "0"
     78// can be composed by preprocessor, like in
     79// puts(M200_SERVER_SIGNAL_PREFIX M200_SERVER_SIGNAL_READY M200_SERVER_SIGNAL_RISE " Ready rising);
    6680
    6781#define M200_SERVER_ILLEGAL_COMMAND  "500"
    6882#define M200_SERVER_ILLEGAL_FOOBAR   "501"
    6983#define M200_SERVER_ILLEGAL_FORMAT   "502"
     84#
    7085
    7186#define M200_SERVER_HEX_PREFIX       "6"
     
    7388#define M200_SERVER_BINARY_PREFIX    "8"
    7489#define M200_SERVER_BINARY           "800"
     90
     91#define M200_SERVER_FATAL_PREFIX      "9"
     92#define M200_SERVER_FATAL_CARD        "900"
     93#define M200_SERVER_FATAL_PRINT_BUFFER "905"
     94
    7595 
    7696
  • punch-card/protocols/documation-m200/protocol.htm

    r50 r55  
    137137<tr><td>4       <td>Set output to <i>debug output</i>
    138138<tr><td>5       <td>Set output to <i>binary jones output</i>
    139 <tr><td>6       <td>Reset internal buffers and stop punching
     139<tr><td>6       <td>Reset internal buffers and stop punchingou
     140<tr><td>7       <td>Toggle very verbose output (experts only)
    140141</table>
    141142
     
    148149<tr>                      <td>101 help output                          <td>Commenting and help output on any other [101; 199] line
    149150
    150 <tr><td rowspan="7">200   <td>200 v1.0 Welcome to M200 Card Reader     <td>Answer to Connect request: Print out version (in v[Major].[Minor] format) and welcome message
    151 <tr>                      <td>201 Going to start soon...               <td rowspan="6">Acknowledgements to request code, code [x] will produce 20[x] as answer
     151<tr><td rowspan="8">200   <td>200 v1.0 Welcome to M200 Card Reader     <td>Answer to Connect request: Print out version (in v[Major].[Minor] format) and welcome message
     152<tr>                      <td>201 Going to start soon...               <td rowspan="7">Acknowledgements to request code, code [x] will produce 20[x] as answer
    152153                                                                                       (See table above)
    153154<tr>                      <td>202 Stopping as soon as possible...
     
    156157<tr>                      <td>205 Set output to JONES
    157158<tr>                      <td>206 Performing a soft RESET...
     159<tr>                      <td>207 Verbose output ON
    158160
    159161<tr><td rowspan="6">300   <td>301 ERROR rising                         <td rowspan="6">Scheme: 3[x][y], where [x] = Signal line, [y] = 1 or 0, depending on state
     
    180182<tr>                      <td>779  111011011 101
    181183
    182 <tr><td rowspan="5">800   <td>800 BINARY                               <td>Binary Jones output (123 bytes) starting after newline. See next chapter for format
     184<tr><td rowspan="2">800   <td>800 BINARY                               <td>Binary Jones output (123 bytes) starting after newline. See next chapter for format
    183185<tr>                      <td>808 FINISHED                             <td>Binary Jones output finished (maybe... we'll look)
    184186
     187<tr><td rowspan="2">900   <td>900 Bad card! Stopping reader            <td>Bad device behaviour, possibility of data loss! Stop everything immediately.
     188<tr>                      <td>905 Printer Buffer Full                  <td>Ugly code design caused status output information loss (no data loss)
    185189</table>
    186190
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License