You are on page 1of 11

*********************************************************

* USB Test Menu *


*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > A
PLC_USB_1 :
USB module already initialized
Completed.
PLC_USB_2 :
USB module initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
USB module already initialized
Completed.
PLC_USB_3 :
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
USB module initialized
USB module un-initialized
Completed.
*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > B
PLC_USB_4 :
USB module un-initialized
Completed.
PLC_USB_5 :
USB module un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
USB module already un-initialized
Completed.
*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > C
PLC_USB_6 : ???
Detach USB module from the Host PC...(then press enter)
Completed.
PLC_USB_7 : ???
Connect USB module to the Host PC...(then press enter)
Completed.
PLC_USB_8 :
Connect USB module to the Host PC. This test case will check device status durin
g device enumeration...(then press enter)
Enumeratoin In Progress ...
USB module is attacched to Host PC.
USB module is attacched to Host PC.
USB module is attacched to Host PC.
USB module is attacched to Host PC.
USB module is attacched to Host PC.
USB module is attacched to Host PC.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in addressed state.
USB module is in configured state.
Enumeration Done.
Completed.
PLC_USB_9 :
Perform device status test after enumeration is completed.(then press enter)
USB module is in configured state.
Completed.
PLC_USB_10 :
Perform device status test without initializing the USB module...(then press ent
er)
USB module is detached from Host PC..
Completed.

*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > D
Temporary data pattern created.
0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70
0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x
65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x
75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69
0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79
0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0
x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0
x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x7
2 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x6
8 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76
0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c
0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x
61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x
71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65
0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75
0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0
x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0
x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6
e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x6
4 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72
0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68
0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x
77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x
6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61
0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71
0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0
x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0
x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6
a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7
a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e
0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64
0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x
73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x
69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72
Before performing this test connect the device to Host PC and run host_usb_recei
ve application ...(then press enter)
52PLC_USB_11 :
20bytes sent to host.
Completed.
PLC_USB_12 :
40bytes sent to host.
Completed.
PLC_USB_13 :
64bytes sent to host.
Completed.
PLC_USB_14 :
80bytes sent to host.
Completed.
PLC_USB_15 :
128bytes sent to host.
Completed.
PLC_USB_16 :
Invalid buffer handler passed
Completed.
PLC_USB_17 :
Invalid buffer size.
Completed.
PLC_USB_18 :
Disconnect the device and try sending the data to host pc.
Press any key to start the test ...
Device not enumerated.
Test Completed

PLC_USB_19 :
Connect the device to host and press enter to enumerate...
Enumeration Done.
Disconnect the device when transfer is in progress. and reconnect.
Press any key to start the test ...
Transfer started ...(waiting for disconnection from host)
Device not enumerated.
Total of 2560bytes sent to host.
Completed.

*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > E
PLC_USB_20 :
On Host, run host_usb_send application to send 20bytes data and press enter ...
20bytes received from host.
Recevied data:
mnopqrstuvwxyzabcdefg
Test Completed
PLC_USB_21 :
On Host, run host_usb_send application to send 40bytes data and press enter ...
40bytes received from host.
Recevied data:
mnopqrstuvwxyzabcdefghijklmnopqrstuvwxyza
Test Completed
PLC_USB_22 :
On Host, run host_usb_send application to send 64bytes data and press enter ...
64bytes received from host.
Recevied data:
mnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxm
Test Completed
PLC_USB_23 :
On Host, run host_usb_send application to send 80bytes data and press enter ...
80bytes received from host.
Recevied data:
mnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxmnopqrstuvwxyzab
c
Test Completed
PLC_USB_24 :
On Host, run host_usb_send application to send 128bytes data and press enter ...
128bytes received from host.
Recevied data:
mnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxmnopqrstuvwxyza
bcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxm
Test Completed
PLC_USB_25 :
Invalid buffer handler passed
Test Completed
PLC_USB_26 :
Invalid buffer size.
Test Completed
PLC_USB_27 : ???

PLC_USB_28 : ???
*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > Before performing this test connect the device to Host PC and run enum
eration test...(then press enter)
PLC_USB_29 :
Enumeration Test: Connect the device to Host PC before running this test.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_30 :
Disconnect the device from Host PC before running this test.
Press enter to start the test ...
Device disconnected from Host.
Test Completed
PLC_USB_31 :
Connect the device to Host PC before running this test.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_32 :
Connect the device to Host PC before running this test.
Disconnect device while test is in progress.
Press enter to start the test ...
Enumeration Done.
Enumeration Done.
Device disconnected from Host.
Test Completed
PLC_USB_33 :
Disconnect the device from Host PC before running this test.
Connect device while test is in progress.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_34 :
Connect the device to Host PC before running this test.
Send some data from host while running this test.
Press enter to start the test ...
Enumeration Done.
Enumeration Done.
Enumeration Done.
Enumeration Done.
Data available from host.
Test Completed
PLC_USB_35 :
Connect and disconnect the device to Host PC while test is in progress.
Send data from host(after connecting the device) to stop test.
Press enter to start the test ...
Device disconnected from Host.
Data available from host.
Test Completed

*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > F
Before performing this test connect the device to Host PC and run enumeration te
st...(then press enter)
PLC_USB_29 :
Enumeration Test: Connect the device to Host PC before running this test.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_30 :
Disconnect the device from Host PC before running this test.
Press enter to start the test ...
Device disconnected from Host.
Test Completed
PLC_USB_31 :
Connect the device to Host PC before running this test.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_32 :
Connect the device to Host PC before running this test.
Disconnect device while test is in progress.
Press enter to start the test ...
Enumeration Done.
Enumeration Done.
Device disconnected from Host.
Test Completed
PLC_USB_33 :
Disconnect the device from Host PC before running this test.
Connect device while test is in progress.
Press enter to start the test ...
Enumeration Done.
Test Completed
PLC_USB_34 :
Connect the device to Host PC before running this test.
Send some data from host while running this test.
Press enter to start the test ...
Enumeration Done.
Enumeration Done.
Enumeration Done.
Enumeration Done.
Data available from host.
Test Completed
PLC_USB_35 :
Connect and disconnect the device to Host PC while test is in progress.
Send data from host(after connecting the device) to stop test.
Press enter to start the test ...
Data available from host.
Test Completed
*********************************************************
* USB Test Menu *
*********************************************************
A USB init test
B USB uninit test
C USB get device status test
D USB send data test
E USB receive data test
F USB atom poll test
G USB misc test
X Exit to Main Menu
*********************************************************
Please select an option........
PLC_CMD > G
PLC_USB_36 :
Send 64bytes data from host and press enter ...
64bytes received from host.
Recevied data:
m n o p q r s t u v w x y z a b c d e f g h i j k l m n o p q r s t u v w x y z
a b c d e f g h i j k l m n o p q r s t u v w x m
On Host, run host_usb_receive application to recevie 64bytes dataand press enter
...
64bytes sent to host.
Test Completed
/*** Host side send data log ****/
./host_usb_send.o /dev/ttyACM0 64
Temporary data pattern created.
0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70
0x71 0x72 0x73
0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69
0x6a 0x6b 0x6c
0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62
0x63 0x64 0x65
0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75
0x76 0x77 0x78
0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e
0x6f 0x70 0x71
0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67
0x68 0x69 0x6a
0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a
0x61 0x62 0x63
0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73
0x74 0x75 0x76
0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c
0x6d 0x6e 0x6f
0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65
0x66 0x67 0x68
0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78
0x79 0x7a 0x61
0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71
0x72 0x73 0x74
0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a
0x6b 0x6c 0x6d
0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63
0x64 0x65 0x66
0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76
0x77 0x78 0x79
0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f
0x70 0x71 0x72
0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68
0x69 0x6a 0x6b
0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61
0x62 0x63 0x64
0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74
0x75 0x76 0x77
0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d
0x6e 0x6f 0x70
0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66
0x67 0x68 0x69
0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79
0x7a 0x61 0x62
0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72
0x73 0x74 0x75
0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b
0x6c 0x6d 0x6e
0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0x61 0x62 0x63 0x64
0x65 0x66 0x67
0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77
0x78 0x79 0x7a
0x61 0x62 0x63 0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 0x6c 0x6d 0x6e 0x6f 0x70
0x71 0x72
/*** Host side receive data log ****/
./host_usb_receive.o /dev/ttyACM0
Press CTRL+Z to stop receving data ...
Waiting for Data from the USB device ...
mnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwx

PLC_USB_37 :
On Host, run host_usb_receive application to recevie 1MB dataand press enter ...
512bytes sent to host.
512bytes sent to host.
Total bytes sent : 1024
Test Completed
PLC_USB_38 :
On Host, run host_usb_receive application to recevie 5MB dataand press enter ...
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
Total bytes sent : 5120
Test Completed
PLC_USB_39 :
On Host, run host_usb_receive application to recevie 10MB dataand press enter ..
.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
512bytes sent to host.
Total bytes sent : 10240
Test Completed

You might also like