Install and configure Rose ha
1.1.1 install Rose ha
Copy three installation files of roseha to/data/install to facilitate installation of the two hosts.
Before installing Rose HA, modify the hosts file and enter the corresponding host name and IP address. The modification method is the same as that of the Windows Hosts file, we can enter the host name.
Modification method:
[[Email protected] # vi/etc/hosts
Add. Shape:
Ota-db1
Ota-db2
Hardware Installation
Connect the COM ports of Server 1
operating system with rich application resources. With these resources and powerful system functions, users can quickly develop embedded systems for complex applications based on embedded Linux. Therefore, combined with the advantages of the system, the system can meet the requirements of embedded systems and remove redundancy. This article provides a Linux-based development method for the system and a specific embedded application development example.1. hardware development environment1.1 Deve
chart conforming to the national military standards of the Department of air security of the haisi, and pre-processes the electronic chart data in advance, delete redundant data, compress two-dimensional geometric data, and create a grid index. On this basis, the software design of the marine navigation system is carried out, which greatly speeds up the system response.1. system hardware structure and software development platformThe overall system structure 1 is shown in. The system uses the M
This article feels good. It is helpful to understand the network data transmission using the GPRS module. I don't know if the 3G module is similar in principle, but it is just a matter of speed, this is because when I develop network programs on my andiroid mobile phone (started from 3G), I use socket-related APIs to communicate with the internet server, which is different from the conclusion, to be confirmed!
Conclusion: 1.CPUCommunication with GPRS requires
Development Board, is used as the communication interface of the serial port terminal, which has been obtained from the RS232 interface, but uart1 and uart2 are not obtained from the RS232 port, instead, the corresponding COM1 and con3 pins are obtained respectively. During the test, the RS232 conversion circuit is required.
Therefore, you need to modify the abo
devices, you can also manage the links of the same device.The management of several links of the same device means that, for example, a channel used for SDP communication and a channel used for RFCOMM communication are opened at the same time, these channels are managed to distinguish them from each other without mutual interference.SDP (Service Discovery Protocol)
Using Bluetooth technology, you can enjoy a variety of services, such as headset, hands-free phone, dial-up, input devices, image t
be expressed in table 2.
Table 2 Requirements of the device debugging system
The following uses the 4 + 1 view method recommended by RUP to design architectures from different views to meet different requirements in different categories.Logic view: design an architecture that meets functional requirements
First, we will conduct a preliminary design based on the functional requirements and divide responsibilities at a large granularity. 5.
* The application layer displays the device status and p
requirements. Logical View: Architecture designed to meet functional requirements
First, according to the functional requirements of the preliminary design, a large granularity of responsibility division. As shown in Figure 5.
The application layer is responsible for the display of the device status and provides a simulation console for the user to send debug commands.
The application layer interacts with the communication layer and the embedded layer, but the application layer does not know th
rapidly due to interference, geography, environment, and other factors.
From the above features, we can know that a complete wireless mesh network protocol must have the following features:
Distributed operations
Fast Convergence (to ensure faster movement)
Scalability
Suitable for a large number of small devices
Use only limited bandwidth and computing power
Proactive operations (Reducing Initial latency)
When selecting a route, consider the quality and capacity of the radio link.
Loo
protocol is UP
Hardware is Infineon DSCC4 PEB20534 H-10 serial
Interface address is: 172.16.2.2/24
MTU 1500 bytes, BW 2000 Kbit
Encapsulation protocol is HDLC, loopback not set
Keepalive interval is 10 sec, set
Carrier delay is 2 sec
RXload is 1, Txload is 1
Queueing strategy: WFQ
11421118 carrier transitions
V35 DTE cable
DCD = up DSR = up DTR = up RTS = up CTS = up
5 minutes input rate 17 bits/sec, 0 packets/sec
5 minutes output rate 17 bits/sec, 0
device of the branch office cannot pass the verification of the Headquarters vpn device after the one-to-one ing is modified. At this time, the user suggested that, because there are too many branches and they do not want to modify the local-address of the vpn server at the headquarters and the tunnels of each branch, they should: the vpn configuration on the Headquarters vpn server cannot be modified, and the vpn must work properly. Therefore, you need to modify the configuration of the link B
interface of the 2.3 asynchronous serial data bus (UART) interface cp2101 includes TX transmission and Rx reception data signals, as well as the control signals of RTS, CTS, DSR, DTR, DCD, and RI. UART supports the combination of RTS/CTS, DSR/DTR, and X-on/X-off handshakes. You can also program the UART to support various data formats and baud rates. UART data format and baud rate can be programmed on PC.
() function to block the operation and return the result.
Configure serial port
The serial port configuration is implemented by changing the member variable value of the device control block DCB (Device Control Block). The size of the receiving buffer and sending buffer can be set through the setupcomm function.
DCB struct is defined:
Typedef struct _ DCB {// DCBDWORD dcblength; // sizeof (DCB)DWORD baudrate; // current baud rateDWORD fbinary: 1; // binary mode, no EOF checkDWORD fparity: 1; //
and 2e8, in this example, 2f8 is used as the end port address. Use _ outp (port, 0x0c) to set the wave rate to 9600, and (_ outp (port, 0x30) to 2400, _ outp (port, 0x18) sets the wave rate to 4800 ).---- The data transmission format is determined by the address port + 3. If you choose to use seven-digit, one-stop, and one-stop parity verification, you can use outp (Port + 3, 0x3a) and outp (Port + 3, 0x1a). If you choose to use an eight-digit, one-stop-and-stop-position without ODD-even correc
(DCB );
If (! Buildcommdcb ("9600, N,", DCB ))...... // Parameter configuration error
Else ...... // Ready
Use the setcommstate function to manually set the initial value of DCB:
DCB;
Memset ( DCB, 0, sizeof (DCB ));
If (! Getcommstate (hcomm, DCB) return false;
DCB. baudrate = cbr_9600;
3.Traffic Control Device
The following two settings are available for throttling:
Hardware traffic control: There are two types of hardware traffic control: DTE/
omissing); system. runtime. interopservices. marshal. releasecomobject (APP); APP = NULL; GC. collect () ;}} catch {return ;}}///
/// Create a Word file from the template //////
Template location and name///
Public document createword (string filename, string DSR) {try {APP = new Microsoft. office. interOP. word. application (); // open the word program document DOC = new document (); // create the word object unknow = type. missing; string date =
Usually the RS-232 interface appears in 9-pin (DB-9) or 25-pin (DB-25) Type
Generally, there are two groups of RS-232 interfaces on the PC, called COM1 and com2
RS-232C interface signal
RS-232C Gauge Standard Interface has 25 lines, 4 lines, 11 control lines, 3 timing lines, 7 standby and undefined lines, commonly used only 9, they are
1. The data set ready-DSR status indicates that the modem is in usable state.
2. Data Terminal ready-DTR indicates th
call the getoverlappedresult () function to block the operation and return the result.
Configure serial port
The serial port configuration is implemented by changing the member variable value of the device control block DCB (Device Control Block). The size of the receiving buffer and sending buffer can be set through the setupcomm function.
DCB struct is defined:
Typedef struct _ DCB {// DCBDWORD dcblength; // sizeof (DCB)DWORD baudrate; // current baud rateDWORD fbinary: 1; // binary
form of a string.
Set or return the status of the communication port. You can also enable or disable ports.
Input returns and deletes characters in the receiving buffer.
Output writes the string to the sending buffer.
If the CommEvent attribute is a communication event or error, one of the following values is returned. These constants can also be found in the object library of the control.Constant Value descriptionComEventBreak 1001 received the disconnection SignalComEventCTSTO 1002 Clear To
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.