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 6 of 23

DuraTrax/LaserLite, LaserLite Pro/LaserLite Mx Developer's Reference, pages 51 to 60

Pages 51 to 60 of 229

The original document is the PDF (797 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.

For the Videx DuraTrax, Videx LaserLite, Videx LaserLite Mx and Videx LaserLite Pro

Page 51

Chapter 2 Monitor Program This chapter contains information on: •= The monitor program. •= Resetting the data collector to monitor mode. •= The monitor commands. •= Recovering data. •= Loading to LaserLite Pro or LaserLite Mx flash memory.

Chapter 2 Monitor Program

43

Page 52

Monitor Program Overview The monitor program is a boot loader named VX1 Monitor that resides in the data collector’s ROM. VX1 Monitor allows updating the RAM from the serial port and accepts system software in Intel HEX ASCII file format (uploaded at 9600 baud, no parity, 8 data bits, 1 stop bit).

Resetting the Data Collector to Monitor Mode In the unlikely event that your data collector locks up and does not recover after two minutes, you must manually reset the unit to monitor mode and resend the operating system software along with an application to the data collector. To manually reset the data collector to monitor mode: 1) Remove the battery end cap. 2) Hold the scan button down while replacing the battery end cap. 3) The unit will beep three times, indicating a successful reset. 4) The DuraTrax and LaserLite will show VX1 Monitor 1.07 on the first line, the LaserLite Pro will show VX1 Monitor 1.11 or 1.34 on the first line, and the LaserLite Mx will show VX1 Monitor 1.33 or 1.34 on the first line. All four units will show Ready, bps=9600 on the second line of the display. 5) Use the appropriate communications program (Vxcom for Windows, Download for DOS, or Videx Download for Macintosh) to resend the operating system software. (Note: You must use Vxcom or Download if communicating with a LaserLite Mx with a memory card.) See Chapter 1 for information on using the communications programs. See Chapter 3 for information on the operating system software.

44

Chapter 2 Monitor Program

Page 53

Monitor Program Signatures DuraTrax and LaserLite: VX1 Monitor 1.07 ROM checksum: 59FF LaserLite Pro: VX1 Monitor 1.11 (or 1.34) ROM checksum: 52AC LaserLite Mx: VX1 Monitor 1.33 (or 1.34) ROM checksum: 52AC

Monitor Commands The monitor program prompts the host for a command by sending an asterisk character (*) out of the serial port preceded by a \r\n (carriage return and line feed). Following is a list of the commands and their descriptions. B Read battery level Returns a hex value directly from the A to D chip. Range is 00–FF. To convert to voltage: 1) Convert the hexadecimal value to a decimal value. 2) Multiply the decimal value by 0.02898. C Read config Returns the software version. D ssss eeee Dump hex range Returns RAM contents from beginning of range (ssss) to end of range (eeee) in Intel HEX packets. This command may be used to dump the contents of RAM from the data collector to a file on the computer. D 0000 FFFF dumps the first bank of memory (BANK 0).

Chapter 2 Monitor Program

45

Page 54

G aaaa Go to address Transfers control from the monitor program to the system software. The Videx RAM resident software always uses 7FFB as the entry point. To start RAM resident system software, enter G 7FFB. To restart the monitor program send G 0. H Help screen Displays a brief list of commands supported by the monitor program (VX1 Monitor 1.07 only). L Load hex Puts the monitor into a load mode and prompts the host with a question mark character for the first line of the bootstrap hexadecimal file. After the (?) prompt has appeared, the only valid inputs to the monitor are a properly formatted Intel Hex line of data or a blank line. After the monitor has processed each valid line of input, it responds with another load prompt (?). If the monitor receives an improperly formatted line or invalid information, it drops back into the monitor command mode and issues a monitor prompt (*). It is possible for the host to recover from such an error by re-entering the load mode and re-issuing the incorrectly received line. When the monitor receives the Intel Hex End of File record (:00000001FF\r\n), the unit displays loading finished, ready,bps=9600. If the monitor receives an erroneous line, it returns to the command line mode and displays loading failed, ready, bps=9600. If the monitor does not receive any data for 30 seconds, it returns to the command line mode and displays loading time-out, ready, bps=9600.

46

Chapter 2 Monitor Program

Page 55

Pn Read port Read the I/O page of the memory bank. Returns a 1 byte value. Pn=dd Write port Sets the I/O page of the memory bank to address. To set P1 to address the desired RAM bank, use the following pattern: 32K memory bank number Bank 0 Bank 1 Bank 2 Bank 3

Modify the value of P1 Clear bits 2, 3 Set bit 2, clear bit 3 Clear bit 2, set bit 3 Set bits 2, 3

(See the system diagrams on pages 48–50.) R aaaa Read external Returns the contents of RAM memory from the given address. Displayed on the computer screen in both hexadecimal and decimal ASCII. RI Read internal Returns the contents of the processor memory. S Sleep Puts the system in low-power mode. Returns “bye.” The data collector may be reawakened by pressing any button or by sliding the lock switch from the OFF to the ON position. T Read RTC Returns the current date and time stored in the real-time clock. Format is MMDDYYHHMMSS. (VX1 Monitor 1.07 and 1.11 only.) T mm dd yy hh mm ss Write RTC Writes a new value to the real-time clock. If it receives invalid input, the monitor returns an “out of range” error message. (VX1 Monitor 1.07 and 1.11 only.) V ssss eeee Verify range Calculates and returns a CRC checksum for a given range of memory.

Chapter 2 Monitor Program

47

Page 56

W aaaa dd Write external Enables writing a byte value to a given memory address in system memory. WI aa dd Write internal Enables writing a byte value to a given memory address in processor memory. System Block Diagram

CPU ad0-7

RAM Latch

AD0-7

HC373 AD8-14 ad8-14 p1.2

AND Gate

AD15

AND Gate

AD16 ad15 p1.3

LCD p1.0 ad4 ad5

I/O Select

Output Latch Input Buffer

48

Chapter 2 Monitor Program

Page 57

System Memory Map Diagram

1FFFFh 17FFFh

0FFFFh

07FFFh

07FFFh

ON-CHIP ROM

BANK 3 128K MA15=1 MA16=1 BANK 2 MA15=0 MA16=1

BANK 1 MA15=1 MA16=0

BANK 0 MA15=0 MA16=0

32K BLOCKS (128K x 8 Total)

00000h EA=0 INTERNAL ROM EA=1 EXTERNAL RAM |___A15=1____|

DuraTrax/LaserLite System Memory Map Diagram

Chapter 2 Monitor Program

49

Page 58

System Memory Map Diagram (continued) 3FFFFh 37FFFh

RAM0_SEL=1

2FFFFh

27FFFh

1FFFFh

0FFFFh

07FFFh

BANK 6 MA15=0 MA16=1

BANK 5 MA15=1 MA16=0

BANK 4 MA15=0 MA16=0

BANK 3 128K MA15=1 MA16=1

RAM0_SEL=0 17FFFh

BANK 7 MA15=1 MA16=1

BANK 2 MA15=0 MA16=1

BANK 1 MA15=1 MA16=0

BANK 0 MA15=0 MA16=0 RAM0_SEL0 32K BLOCKS (128K x 8 Total)

07FFFh 00000h

ON-CHIP ROM EA=0 INTERNAL ROM EA=1 EXTERNAL RAM |___A15=1____|

LaserLite Pro/LaserLite Mx System Memory Map Diagram

50

Chapter 2 Monitor Program

Page 59

Dumping Memory to Recover Data In the event of an operating system lock-up, memory may be dumped from the DuraTrax, LaserLite, or LaserLite Pro for the purpose of data recovery prior to loading a new operating system and application. It should not be necessary to dump data from a LaserLite Mx since its data resides on the memory card independently from system memory. Caution must be exercised to set and reset the bits to the correct values or the data collector may not operate properly. Components required: •= A computer terminal program with a “capture” mode (i.e., Procomm). •= A Videx Base Station with serial cable attached to a computer. •= Software to convert 32 character per line Intel HEXASCII to binary. The public domain program BINTEL.COM is suitable. •= A calculator or computer program like Windows CALC.EXE that can convert hexadecimal values to binary values. You may use the R xxxx xxxx to address up to 64K of memory with addresses ranging from 0000 to FFFF. Remember that 0000 to 7FFF is always RAM 0, BANK 0 (see the system memory map diagrams on the previous pages). To select each bank of memory (0–3) in RAM0_SEL = 0, RAM0_SEL = 1, or FLASH, use the following values: BANK0 BANK1 BANK2 BANK3

MA15=0 MA15=1 MA15=0 MA15=1

MA16=0 MA16=0 MA16=1 MA16=1

To select RAM0_SEL or FLASH, use these values: RAM0_SEL=0 RAM0_SEL=1 FLASH

8070=F8 8070=F9 8070=FC Chapter 2 Monitor Program

51

Page 60

The general steps are as follows: 1. Read P1; it returns a hexadecimal value. Translate it to a binary value. For example, if P1=94, the binary value of 94 hex is 10010100. Bit Number Example Value

7 1

6 0

5 0

4 1

3 0

2 1

MA16

MA15

1 0

0 0 Enables writing to the latch.

2. If needed, set the value of bit 0 to 1 to enable writing to the latch. Use the following commands to write to the latch: RAM0_SEL=0 W 8070=F8 RAM0_SEL=1 W 8070=F9 FLASH W 8070=FC 3. If you set bit 0 in Step 2, clear it. 4. Dump the memory (D 0000 FFFF). 5. Repeat for the next memory bank as needed. 6. Convert the hexadecimal files to binary files and combine as needed. 7. Data stored in the data collector is printable ASCII. You may use a text editor to view the binary files and retrieve the data.

52

Chapter 2 Monitor Program