Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 19 of 28

6400 PSK Reference Manual, pages 181 to 190

Pages 181 to 190 of 272

The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 181

im_xm_receive_file

5 im_xm_receive_file Purpose:

This function sets the 6400 to receive a file from the host using XMODEM protocol.

Syntax:

#include "im64psk.h" IM_STATUS im_xm_receive_file (IM_UCHAR far *filename, IM_COM_PORT port_id)

IN Parameters:

filename Far pointer to IM_UCHAR and is the filename in the 6400. The 6400 filename has the format drive:filename. port_id

Communications port:

IM_COM1 COM1 input IM_COM2 COM2 input OUT Parameters: Return Value:

None. This function returns one of these codes: IM_SUCCESS Successful IM_INVALID_PORT

Notes:

See Also:

The port is unknown

The host must be set up to send a file (using XMODEM protocol) to the 6400 for this function to execute successfully. im_xm_transmit_file

Example /**************** im_xm_receive_file *************************/ #include <time.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include "im64psk.h" void main() { // char Rxfilename[] = "e:\\works\\h3test\\xtest\\getvp2.bin"; char Rxfilename[] = "c:getvp2.bin"; char Txfilename[] = "c:getvp.bin"; IM_STATUS istatus; im_clear_screen(); im_cputs("Enter any character for beginning of receive file \n", IM_NORMAL); getch(); //

Test im_xm_receive_file function

5-125

Page 182

im_xm_receive_file im_xm_receive_file (continued) istatus = im_xm_receive_file(Rxfilename,IM_COM1); printf("\nistatus for receive is %x \n", istatus); im_message(istatus); if(istatus == IM_OK) { im_cputs("\nReceive file success\n", IM_NORMAL); im_message(istatus); } else { im_cputs("\nReceive File Error: im_message(istatus);

", IM_NORMAL);

} getch(); im_clear_screen(); im_puts("Enter any character for beginning of transmit file ", IM_NORMAL); getch(); //

Test im_xm_transmit_file function istatus = im_xm_transmit_file(Txfilename,IM_COM1); printf("\nistatus for transmit is %x \n",istatus); if(istatus == IM_OK) { im_cputs("\nTransmit file success\n", IM_NORMAL); } else { im_cputs("\nTransmit File Error: im_message(istatus); } getch(); return; }

5-126

", IM_NORMAL);

Page 183

im_xm_transmit_file

5 im_xm_transmit_file Purpose:

This function sets the 6400 to transmit a file to the host using XMODEM protocol.

Syntax:

#include "im64psk.h" IM_STATUS im_xm_transmit_file (IM_UCHAR far *filename, IM_COM_PORT port_id)

IN Parameters:

filename Far pointer to IM_CHAR and is the filename in the 6400. The 6400 filename has the format drive:filename. port_id

Communications port:

IM_COM1 COM1 input IM_COM2 COM2 input OUT Parameters: Return Value:

None. This function returns one of these codes: IM_SUCCESS Successful IM_INVALID_PORT

Notes: See Also:

The port is unknown

The host must be set up to receive a file (using XMODEM protocol) from the 6400 for this function to execute successfully. im_xm_receive_file

Example See example for im_xm_receive_file.

5-127

Page 184

im_xm1k_receive_file im_xm1k_receive_file Purpose:

This function sets the 6400 to receive a file from the host using XMODEM-1K protocol.

Syntax:

#include "im64psk.h" IM_STATUS im_xm1km_receive_file (IM_UCHAR far *filename, IM_COM_PORT port_id)

IN Parameters:

filename Far pointer to IM_UCHAR and is the filename in the 6400. The 6400 filename has the format drive:filename. port_id

Communications port:

IM_COM1 COM1 input IM_COM2 COM2 input OUT Parameters: Return Value:

None. This function returns one of these values: IM_SUCCESS Successful IM_INVALID_PORT

Notes:

See Also:

The port is unknown

The host must be set up to send a file (using XMODEM-1K protocol) to the 6400 for this function to execute successfully. im_xm1k_transmit_file

Example /**************** im_xm1k_receive_file *************************/ #include <time.h> #include <string.h> #include <stdio.h> #include <conio.h> #include "im64psk.h" void main() { // char Rxfilename[] = "e:\\works\\h3test\\xtest\\getvp2.bin"; char Rxfilename[] = "c:getvp2.bin"; char Txfilename[] = "c:getvp.bin"; IM_STATUS istatus; im_clear_screen(); im_cputs("Enter any character for beginning ", IM_NORMAL); printf("of receive file.\n");

5-128

Page 185

im_xm1k_receive_file

5 im_xm1k_receive_file (continued) getch(); // Test im_xm1k_receive_file function istatus = im_xm1k_receive_file(Rxfilename,IM_COM1); printf("\nistatus for receive is %x \n", istatus); im_message(istatus); if(istatus == IM_OK) { im_cputs("\nReceive file success\n", IM_NORMAL); im_message(istatus); } else { im_cputs("\nReceive File Error: ", IM_NORMAL); im_message(istatus); } getch(); im_clear_screen(); im_puts("Enter any character for beginning of transmit file. "); getch(); //

Test im_xm1k_transmit_file function istatus = im_xm1k_transmit_file(Txfilename,IM_COM1); printf("\nistatus for transmit is %x \n",istatus);

if(istatus == IM_OK) { im_cputs("\nTransmit file success\n"); } else { im_cputs("\nTransmit File Error: ",IM_NORMAL); im_message(istatus); } getch(); return; }

5-129

Page 186

im_xm1k_transmit_file im_xm1k_transmit_file Purpose:

This function sets the 6400 to transmit a file to the host using XMODEM-1K protocol.

Syntax:

#include "im64psk.h" IM_STATUS im_xm1k_transmit_file (IM_UCHAR far *filename, IM_COM_PORT port_id)

IN Parameters:

filename Far pointer to IM_UCHAR and is the filename in the 6400. The 6400 filename has the format drive:filename. port_id

Communications port:

IM_COM1 COM1 input IM_COM2 COM2 input OUT Parameters: Return Value:

None. This function returns one of these values: IM_SUCCESS Successful IM_INVALID_PORT

Notes:

See Also:

The port is unknown

The host must be set up to receive a file (using XMODEM-1K protocol) from the 6400 for this function to execute successfully. im_xm1k_receive_file

Example See example for im_xm1k_receive_file.

5-130

Page 187

6 Reader Command Reference

Page 188

blank

Page 189

Nugg

C

39 Reader Command Reference

6

This chapter describes the reader commands that you can use while operating the 6400. Reader commands, such as Backlight On, allow you to perform a task on the 6400.

Using Reader Commands A reader command causes the 6400 to perform a task. Some reader commands temporarily override the configuration settings and some actually change the configuration settings. For example, you can turn the backlight on to easily view the 6400 screen when you are working in a dimly lit environment. You can execute reader commands by • scanning a command from a Code 39 bar code label using the 6400.

• sending a command from a device through the serial port.

• passing the command string from an application using the im_command function.

There are three general types of reader commands: •

Accumulate mode commands

•

Operating commands

•

File management commands

The reader commands are listed in alphabetical order within these three categories. You will find the purpose, command syntax, and bar code labels for each reader command in this chapter. Note: The Code 39 bar code labels in this chapter show an asterisk (*) at the beginning and end of the human-readable interpretation to represent the start and stop codes. If you are creating your own Code 39 bar code labels, your bar code printing utility may automatically supply the asterisks as the start/stop code.

Using Accumulate Mode You can use Accumulate mode to collect data from a series of bar code labels and enter them as a single label. When you put the 6400 in Accumulate mode, the 6400 will collect all scanned bar code labels in the 6400’s buffer until you scan either the Enter or Exit Accumulate mode command. As you accumulate the data from bar code labels, the data is visible on the bottom line of the screen. You can edit the accumulated data with the Backspace and Clear commands. Backspace This command deletes the last character from the current data record you are accumulating.

6-3

Page 190

6400 PSK Reference Manual Nugg C Clear

39

This command deletes the entire data record you are accumulating.

Note: If you are not in Accumulate mode, the Backspace and Clear commands have no effect and you will hear an error beep. When you exit Accumulate mode, the accumulated data is “entered” as a data record. Up to 250 characters can be held in the buffer. If the data record count exceeds 250 characters, the data is truncated. If you reset the 6400 (software or hardware reset), you exit Accumulate mode, the entire buffer is cleared, and all data accumulated is lost. To use Accumulate mode The syntax to use the Enter Accumulate command is: +/data where: +/ is the syntax for the Enter Accumulate mode command.

data is the optional data you want to enter. Data can be a reader command that is executed when you exit Accumulate mode.

1. Scan this bar code label to Enter Accumulate mode: Enter Accumulate Mode

*+/* *+/*

2. Scan the bar code label(s) for the data you want to enter. You can scan labels from the “Full ASCII Table” in Appendix C. For example, scan this label to change the 6400’s configuration and set the preamble to the characters ABC. Change Configuration / Set Preamble to ABC

*$+ADABC* *$+ADABC*

Or, to edit the accumulated data, scan one of these bar code labels: Backspace

Clear

*-+*

*--*

*-+*

*- -*

Note: You can create one bar code label by combining Steps 1 and 2 above. Most of the examples in this manual use one bar code label.

6-4