Sending End Demo
Sending End Demo
- Description: This demo is a runnable Java program package. The demo establishes a TCP connection with the control PC and supports program publishing.
- Function: After establishing a TCP connection with the player, the demo converts, escapes, and packages files according to the above protocol, then sends them to the player.
- Operation Procedure: Run this Java program package and follow the prompts to select the desired function. As shown in Figure 1 below, Function 1 is for publishing vsn files. After entering '1', you need to input the vsn file path. Press Enter to send and publish the program. If you want to save the data packets generated by the demo according to the protocol, you can create a folder named 'SupconData' on your computer desktop. The program will then package the files into byte data and save them as txt files in the SupconData directory, as shown in Figure 2. If the transferred file is larger than 2048 bytes, it will be saved in multiple blocks. Figure 3 shows the content of one block of data that was saved.

Figure 1

Figure 2

Figure 3
When publishing programs with materials, you need to first select Function 2. All materials used in the program should be placed in a folder named after the program, as shown in Figure 4. Then, input the path of this folder and press Enter, as shown below. After transferring all required materials, select Function 1 to publish the vsn file, and the program can then be published. If you directly publish the vsn file without transferring the materials, the device will not find the materials.

Figure 4

Figure 5