The text of a manual · part 2 of 2
EZBuilder Tutorial, Appendix A: Using EZBuilder Features (TFTP file transfer), pages 7 to 12
Pages 7 to 12 of 12
The original document is the PDF (137 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Intermec 2420, Intermec 2425, Intermec 2480, Intermec 2486, Intermec 2481 and Intermec 2485
Page 7
Using EZBuilder Features
A
Transferring Files Between a TCP Server and a TCP TRAKKER Antares Terminal Client Using Dynamic Filenames TRAKKER Antares terminals loaded with a TCP protocol and running firmware version 2.2 and above contain a Trivial File Transfer Protocol (TFTP) client. The host must also be running a TFTP server application. In this exercise we will set up a keypress action that begins the file transfer. The method described here can only transmit files. The EZBuilder application created for this example is on the EZBuilder CD-ROM with the filename EZTFTP3.IMP. To build an application 1. Start EZBuilder and click Select File - New Application. 2. Click File - New Screen. 3. Create two data input fields, one for the terminal filename and the other for the TFTP Server filename. 4. Set Name the fields TrakkerName and ServerName. Add any desired labels to the screen.
5. Create two more fields. These are dummy fields and are invisible so you can place them anywhere on the screen. Name these fields tx_status and rx_status, respectively.
A-25
Page 8
EZBuilder Tutorial
Set the following properties for the two new fields: Display Only
True.
Attribute
Normal.
Visible
False.
These settings enable the cursor to skip through the field without waiting for input and the fields are invisible. These fields are created to control when files are transmitted and received. 6. Double-click Trakker Filename in the Viewport and then click the On Exit - On Val Fail tab. 7. Click Navigation Choice and then click to access the Navigation Selection window. 8. Click Go to Field and select or enter the ServerName field. 9. Click OK. 10. Click the On Val Succeed tab and repeat steps 6-8. 11. Double-click ServerName and then click the On Exit - On Val Fail tab. 12. Click Navigation Choice and then click 13. In the Navigation Selection window, click Go to Field and select or enter the TrakkerName field.
A-26
Page 9
Using EZBuilder Features
A
14. Click OK. 15. Click the On Val Succeed tab and repeat steps 11-13. 16. In the Viewport, double-click the TrakkerName field. 17. Click the KP/Events tab. 18. Select a key to trigger the transmit. For example, click F1 and then click Editor.
to access the Key Action Selection
19. Click Go To Field and select or enter the tx_status field. 20. Click OK. 21. Select a key to trigger the receive. For example, click F5 and then click
.
22. In the Key Action Selection Editor, click Go To Field and select or enter the rx_status field. 23. Click OK. 24. In the Viewport, double-click the ServerName field and repeat steps 16-22. 25. Double-click the tx_status field. 26. Click the On Exit -Validation tab and then click User Function. 27. Click to access the User Function Editor.
28. Enter the following line into the editor: IM_ISGOOD(im_transmit_file(Screen0_TrakkerName_F,Screen0_ServerName_F));
Note: im_transmit_file() is a TRAKKER Antares PSK function. It takes two arguments, the source filename of the terminal file and the destination filename to use on the server. im_transmit_file() returns a status code. This status code is used as input to the Antares PSK macro. im_isgood returns a code that EZBuilder can use to determine success or failure. If im_isgood is not used, EZBuilder gets the status backwards. 29. Click OK. 30. Click the On Val Fail tab. 31. Click Message and then enter the message you want displayed in case of transmission failure. Click Beep and select a failure beep sequence. 32. Click Navigation Choice and then click Selection window.
to access the Navigation
33. Click Previous Field and then click OK. 34. Click the On Val Succeed tab.
A-27
Page 10
EZBuilder Tutorial
35. Click Message and then enter the message you want displayed for a successful transmission. Click Beep and select a successful beep sequence. 36. Click Navigation Choice and then click
.
37. In the Navigation Selection window, click Previous Field and then click OK. 38. Double-click the rx_status field. 39. Click the On Exit -Validation tab and then click User Function. 40. Click to access the User Function Editor.
41. Enter the following line into the editor: IM_ISGOOD(im_receive_file(Screen0_TrakkerName_F,Screen0_ServerName_F));
Note: im_transmit_file() is a TRAKKER Antares PSK function. It takes two arguments, the source filename of the terminal file and the destination filename to use on the server. im_transmit_file() returns a status code. This status code is used as input to the Antares PSK macro. im_isgood returns a code that EZBuilder can use to determine success or failure. If im_isgood is not used, EZBuilder gets the status backwards. 42. Click OK. 43. Click the On Val Fail tab. 44. Click Message and then enter the message you want displayed in case of transmission failure. Click Beep and select a failure beep sequence. 45. Click Navigation Choice and then click
.
46. Click Previous Field and then click OK. 47. Click the On Val Succeed tab. 48. Click Message and then enter the message you want displayed in case of a successful transmission Click Beep and select a successful beep sequence. 49. Click Navigation Choice and then click
.
50. Click Previous Field and then click OK. 51. Build the application and download it to the terminal. 52. Start the TFTP server.
A-28
Page 11
Using EZBuilder Features
A
53. Configure the terminal for the host IP address of the TFTP server. Note: If you are using EZ-TFTP, you do not need to configure a port number on the terminal. •
To send a file, enter the name of the TRAKKER Antares file you are sending and the destination name of the file on the server. Press F1.
•
To receive a file, enter the filename of the file on the server and the destination filename on the terminal. Press F5. Note: Both of the data input fields have key actions to send the cursor to one of the invisible fields. Since these fields are display only, the cursor will enter and then exit the field. Upon exit of the field, the appropriate User Function (im_transmit_file() or im_receive_file()) is executed.
When the function is complete, EZBuilder beeps and displays the message you entered based on the success or failure of the transfer. The cursor goes back to one of the data input fields.
A-29