Recently too busy, there is no time to write about the ucos-ii transplant, first of all the work is easy to make a mistake in the knowledge points recorded, about the CTS and RTS.
In RS232 the CTS and RTS have a clear meaning, but since Hayes (HAYES) introduced smart Cat (SmartModem) is a bit confusing, but now this meaning for the mainstream, the main chip manufacturers of the UART controller flow control basic use HAYES Modem flow control interpreta
selection of standard power cords.Controller signal line
The Controller has three signal lines connected to the card reader 4 ~ 9-core), lock status sensor 2-core in the electric lock) and 2-core push button ). These three signal lines can be replaced by twisted pair wires in integrated cabling.
To avoid electromagnetic interference in space, the signal line of the card reader should be shielded. The other two signal lines can be shielded or non-shielded.
Remote signal line
There is a signal li
, the selection of standard power cords.
Controller signal line
The Controller has three signal lines connected to the card reader (4 ~ 9-core), lock status sensor (2-core) and push button (2-core) in the electric lock ). These three signal lines can be replaced by twisted pair wires in integrated cabling.
To avoid electromagnetic interference in space, the signal line of the card reader should be shielded. The other two signal lines can be shielded or non-shielded.
Remote signal line
There is a
Communication: RS232 Interfacecommand Syntax
field
description
prefix
a semicolon character"; " (59), must be placed in front of all commands, when the device receives the prefix character will reset the command input buffer.
address
two
commandstring
commandsare Specifictoeachdevice --seethefollowingsectionsfor thecommandsthateachdevicesupports.
one of the three signals is down, the physical state of the router serial port is in the state of Down). In addition, if the No DETECT DSR-DTR command is configured on the serial port of the router, the DTE side (router) does not detect whether the headend is sent over the DSR and CTS signals, and the physical layer is reported up as soon as the DCD signal is detected. 2, if the router's serial port configuration of the Flow control command (the specific command is FlowControl Auto), RTS and CT
interrupt, you can compile a program with a more complex structure. Such a program can do one thing and monitor one thing. Once something is monitored, interrupt what is being done, process monitoring, of course, you can also monitor multiple things, the image analogy, the interruption function enables the single-chip microcomputer to have a bowl, look at the pot function.
The above three steps are equivalent to killing the dragon and giving up the eight-handed martial arts. You can barely prot
There is a project that uses the PC104 board (PCM-3341), the Linux system.
But at least 3 RS232 in the project, see Datasheet, enough. The board has 3 separate RS232 and a rs232/485 multiplexing port. But in the actual test use, encountered a problem. 1 and 2 can work (later found to be problematic, reading sensor data, reading is not complete), but 3 and 4 have
Qt serial Port class Qserialport use notes
Although the RS232 interface is no longer available on most home PCs today. However, due to the simple operation of RS232 serial port and reliable communication, there are still a lot of applications in the industrial field. Qt Previous version, did not provide official support for the RS232 serial port, writing serial
In Ise, the set pin can be constrained by opening the Assign package pins in user constraints.
Xilinx pack-[design Object list-i/o Pin opened]
Where the parameters are set as follows
I/O name--io pin name, corresponding to the input and output pins in module.
I/O Direction--Sets the input or output pin.
Loc-Located on the chip.
Bank-the bank block where the pin is located, and when LOC is specified, the bank is determined.
FROM:SPARTAN-3E FPGA series Data Sheet P19
I/O Std. Leve
), unable to program flash outside the processor.Program download using the XMODEM protocol is a common practice for many products, such as Cisco's router products, Huawei's ISDN terminal products, which use the Windows-brought HyperTerminal software to transfer files without the need to install proprietary software. Simply add a break to the target board to implement the Xmodem protocol "diagram 1", it is easy to implement the program or data file download. In the following paragraphs, the impl
, can solve even a minor problem for your project, it is enough.Although my introduction to this series of things is not a web framework, nor any open source server, but I believe that as a programmer, what kind of problems will be encountered. Sometimes the more simple the problem is, the less it is, the harder it is to find the guy. As long as you are not dealing with "architecture", "widget" or "frame" all day, believe what I say you will use.1 Introduction to Serial communicationMany applica
interface adapters or download lines to work together, which may increase user investment and costs.
To implement ISP programming, the P89LPC932 chip relies on a segment preset at the factory, this code is stored at the high-end 512b address of Sector 7 in the P89LPC932 code space (the 8 KB program memory in P89LPC932 is organized into 8 sectors, each of which has 1 kb ). This Code provides an interface between the device's underlying operation code (such as erasure and programming) and serial
then sent to the GPRS terminal by the BSS.
2 Embedded GPRS Communication System implementation
2.1 Hardware Design of GPRS module
The Embedded GPRS wireless communication module consists of a single-chip microcomputer (msc1210y5) embedded with TCP/IP, a GPRS module, a SIM card holder, an external interface, and extended data storage. Figure 2 shows the hardware diagram of the system.
The MSC1210 control the information received and sent by the GPRS module, and communicate with the external cont
easily tested because it is a software system supporting hardware products, otherwise, it will be difficult to distinguish between hardware faults and software faults. In addition, it must have high performance. The specific performance indicator is "display of device status refresh five times per second, it also supports sending a complete command word ". 1-3.
Figure 1-3 CRC card: main objectives of the device Commissioning System
Then, the software architect must plan the spec
The connection string is also divided into two parts: pass-through and cross. The connection is generally used to prolong the connection between the PC and the device. 2, 3, and 5 are connected to 2, 3, and 5 respectively, because the PC is generally a public head, most of the devices are headers, so they are common and can be used for extension or connection. Crossover is generally used for connection between PCs, set 2 to 3, 3 to 2, 5 to 5. Generally, both ends are mother-headed!
Before the co
The serial cable can be divided into straight chain and intersection. Generally for straight line extension PC equip, will 2, 3, 5 connect 2, 3, 5, because PC universal male. But the devices are mostly female, so they are just plain, and it can also be used to extend the connection; the crossover PC is connected to the PC with 2 pairs of 3, 3 pairs of 2, 5 to 5, and the general two are female at both ends!Before the computer appeared, the EIA established the
1.rs232 levelOr the serial level, some even say the computer level, all these statements, refers to the computer 9-pin serial port (RS232) level, using negative logic,-15v ~ -3V Rep 1+3V ~ +15v Rep 02.rs485 and RS422 levelSince both use differential transmission (balanced transmission), so they are level mode, generally have two pin, a, bVoltage difference between the sending side AB+2 ~ +6v:1-2 ~ -6v:0Volt
The serial line also points through and crosses, pass-through is generally used to extend the PC and equipment, will be 2, 3, 5 respectively connected 2, 3, 5, because the PC is generally male, and the device is mostly female, so just they are universal, can be used for extension can also be used for connection; crossover is generally used for PC docking with PC, 2 to 3, 3 to 2, 5 to 5, usually both ends are female!Before the computer appeared, the EIA established the
Android Development (37) android uses android_serialport_api to operate the serial port to solve the permission problem. androidserialport
Recently, we have a project where we want to use the android device to operate the serial port zebra GK888T printer and print the QR code using the printer.
Hardware Device connection method:
Android devices connect to the serial port of the zebra printer through serial port RS232
Solve the problem of using Andro
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.