Moxa Technologies C360 manual Send break signal, Flush Tx/Rx buffer data

Page 38

Chapter 4

 

 

 

 

 

 

For UNIX Users

 

 

 

 

int

sio_ioctl(int port, int baud, int mode)

 

 

return

=

0

 

ok

 

 

 

 

 

 

-1

 

bad port

 

 

 

 

-2

 

time out

 

 

 

 

-4

 

bad baud rate

 

 

port

=

port number

 

 

 

 

baud

=

0

= 50

1

= 75

2

= 110

 

 

3

= 134.5

4

= 150

5

= 300

 

 

6

= 600

7

= 1200

8

= 1800

 

 

9

= 2400

10 = 4800

11

= 7200

 

 

12 = 9600

13 = 19200

14

= 38400

 

 

15 = 57600

16 = 115200

17

= 230400

 

 

18 = 460800

 

 

 

 

mode

=

bit_cnt OR stop_bit OR parity

 

 

 

 

bit_cnt ( bit 0, 1, 2 )

 

 

 

 

0x00

= bit_5

 

0x01 = bit_6

 

0x02 = bit_7

 

 

0x03

= bit_8

 

 

 

 

 

 

stop_bit ( bit 3 )

 

 

 

 

 

0x00

= stop_1

 

0x04 = stop_2

 

 

 

 

parity ( bit 4, 5 )

 

 

 

 

 

0x00

= none

 

0x08 = odd

 

0x18 = even

 

 

0x28

= mark

 

0x38 = space

 

 

7.Send break signal.

int

sio_break(int port, int time)

return

=

0

ok

 

 

-1

bad port

 

 

-2

time out

 

 

-4

xmit disable

 

 

-5

port is not open

port

=

port number

time

=

break time in tic ( 1/18.2 second )

8.Flush Tx/Rx buffer data.

~32~

Image 38
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 KitSerial Number of the Async Concentrator LED IndicatorsDiagnostics ~10~ Hardware Installation ∙ ∙ Chapter Control Board Configuration Software Driver Installation and SetupDriver Installation Driver Setup Driver Loading~14~ Driver Removal Moxa Serial Port Naming ConventionAsync Concentrator Status Monitoring AdministrationsDOS API-232 Library and Programming Languages Async Concentrator Diagnostics Data ScopeDriver Installation For Unix UsersFor Unix Users ∙ ∙ Chapter Convention of the Moxa TTY device name is Moxa TTY and Non-TTY PortsMoxa TTY Ports 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 dataGet modem line status Read the length of data queued in Rx bufferRead the length of data queued in Tx buffer Setting CTS/RTS and XON/XOFF flow control Set modem line control signal DTRSet modem line control signal RTS 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

C360 specifications

Moxa Technologies C360 is a cutting-edge solution designed to meet the demands of modern industrial networking. This device is pivotal for various sectors including manufacturing, transportation, and smart grid applications, where reliable communication is critical.

One of the main features of the C360 is its ability to provide robust connectivity options. It comes equipped with multiple Ethernet ports, allowing for seamless integration into existing networks. The device supports advanced networking protocols such as EtherNet/IP, Modbus TCP, and MQTT, which facilitates easy communication between devices, enhancing interoperability and data exchange capabilities.

Another standout characteristic of the C360 is its high-level security features. With the increasing number of cyber threats targeting industrial networks, Moxa Technologies emphasizes the importance of safeguarding connected systems. The C360 includes built-in firewall capabilities, access control lists, and support for virtual private networks (VPN), ensuring that critical data remains secure during transmission.

The C360 is also designed for reliability in harsh environments. Its rugged construction guarantees durability and resilience against extreme temperatures, vibrations, and electromagnetic interference. This makes it perfectly suited for outdoor deployments or in situations where conditions may compromise less robust devices.

Moreover, the C360 boasts a user-friendly interface with intuitive management tools. Network administrators can monitor performance, configure settings, and troubleshoot issues easily via a web-based interface or command-line options. This level of accessibility improves operational efficiency and allows for rapid response to network needs.

Compatibility with Moxa's MXview network management software adds another layer of convenience. This software provides centralized network monitoring, enabling proactive management of network devices, which is essential for maintaining uptime in critical applications.

In conclusion, Moxa Technologies C360 is a versatile and reliable solution that addresses the complexities of modern industrial communication. With its advanced networking protocols, robust security measures, rugged design, and user-friendly management tools, it stands out as an essential component for organizations looking to enhance their operational efficiency and secure their networks. The C360 is engineered to provide lasting performance, making it a valuable investment for businesses aiming for growth and innovation in an increasingly connected world.