Moxa Technologies C360 manual DOS API-232 Library and Programming Languages, Administrations

Page 22

Chapter 3

For DOS Users

 

 

3.3 DOS API-232 Library and Programming Languages

For DOS programming, API-232 includes powerful libraries supporting languages like Microsoft C, Turbo C, Macro Assembly, QuickBasic, Turbo Pascal, Clipper, etc. Sample programs for each supported language are included. See the files in the sub-directory EXAMPLE\language of the API-232 directory.

For complete API-232 function description, see API-232 User's Manual or file API-232.TXT in the API-232 directory for more details. The following functions illustrated in C are for C360 only. Some language may vary in function name and some does not support sio_getACs( ) due to its restriction.

1.sio_getACs( ) : Get C360 Async Concentrators' serial numbers

2.sio_ACstate ( ) : Get C360 Async Concentrator's status

3.sio_ACdiag ( ) : C360 Async Concentrator’s diagnostics

Function, sio_loopback(), is not available for C360. Function, sio_ACdiag( ) is recommended instead.

3.4 Administrations

The utility, BIN\SP-ADM.EXE, is for C360's status monitoring and hardware diagnostics.

Async Concentrator Status Monitoring

This utility gives user a quick view about the status of all the Async Concentrators linked with each Control Board. Status "Running" means the Async Concentrator with corresponding serial number is working. Status "No response" means the Async Concentrator is powered off or defective or the Ethernet cabling goes wrong somewhere.

~16~

Image 22
Contents C360 Copyright Notice Moxa Internet Services Table of Contents Appendix a Troubleshooting Page Introduction OverviewSpecifications Features and SpecificationsFeatures SystemControl Board Async ConcentratorCheck list C360 Control BoardRack Mount Kit Hapter 2 Hardware Installation Installation of C360Hardware Installation ∙ ∙ Chapter Hub Rack Mount KitDiagnostics LED IndicatorsSerial Number of the Async Concentrator ~10~ Hardware Installation ∙ ∙ Chapter Driver Installation Software Driver Installation and SetupControl Board Configuration Driver Setup Driver Loading~14~ Driver Removal Moxa Serial Port Naming ConventionDOS API-232 Library and Programming Languages AdministrationsAsync Concentrator Status Monitoring Async Concentrator Diagnostics Data ScopeDriver Installation For Unix UsersFor Unix Users ∙ ∙ Chapter Moxa TTY Ports Moxa TTY and Non-TTY PortsConvention of the Moxa TTY device name is Tty + a + B + C Moxa Non-TTY PortsConfiguration Async Concentrator Serial Number TTY or Non-TTYMonitoring DiagnosticsDriver Reset Concentrator RestartProgramming the Moxa TTY Ports Using Standard Unix API Terminal EmulationExtended Function List for Moxa TTY Ports Function DescriptionMobufed Mhwflow Programming the Moxa Non-TTY Ports Using Moxa Unix API-232 Function ListClose a non-TTY port Function DescriptionOpen a non-TTY port Read data from a non-TTY portNon-TTY port parameter setting Write a string of data to Tx bufferSend break signal Flush Tx/Rx buffer dataRead the length of data queued in Tx buffer Read the length of data queued in Rx bufferGet modem line status Set modem line control signal RTS Set modem line control signal DTRSetting CTS/RTS and XON/XOFF flow control Disable transmitting data Enable transmitting dataAppendix a Hardware causes and solutions Software Cause and SolutionSoftware Causes and Solutions Solution RTS DSR CTS DTRHardware Cause and Solution Under UNIX, the newly rebuilt kernel could not bootAppendix B Ethernet CablingAsync Concentrator and Serial Number RJ-45 Female Connector RS-232 Cable WiringDTE GND RTS CTS DSR Appendix C Appendix C ∙ Problem Report Form Customer name Company Date Tel FaxWarranty