+ /* check for 'V'ersion command */
+ if (rxcmd == 'V') {
+ sprintf(replybuf, "V1013\r");
+ tmp = strlen(replybuf);
+ rxp = 1;
+ goto rx_out;
+ }
+
+ /* check for serial 'N'umber command */
+ if (rxcmd == 'N') {
+ sprintf(replybuf, "N4242\r");
+ tmp = strlen(replybuf);
+ rxp = 1;
+ goto rx_out;
+ }
+
+ /* check for read status 'F'lags */
+ if (rxcmd == 'F') {
+ sprintf(replybuf, "F00\r");
+ tmp = strlen(replybuf);
+ rxp = 1;
+ goto rx_out;
+ }
+
+ /* correctly answer unsupported commands */
+ if (rxcmd == 'U') {
+ rxp = 2;
+ goto rx_out_ack;
+ }
+ if (rxcmd == 'S') {
+ rxp = 2;
+ goto rx_out_ack;
+ }
+ if (rxcmd == 's') {
+ rxp = 5;