Moxa Technologies C360 manual Set modem line control signal DTR, Set modem line control signal RTS

Page 40

Chapter 4

 

 

For UNIX Users

 

 

 

 

 

 

 

bit 2 -- S_RI

 

 

 

bit 3 -- S_CD

 

 

-1

bad port

 

 

-2

time out

port

=

port number

12. Set modem line control.

 

int

sio_lctrl(int port, int mode)

return

=

0

ok

 

 

-1

bad port

 

 

-2

time out

port

=

port number

mode

=

C_DTR(bit 0), C_RTS(bit 1)

13. Set modem line control signal DTR.

int

sio_DTR(int port, int mode)

return

=

0

ok

 

 

-1

bad port

 

 

-2

time out

port

=

port number

mode

=

0

set DTR off

1set DTR on

14.Set modem line control signal RTS.

int

sio_RTS(int port, int mode)

return

=

0

ok

 

 

-1

bad port

 

 

-2

time out

 

 

-6

H/W flow control setting

port

=

port number

mode

=

0

set RTS off

1set RTS on

15.Setting CTS/RTS and XON/XOFF flow control.

~34~

Image 40
Contents C360 Copyright Notice Moxa Internet Services Table of Contents Appendix a Troubleshooting Page Introduction OverviewFeatures and Specifications FeaturesSpecifications 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-TTYDiagnostics Driver ResetMonitoring 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 ListFunction Description Open a non-TTY portClose a non-TTY port Read data from a non-TTY port Non-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