756 { |
756 { |
757 memset(readBufbig, 0, MAX_BUFFER_SIZE); // clear the read buffer |
757 memset(readBufbig, 0, MAX_BUFFER_SIZE); // clear the read buffer |
758 memset(writeBufbig, i, MAX_BUFFER_SIZE); // fill the write buffer with known data |
758 memset(writeBufbig, i, MAX_BUFFER_SIZE); // fill the write buffer with known data |
759 _printf(_L("%d: "), (TInt)i); |
759 _printf(_L("%d: "), (TInt)i); |
760 WriteData(writeBufbig, 64); |
760 WriteData(writeBufbig, 64); |
761 //FlushFileBuffers(hSerial); |
|
762 ReadData(readBufbig, 64); |
761 ReadData(readBufbig, 64); |
763 for (int j=0; j<64; j++) |
762 for (int j=0; j<64; j++) |
764 { |
763 { |
765 if (readBufbig[j] != i) |
764 if (readBufbig[j] != i) |
766 { |
765 { |
804 _printf(_L("8. Break (test 2.7)\n")); |
803 _printf(_L("8. Break (test 2.7)\n")); |
805 _printf(_L("9. Event notification, signal change (test 2.8.1)\n")); |
804 _printf(_L("9. Event notification, signal change (test 2.8.1)\n")); |
806 _printf(_L("a. Event notification, flow control (test 2.8.2)\n")); |
805 _printf(_L("a. Event notification, flow control (test 2.8.2)\n")); |
807 _printf(_L("b. Event notification, config change (test 2.8.3)\n")); |
806 _printf(_L("b. Event notification, config change (test 2.8.3)\n")); |
808 _printf(_L("c. Second client (test 2.9)\n")); |
807 _printf(_L("c. Second client (test 2.9)\n")); |
809 /* _printf(_L("d. ACM request, encapsulated command (test 2.10.1)\n")); |
808 _printf(_L("p. Loopback test (test 2.12)\n")); |
810 _printf(_L("e. ACM request, break (test 2.10.2)\n")); |
|
811 _printf(_L("f. ACM request, setting feature (test 2.10.3)\n")); |
|
812 _printf(_L("g. ACM request, clearing feature (test 2.10.4)\n")); |
|
813 _printf(_L("h. ACM request, setting line coding (test 2.10.5)\n")); |
|
814 _printf(_L("i. ACM request, control line state (test 2.10.6)\n")); |
|
815 _printf(_L("j. ACM request, encapsualted response (test 2.10.7)\n")); |
|
816 _printf(_L("k. ACM request, comms feature (test 2.10.8)\n")); |
|
817 _printf(_L("l. ACM request, getting line coding (test 2.10.9)\n")); |
|
818 _printf(_L("m. ACM Notifications, send serial state (test 2.11.1)\n")); |
|
819 _printf(_L("n. ACM Notifications, network status (test 2.11.2)\n")); |
|
820 _printf(_L("o. ACM Notifications, response available (test 2.11.3)\n")); |
|
821 */ _printf(_L("p. Loopback test (test 2.12)\n")); |
|
822 _printf(_L("\n")); |
809 _printf(_L("\n")); |
823 _printf(_L("\nSelection (x to exit): ")); |
810 _printf(_L("\nSelection (x to exit): ")); |
824 |
811 |
825 char ch = (char) _getch(); |
812 char ch = (char) _getch(); |
826 _printf(_L("\n")); |
813 _printf(_L("\n")); |