Difference between revisions of "Programming H6105-D"

From Hydrover
Jump to: navigation, search
(Serial Port)
(USB port)
 
(2 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
== USB port ==
 
== USB port ==
  
the USB port has tree operating modes:
+
the USB port has three operating modes:
  
 
* '''libusb''', this mode is active when the script is running and can be used to give the control of the system to a PC program
 
* '''libusb''', this mode is active when the script is running and can be used to give the control of the system to a PC program
 
* '''disk mode 1''', this mode is active when the script is not running and can be used to flash a new PAWN program
 
* '''disk mode 1''', this mode is active when the script is not running and can be used to flash a new PAWN program
* '''disk mode 2''', this mode is active during the firmware update and can be usd to flash a new firmware
+
* '''disk mode 2''', this mode is active during the firmware update and can be used to flash a new firmware
 
 
 
 
  
 
= Programming =
 
= Programming =
  
enter in disk mode 1 with the <code>script stop</code> command
+
follow this steps to download a new program into the board:
 
 
at this point you should see a new usb disk unit connected to your PC named <code>HYDCPAMXDRV</code>
 
 
 
inside this disk there is only one file named <code>PRMGFILE.AMX</code>
 
 
 
first delete this file then copy the new one
 
 
 
when the copy is done you can:
 
  
* start your new program with <code>script run</code>
+
* enter in disk mode 1 with the <code>script stop</code> command
* reset the board with <code>reset</code>
+
* at this point you should see a new usb disk unit connected to your PC named <code>HYDCPAMXDRV</code> inside this disk there is only one file named <code>PRMGFILE.AMX</code>
 +
* delete this file then copy the new one
 +
* start your new program with <code>script run</code> or reset the board with <code>reset</code>

Latest revision as of 13:47, 16 June 2017

this section explain how to connect and dowanload a PAWN program to the H6105-D master


Hardware connection

we need to make two connections:

  • use the USB to Serial adapter to connect to the serial port
  • use the USB Type-B cable to connect to the USB port

Functions of the ports

Serial Port

on the serial port we will find the Console with the command promt cp> pressing the ENTER key will show a help message

Cp-console.png

USB port

the USB port has three operating modes:

  • libusb, this mode is active when the script is running and can be used to give the control of the system to a PC program
  • disk mode 1, this mode is active when the script is not running and can be used to flash a new PAWN program
  • disk mode 2, this mode is active during the firmware update and can be used to flash a new firmware

Programming

follow this steps to download a new program into the board:

  • enter in disk mode 1 with the script stop command
  • at this point you should see a new usb disk unit connected to your PC named HYDCPAMXDRV inside this disk there is only one file named PRMGFILE.AMX
  • delete this file then copy the new one
  • start your new program with script run or reset the board with reset