Advantech SPC-57 user manual Running your application programs, WDT Modules, DeviceIoControl

Page 74

Figure 4.25

4.7.4 Running your application programs

ActiveSync would automatically transfer the built application program to platform. Choose SDK type as SOM_A once compile your application program.

Figure 4.26

4.7.5 WDT Modules

SPC is targeted to be the embedded device for web-enabled and data-acquisition systems. It is built-in with a useful dynamic link library, WATCHDOG.DLL, which has been designed to help AP developer easily implement his requirements of handling the system resources such as Watchdog timer and LCD brightness control etc. Programmers who are familiar with WIN32 API programming would feel very easy to use this DLL to create his functions. The DLL make its device services look as a file whose name is "WDT1:". The programmer could use this file name in "CreateFile()" to open it and get the file handler. Then the following controls of user required device services would be achieved by way of the file handler in one function call of "DeviceIOControl()". At most 5 applications can access watchdog timer simultaneously. The DeviceIOControl function is following:

- DeviceIoControl

74

Image 74
Contents SPC-57 Copyright AcknowledgementsFCC Class a Packing List Additional Information and AssistanceSafety Instructions Page Wichtige Sicherheishinweise General Information Introduction ApplicationsSystem kernel SpecificationsPower DisplayMechanical EnvironmentalPower LCD Specifications Touchscreen SpecificationsI/O Ports Arrangement Mounting Page Dimension and cutout Getting Start Supplying Power to SPC Supplying Power to SPC-57C Quick StartingVcc GND Page Supplying Power to SPC-57E Power Connector Connect to the power source Engine of the SPC-57 PCM-7230 Mainboard for SPC-57 Specification Model PCM-7230 SBC for SPC-57AC’97 Stereo Audio w/ 2W Amp Page Page PCM-7230 for SPC-57 Block Diagram Headers and connectors Component side of the PCM-7230Solder side of the PCM-7230 Label FunctionJP 2 CPU PXA255 Jtag port Headers and connectors pin definitionJP 1 Cpld Jtag port Pin Number Pin functionCN 1 Pcmcia accessing status port JP 3 LCD signal voltage level selectJP 4 Power switch header CN 3 multi-function I/O headerGND VCC3P3 Spkoutrp Circuits CN 8 CRT-out headerCN 9 multi-function I/O headerII CN 12 HotKey function header CN 18 TTL level LCD signal connector CN 20 LAN status LED header CN 26 Inverter signals headerCN 29 Power-in connector CN 31 SM bus port Battery and DC power status monitor connectorCN31 LCD inverter connector for 5V inverterCN26, Pin1~Pin4Audio connectorCN3,P25~P36 12 4-wire touch-screen connectorCN9,Pin29~Pin32Backup Battery BT1 Component Side of Memory ModuleForm factor I/O BoardCN 6 RS-232 serial port Position DescriptionCN 4 RS-485 serial port I/O Board COM1RS-232 serial portCN 2 Audio Line-out port CN 5 RJ-45 for Ethernet portCN 3 USB Client port 10 I/O Board RJ-45 for Ethernet portCN 9 Power Connector CN 1 USB Host portCN 10 Power source to Main Board CN 7 Multi-function I/O headerCN 8 Multi-function I/O header Il Power system Software Functionality Windows CE Startup Procedure Windows CE.NET on the SPC SeriesUpgrade Procedure Utilities RegflashReboot Startup executionSafemode Calibration System ConfiguratorGeneral Touch-screen calibration DisplayWatchDog timer Hotkeys11 Hotkeys setting 5.6 DIO13 Miscellaneous settings MiscellaneousNetworking via USB port NetworkNetworking via Ethernet Page 15 Networking via USB port Networking via PPP16 Networking via PPP Web browserIntroduction to Intel Persistent Storage Manger Ipsm folder in SPC SeriesBuilding Windows CE program Application Program DevelopmentSystem requirements 17 Flow-chart of Building Windows CE.NET runtime How to install SDKPage Page Tap Install button to install SDK Install SDK…… Finish installing DeviceIoControl Running your application programsWDT Modules Parameters HDeviceReturn Values WDT Control CodesIoctlgetwdtperiod Ioctlsetscreenofftime Handle mhWDT=NULL Tchar szClassName60 Windows CE.NET 4.2 Require Components Applications End User Feature Default SelectionCore OS Services Feature Feature Default Selection File Systems and Data StoreInternet Client Services Shell and User Interface Feature Appendix a Boot & Registry Searching Sequence

SPC-57 specifications

The Advantech SPC-57 is a versatile and robust industrial computer designed for a wide range of applications in demanding environments. This system integrates advanced technologies and features to ensure high performance and reliability, making it ideal for automation, control, and data processing tasks across various industries.

One of the standout characteristics of the SPC-57 is its compact form factor. Despite its small size, it is equipped with powerful processing capabilities, utilizing the latest Intel processors to deliver exceptional computing power. This enables users to handle complex tasks efficiently, making it suitable for real-time data acquisition and processing.

The SPC-57 features a modular design that allows for easy customization and expansion. Users can select various I/O modules to tailor the system to their specific needs, whether it involves adding additional communication ports, analog inputs, or other specialized interfaces. This flexibility ensures that the SPC-57 can adapt to changing requirements over time.

Connectivity is another key advantage of the SPC-57. It offers multiple communication options, including Ethernet, serial ports, and USB interfaces. This extensive range of connectivity options makes it easy to integrate the SPC-57 into existing industrial networks, facilitating seamless communication with other devices and systems.

For enhanced reliability, the SPC-57 is built to withstand harsh environmental conditions. It is designed with a wide operating temperature range, shock and vibration resistance, and protection against dust and moisture. This rugged construction ensures that the system can operate effectively in factories, outdoor locations, and other challenging settings.

In terms of power efficiency, the SPC-57 employs advanced power management technologies. This not only reduces energy consumption but also prolongs the system's operational lifespan, making it a cost-effective solution for long-term use in industrial applications.

The user-friendly design of the SPC-57, combined with its robust features, makes it an excellent choice for industries such as manufacturing, transportation, and energy. With its ability to function reliably in various scenarios, the Advantech SPC-57 is a forward-thinking solution that meets the demands of modern industrial automation and control systems.