background image

©Sealevel Systems, Inc. 

HazPAC R9-8.4 Manual  

17 

SL9257 8/2015 

 

 

DEBUG PORT 

A serial debug port is provided via DB9 male connector, labeled “DBGU.”  A HazPAC R9 Serial 
Debug cable (Item# CA452) may be used to access the DBGU port from a Host PC.  Connect one 

DB9 female end of the HazPAC R9 serial debug cable to the DBGU port, and the other to the 

Host PC (an available RS-232 COM port or USB to RS-232 serial port adapter is required on the 

Host PC.) 

 

 

 

Connector:

    DBGU 

Description:

   DB-9 Male 

 

 

PIN 

DBGU (RS-232 

levels) 

NC 

NC 

TX 

NC 

RX 

NC 

NC 

NC 

GND 

 

 

 

 

Содержание HazPAC R9-8.4 ARM9

Страница 1: ...Sealevel Systems Inc Sealevel com Phone 864 843 4343 HazPAC R9 8 4 ARM9 Touchscreen Computer USER MANUAL ITEM H95101 8R ...

Страница 2: ... Serial Communications 9 Open Collector Outputs 13 RS 485 Expansion 15 Debug port 17 Reset button 18 Software 19 HazPAC R9 8 4 Quick Start 19 Windows Device Center 21 Windows ActiveSync for XP 22 Connection Complete 23 Programming using the NET Compact Framework 24 Application Development 24 Application Debugging 29 Introduction 29 Requirements 29 Debugging an Application 29 Attach the Debugger 30...

Страница 3: ...Runtime Image on NAND Flash 41 Network Configuration 45 Appendix A Resources 49 Books 49 Websites 49 Appendix B Application Debugging over Ethernet 50 Appendix E How to Get Assistance 52 Technical Support 52 Warranty 53 Warranty Policy 53 Non Warranty Repair Retest 53 How to Obtain an RMA Return Merchandise Authorization 53 ...

Страница 4: ...mpact Framework CF device interface This interface provides an I O point abstraction layer with built in support for the specific needs of analog and digital I O such as gain control and debouncing The HazPAC R9 8 4 is housed in a rugged small enclosure suitable for mounting in hazardous locations see Classification section for details and is rated for a 30 C to 60 C operating temperature range Th...

Страница 5: ...etup files and documentation Microsoft Windows CE 6 0 Core license ADVISORY CONVENTIONS Warning The highest level of importance used to stress a condition where damage could result to the product or the user could suffer serious injury Important The middle level of importance used to highlight information that might not seem obvious or a situation that could cause the product to fail Note The lowe...

Страница 6: ...Length Device Cable Item CA356 The CA356 is a 72 USB device cable that securely connects USB device port metal thumbscrew lock to a host computer The CA356 is USB 2 0 compliant and is compatible with USB 1 1 and 1 0 devices CAT5 Patch Cable 7 in Length Blue Item CA246 Standard 7 CAT5 UTP Patch Cable RJ45 HazPAC R9 Serial Debug Cable 6ft Length Item CA452 The CA452 is a 6ft serial debug cable with ...

Страница 7: ...ET The HazPAC R9 8 4 includes a 10 100 BaseT Ethernet interface accessed via the RJ45 connector located on the front of the enclosure The RJ45 port on the left side of the HazPAC R9 8 4 is a RS 485 Expansion Port labeled RS 485 OUT and is NOT an Ethernet port Damage to Ethernet networking equipment can result if connected to the RS 485 RJ45 connector Pin Signal 1 TX 2 TX 3 RX 4 NC 5 NC 6 RX 7 NC 8...

Страница 8: ...he USB host ports are located on the left side of the enclosure The USB device port is located on the front of the enclosure Connector SeaLATCH USB 2 0 Host Port Manufacturer Samtec Description Standard USB Type A Mates with SeaLATCH USB Type A or Standard USB Type A Connector USB 2 0 Device Port Manufacturer Samtec Description Standard USB Type B ...

Страница 9: ... to a variety of serial peripherals via the HazPAC R9 8 4 s serial ports Two isolated RS 485 serial ports are provided via DB9 male connectors labeled RS 485 1 and RS 485 2 on the lower front panel of the unit Switch settings are provided to control the termination and pull up pull down resistors Also provided is a RS 232 serial port with full modem control labeled RS 232 on the right side panel T...

Страница 10: ... 10 SL9257 8 2015 Connectors RS 485 1 and RS 485 2 Description DB 9 Male PIN RS 485 Isolated 1 NC 6 NC 2 NC 7 NC 3 DATA 8 NC 4 DATA 9 NC 5 GND Connector RS 232 Description DB 9 Male PIN RS 232 1 DCD 6 DSR 2 RX 7 RTS 3 TX 8 CTS 4 DTR 9 RI 5 GND ...

Страница 11: ...s Inc HazPAC R9 8 4 Manual 11 SL9257 8 2015 COM Port Assignments Serial Port Assignment RS485 Expansion Port COM1 RS 485 1 COM2 USART1 RS 485 2 COM3 USART2 RS 232 COM4 RS 485 Termination and Pull up Pull down Resistors ...

Страница 12: ...oward screen DISABLED No pull down ENABLED Pull down D line to isolated GND ISO1 plane via 510 ohm resistor RS 485 2 Termination OFF Down or away from screen ON Up or toward screen DISABLED No termination ENABLED Terminate between D and D lines with 120 ohm resistor RS 485 2 Pull up OFF Down or away from screen ON Up or toward screen DISABLED No pull up ENABLED Pull up D line to isolated 3 3V ISO2...

Страница 13: ...f 5 30V with a maximum sink current of 500mA on a single output with a combined maximum sink current of 580mA on all outputs Connector OPEN COLLECTOR OUTPUTS Manufacturer Weco Part Number 110 M 111 10 Description Terminal Block 10 position 3 5mm spacing Mates with Weco 110 A 111 10 10 position screw terminal plug provided Pin Signal 0V GND 1 Output 1 2 Output 2 3 Output 3 4 Output 4 5 Output 5 6 O...

Страница 14: ...4 16 17 18 ULN2803 OCVCC 10K 10K 10K 10K 10K 10K 10K 10K 3V3 DOUT1 DOUT2 DOUT3 DOUT4 DOUT5 DOUT6 DOUT7 DOUT8 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 P6 Box HDR 10p OE1 1 A1 2 A2 4 A3 6 A4 8 Y4 12 Y3 14 Y2 16 Y1 18 Y8 3 Y7 5 Y6 7 Y5 9 GND 10 A5 11 A6 13 A7 15 A8 17 OE2 19 VCC 20 SN74HCT244DW GND 5V ...

Страница 15: ... also on the left side of the unit This offers two convenient options for adding additional expansion modules The RJ45 port on the left side of the HazPAC R9 8 4 is a RS 485 Expansion Port labeled RS 485 OUT and is NOT an Ethernet port Damage to Ethernet networking equipment can result if connected to the RS 485 RJ45 connector Connector RS 485 Expansion RJ45 Manufacturer Xmultiple Part Number XRJM...

Страница 16: ...15 Connector RS 485 Expansion Manufacturer Weco Part Number 110 M 111 04 Description Terminal Block 4 position 3 5mm spacing Mates with Weco 110 A 111 04 4 position screw terminal plug provided Pin Signal RS 485 485 RS 485 485 GND Common GND SHIELD Shield GND ...

Страница 17: ... Item CA452 may be used to access the DBGU port from a Host PC Connect one DB9 female end of the HazPAC R9 serial debug cable to the DBGU port and the other to the Host PC an available RS 232 COM port or USB to RS 232 serial port adapter is required on the Host PC Connector DBGU Description DB 9 Male PIN DBGU RS 232 levels 1 NC 6 NC 2 TX 7 NC 3 RX 8 NC 4 NC 9 NC 5 GND ...

Страница 18: ...AC R9 8 4 Manual 18 SL9257 8 2015 RESET BUTTON A recessed reset button is provided to reset the HazPAC R9 8 4 A blunt non conductive instrument may be used to press the button and assert a reset to the processor and peripherals ...

Страница 19: ...rogram This will install Talos Framework binaries documentation and examples on your PC See Figure 1 Figure 1 Installation Wizard After installation the package can be found in Windows by clicking Start à All Programs à Sealevel Systems à R9 Development The contents of the factory provided NAND Flash build will allow the HazPAC R9 8 4 to run Windows CE 6 0 OS when power is applied to the unit ...

Страница 20: ...dard USB device cable and connect the Type B connector to the HazPAC R9 8 4 Connect Type A connector into the host system See Figure 2 Figure 2 Type B USB Device Connector You are now ready to set up a USB communication interface between the host PC and the HazPAC R9 8 4 Depending on which operating system you are using Windows 7 Vista or XP the setup experience will vary ...

Страница 21: ... their setup will achieve the same result See Appendix A After installation a negotiation will begin between the PC and the HazPAC R9 8 4 board and the device center connection screen will appear See Figure 3 Figure 3 Device Center Connected Using your mouse select Connect without setting up your device The idea is to explore the file system on the HazPAC R9 8 4 without setting up synchronization ...

Страница 22: ... Windows XP ActiveSync is required to establish connection to the HazPAC R9 8 4 ActiveSync differs from Windows Mobile Device Center in that having an internet connection will not establish an automatic download and installation For installation procedures refer to Microsoft s website See Appendix A After installation a negotiation will begin between the PC and the HazPAC R9 8 4 board and the New ...

Страница 23: ...ction opens a standard Windows Explorer where the default file contents of the HazPAC R9 8 4 can be read or written See Figure 7 Figure 7 ActiveSync Main Dialog CONNECTION COMPLETE You are now ready to set up a complete development environment for building and debugging smart device applications and libraries The next section guides you by example using Microsoft Visual Studio ...

Страница 24: ...Our Talos Framework allows access to the more specific I O sections of the HazPAC R9 8 4 development board such as digital output points CAN bus and the serial ports A complete list of the API documentation can be found in Windows by clicking Start à All Programs à Sealevel Systems à R9 Development à Talos Documentation html Writing NET applications for the HazPAC R9 8 4 is very similar to writing...

Страница 25: ... Smart Device Project as the Template Make sure the combo box has NET Framework 3 5 selected Type the name of the project In this case call it HelloWorld See Figure 8 Figure 8 Visual Studio New Project Dialog Click the OK button The next configuration screen allows you to select the type of project you are creating Select Windows CE for the target platform NET Compact Framework version 3 5 and sel...

Страница 26: ... the OK button You will now see a console application template called HelloWorld in Visual Studio See Figure 10 Figure 10 Visual Studio Main Window We can now add the references to the Talos Framework Right click on the References and select the Add Reference selection See Figure 11 Figure 11 Adding References to Project ...

Страница 27: ...ssemblies If you don t see a list of the R9 libraries as shown in Figure 12 then refer to the HazPAC R9 8 4 QuickStart section for software installation details While holding down the CTRL key click on both SLCorLib dll and Talos dll Click the OK button See Figure 12 Figure 12 Core Library References Both DLLs should appear in your References list See Figure 13 Figure 13 Verification of Added Libr...

Страница 28: ... System Threading Thread Sleep 5000 From Visual Studio s menu bar select Build à Build HelloWorld After the build process has completed select from the same menu bar Build à Deploy HelloWorld A Deploy HelloWorld dialog will appear for you to choose the appropriate target Choose Windows CE Device then press the Deploy button See Figure 14 Figure 14 Choose Windows CE Device and Deploy After the depl...

Страница 29: ... a simple process that requires a USB cable or Ethernet connection Microsoft device synchronization software and Visual Studio Depending on your version of Windows you will need to follow a different process to install the device synchronization software as outlined in the HazPAC R9 8 4 Quick Start section DEBUGGING AN APPLICATION Once the HazPAC R9 8 4 has been successfully attached to your PC it...

Страница 30: ...the device target that you would like to use in conjunction with the debugger The default option is an emulator Select Windows CE Device from the target device drop down See Figure 15 Figure 15 Device Target Selection If you would like to use the faster Ethernet connection for debugging instead of the USB connection refer to Appendix B ...

Страница 31: ...5 Now select the Connect to Device icon to initiate synchronization between Visual Studio and the HazPAC R9 8 4 device See Figure 16 Figure 16 Connect to Device Icon You should now see a connection dialog appear See Figure 17 Figure 17 Connection Status Dialog ...

Страница 32: ...p execution of your application at any point and examine the state of the application A breakpoint may be set by selecting a line and pressing the F9 hotkey See Figure 18 Figure 18 Breakpoint Selection To begin debugging the application click the Start Debugging button See Figure 19 Figure 19 Run Debugger Icon ...

Страница 33: ...nce the application is deployed to the HazPAC R9 8 4 it will begin execution As soon as the first breakpoint is reached execution will cease and you will gain full control over the running application You may use the debugging options to continue execution execute a single line or execute multiple lines You may view the status of each variable by either hovering over it with the cursor or by exami...

Страница 34: ... to those variables class specific variables can be grouped together as a view to aid in debugging your application This is accomplished by right clicking on a variable and selecting Add Watch Each addition appends a tab to the Watch n window where n is incremented for each variable added See Figure 22 Each watch window provides a convenient tree type structure for viewing hierarchical class varia...

Страница 35: ...an copying your application files to Windows Startup which is in volatile memory the executables should be copied to nandflash startup After Windows CE runs SpringBoard automatically starts applications in this startup directory SpringBoard also provides a way to specify program arguments by supplying an XML configuration file You will need to create a simple XML file called startup xml This XML f...

Страница 36: ...RSTBOOT nb0 Eboot nb0 NK nb0 OS FILE RESTORATION In the event that Sealevel produces updated OS file versions or a restore is desired the OS files will need to be programmed to the NAND Flash Please see the section labeled Upgrading the OS runtime image on NAND Flash below for more detail The NAND Flash cannot be programmed until the existing OS runtime image has been removed This can be accomplis...

Страница 37: ...Y and select Serial from the Category section of the dialog Identify the proper COM port number and always assign the speed baud equal to 115200 Set Data bits to 8 Stop bits to 1 Parity to None and Flow control to None See Figure 25 Figure 25 PuTTY Serial Configuration ...

Страница 38: ...ession from the Category section of the dialog A saved session of this configuration can be performed to avoid reconfiguration in the future Type a name for this session under Saved Sessions then press the Save button See Figure 26 Figure 26 PuTTY Session Configuration ...

Страница 39: ... debug port terminal will appear no user input is required for booting Press ENTER to download now or SPACE to cancel Initiating image download in 2 seconds Once the prompt period expires the OS runtime will be loaded from NAND Flash into RAM and executed At this point the OS is running See Figure 27 Figure 27 Application Debug Text Output Eboot configuration settings can be modified by hitting th...

Страница 40: ...to first erase the NAND Flash of a pre programmed unit This is accomplished through the Image flash menu n key in Eboot The flash menu has an option to Erase all sectors of the NAND Flash 1 key See Figure 29 Figure 29 Eboot Image Flash Menu The Erase all sectors option in Eboot will erase the entire NAND Flash so be sure to back up any data you wish to save before attempting to erase the device ...

Страница 41: ...e present in the NAND Flash is programmed through the USB device port connection Prior to programming an OS runtime the existing image must be erased The procedure to erase the NAND Flash is documented in the Debug Port section Once the NAND Flash has been erased use a standard USB device cable and connect the Type B connector to the HazPAC R9 8 4 Connect the Type A connector into the host PC See ...

Страница 42: ...crosoft Windows operating systems are similar If your operating system prompts you to search Windows Update choose No not this time Then in the Found New Hardware Wizard choose Install from a list or specific location and click Next See Figure 31 Figure 31 Found New Hardware Wizard Select Search for the best driver in these locations and check Include this location in the search Use the Browse but...

Страница 43: ...Runtime image See Figure 33 Figure 33 AT91 COM Port Sample scripts have been provided in the R9 Development installation to automate the process of writing a complete OS runtime to the device The script is configured to target a device attached to COM49 by default This can be modified simply by editing the comport variable in the NAND Program bat batch file Once the batch file has been updated to ...

Страница 44: ...ress assigned to your device at the factory The finalize exe tool is provided in the Boot Files directory of the R9 Development installation Finalize is a command line utility that accepts a MAC address in dashed notation 00 0A 0B 16 12 34 The application should be executed on the device this can be accomplished with rapistart telnet or locally in the device s Command Prompt after reprogramming th...

Страница 45: ... requests to modify the device s configuration The configuration file can be accessed through ActiveSync using the USB device port connection or through an FTP client if you already know the IP address of the device This section defines the XML configuration structure and corresponding values applicable for each element of the structure Throughout this section the following definitions apply Term ...

Страница 46: ...Invalid configurations will be replaced with a default configuration System Structure The system element contains all of the system information elements This element must be present or the configuration file will not be considered valid OS Readonly string The OS element contains a string representation of the Operating System name In the case of R9 products this will be equivalent to WinCE Version...

Страница 47: ...erface name Structure Attribute Readonly string The interface element is a container for the interface settings that are specific to the interface identifiable as name The name attribute is readonly and is used to uniquely distinguish Interface settings for the case where there are multiple Ethernet interfaces available DHCP Read Write Boolean This element contains a Boolean value indicating wheth...

Страница 48: ...s the overall Wireless configuration mode Channel Read Write int 1 11 This element contains the wireless channel offset to use in Adhoc mode Security Read Write string None WepOpen64 WepOpen128 WepShared64 WepShared128 WpaTkip Wpa2Aes Wpa2Tkip This element contains the security method for use in establishing the wireless connection Key encoding Writeonly string Attribute string Hex Ascii Pass This...

Страница 49: ...illa Open Source FTP Client http www filezilla project org Microsoft Windows Embedded Home Page http www microsoft com windowsembedded en us windows embedded aspx Microsoft Windows Embedded CE 6 0 Online Documentation https msdn microsoft com en us library ee504812 v winembedded 60 aspx Microsoft ActiveSync Download http www microsoft com windowsmobile en us help synchronize ActiveSync download ms...

Страница 50: ...allow normal TCP IP communications and you must know the IP address of the device you wish to execute the application on For further information about configuring the Ethernet of the device see the Network Configuration section To configure Visual Studio to use your device for debugging over Ethernet click the Device Options button on the Device toolbar See below On the Device Options dialog selec...

Страница 51: ...ific IP address radio button and type the IP address of the device in the text box See below Click the OK button on all of the dialog windows and you should now be able to connect to the device through Ethernet for debugging The application debugging guide can be continued as normal ...

Страница 52: ...y clicking on the Drivers or Manuals links located under Technical Support Manuals and software can also be downloaded from the product page for your device The FAQ section of our website answers many common questions Refer to this helpful resource by visiting www sealevel com faq asp TECHNICAL SUPPORT Monday Friday 8 00 am to 5 00 pm EST Phone 1 864 843 4343 Email support sealevel com RETURN AUTH...

Страница 53: ...he Product failure to adhere to any specifications or instructions or failure resulting from neglect abuse accidents or acts of nature are not covered under this warranty Warranty service may be obtained by delivering the Product to Sealevel and providing proof of purchase Customer agrees to insure the Product or assume the risk of loss or damage in transit to prepay shipping charges to Sealevel a...

Отзывы: