Thursday, September 16, 2010

FreeBSD Serial (35): serial port and modem


LAN to FreeBSD and Internet (or other wide area network) connection, you need to use the wide area network interface. For the average user, using ordinary telephone lines for dial-up way, it is more common practice. This requires first to use the computer's serial port to connect to the modem (modem), the further through the modem to connect to the Internet.


Serial port and modem

So if using a computer dial-up connection to the remote, you must configure the computer's serial port and a good modem.

Personal computers generally have two serial ports, DOS, called COM1, COM2, FreeBSD Unix habit of using the array starting from 0, corresponding to the serial port hardware sio0, sio1. Start the system will automatically detect the hardware, test results appear on the screen, you can log in to use dmesg to see the startup information to determine whether the hardware actually being detected. If the serial port is detected, you can use to connect to the appropriate serial port on the external modem to connect.

If you use the built-in modem card, the card will include a serial device, according to the card's settings, the serial device can sio2 or sio3, we must ensure that the kernel support for the third, fourth serial devices sio2 and sio3. But with the DOS is different, modem cards can not be used with existing serial port IRQ sharing hardware resources. Since DOS is a single task operating system, can not use both serial ports, IRQ sharing is possible, therefore COM1 and COM3 share IRQ 4, COM2 and COM4 share IRQ 3. But for multi-user operating system, FreeBSD is concerned, there will be multiple processes simultaneously access devices, each device must occupy a separate IRQ, it is necessary modem cards in the kernel will set another free IRQ value.

To change the jumpers on the card or run the Setup program in DOS, change the card settings to make the hardware settings are consistent with the kernel configuration. PNP modem card is usually the correct set of hardware resources can also be reset by UserConfig.

When the FreeBSD kernel detects serial device, the device will be able to file through the corresponding access the serial port of the. Corresponding to the first serial device sio0 documents / dev/ttyd0 and / dev/cuaa0, corresponding to the second serial port sio2 device file / dev / tty d1 and / dev/cuaa1, and so on.

FreeBSD provides two serial ports on a device file, in fact, they correspond to the same hardware, only slightly different properties. cuaa0 mainly used to allocate, ttyd0 mainly used to dial and direct connection. Setting these two devices as the reason for a computer and modem to communicate data between two categories, one for the computer to the modem through the serial port to send control commands, used for the AT commands Hayes, the data is sent to the modem, but another computer via modem to send data to the telephone line transmission data, which only you can let the modem to modem. For the application in terms of, to a very simple to distinguish between the two data, the initial state can use two different devices file.

When an external dial-house, the telephone connection has been set up, and data transmission is between the computer and telephone network, modem to modem only, this time on the use of ttyd0. When the outward dialing, modem not establish a connection, the computer should send the command to the modem, control the implementation of dial-up modem, etc, then use the device file on cuaa0. Once the connection is established, the system will reset the device file's properties, making cuaa0 data is also sent to the phone line.

So ttyd0 and cuaa0 two device files, but different initial conditions, and are not essential differences. In fact most of the dial-up software will reset the device file of the state, which device to use dial-up process can be completed properly. However, the practice is still customary to use cuaa0 used to allocate, ttyd0 as a dial, so to avoid some of the software can not correctly reset the device file of the state of the problem.






Recommended links:



quicktime rmvb



Photo 6 of a tough, for the first magic



"COTTAGE XP" national dream



Convert m2ts to mkv



Articles about Games Simulation



MMOG / LE assessment of the road Troika



J2ME Learning Reviewing the Old Posts



Matroska format



Ghost 20 little-known practical parameters



E-cology In The Pan Micro Series 14



Talent war broke out, the direct selling INDUSTRY executives 300 000 -50 million annual salary



XBOX360 rmvb



Recommend Anti-Virus Tools



Wednesday, August 4, 2010

The United States too much control over the domain name is popular in China CN domain name


Recently, the reporter learned from relevant channels: the basis of our two largest Internet service providers and 10,000 net new web, spontaneously began to shift focus recently, the main push CN domain name.

Chinese domain name industry, change is happening. Back in August, the China Internet Network Information Center Director Mao Wei, once predicted: "Next year will exceed the amount of CN domain name registration COM domain name."

In recent years, China has been rumors that Chinese enterprises in foreign companies suffered looting COM domain name news, resulting in the website with the domain of Chinese enterprises lost and die, the company caught in an impasse. Faced with this situation, domestic experts said that the registration rights guaranteed in the CN domain names will be considered to protect Chinese enterprises Yuminganquan the best solution for enterprise security will become options, will greatly improve the company's domain security level .

Recently, well-known Internet service providers 10 000 network, as well as thousands of new web domain agencies, jointly recommended opening of CN domain name business as soon as possible, improve enterprise network security factor. China is waging a "campaign to upgrade the security domain."

It is understood that 10 000 nets from now until December 31 for all 10,000 network users have a COM domain names, allowing them to ultra-low price of 25 yuan corresponding CN domain name registration, quickly escalated into a security CN users. New web all over the country through the activities of the domain name registration solutions delivered to enterprise door. At the same time, thousands of domain name registration agency also is working with higher registrar to launch localized security upgrade program.






Recommended links:



Students job "walking on two legs"



Jobs: find a good quality of the work Of eight major



Free mkv converter



The process of recording impromptu slide show reaction



Sybase Basics



f4v Converter



Flv To 3gp Converter



VOB to flv



Reference Tools Shop



Teach you from complex background using Photoshop cutout dress



Independent research and development of the Sword by CAE



Articles About Communications Tools



evaluation Management AND Distribution



New Source Editors



Communication: four stories, four walls!



Monday, July 12, 2010

DB2 agent works in depth with the connection process



Introduction

DB2 agent (agent) is in the DB2 server service application requests a number of processes or threads. When an external application to connect to DB2 instance access request made, DB2 agent will be activated to respond to these requests. General DB2 agent is known as job agents, job agents about three types: free agents, coordinate the activities of agents, sub-agents.

鈼?free agent: refers to any task agent. This agency does not serve any remote connection does not serve the local connection, in a backup or standby state.

鈼?agency coordination of activities: means the agent is in working condition, each produced by an external application has a database of activities connected to the coordination of activities to the agency it serves.

鈼?sub agency: refers to the coordination agent to accept the work of distribution out of the next level agency. In DB2 V95, only the multi-partition environment (MPP) or a node within the parallel environment (SMP) under which there is sub-agents, in DB2 V95 in all circumstances there may be sub-agent.

DB2 server in a proxy pool, when the instance starts here just have a number of agents (their number depends on the instance of the parameter NUM_INITAGENTS). In the absence of any database connection, they are in standby, is free agency. When there is an external program to connect to the database, the agency began to receive orders to serve in these new connections, then they become the coordination of activities agents. The coordination agent then the gradual breakdown of the request, under an agency that is assigned to the sub-agent to deal with. If the current agents are already working at the same time again a new request, the database manager will generate a new proxy to answer. When the transaction is completed and the database connection is lost, the coordinating agent or to return back into free agent pool agents, or automatically disappear (depending on the instance of the parameter NUM_POOLAGENTS). This is an agency of the life cycle.

Related configuration parameters

Through the implementation of DB2 get dbm cfg and agents can see several examples of related parameters: MAXAGENTS, NUM_POOLAGENTS, NUM_INITAGENTS, MAX_COORDAGENTS, MAX_CONNECTIONS, MAXCAGENTS. The following brief description on what they do:

鈼?MAXAGENTS: This parameter for the current instance of the number of all agents, including the coordination of agents, free agents and sub agents combined. However, in this parameter in the DB2 V95 is no longer used.

鈼?NUM_POOLAGENTS: This parameter is used to control the agent pool, the number of idle agents. When the activities of the agency to complete its work back to become a free agent when the agent pool, if more than this parameter, then the agent will automatically disappear. NOTE: In connection concentrator enabled case, the pool of free agents the number of agents at a time may exceed the size of NUM_POOLAGENTS to deal with unexpected high-density connection.

鈼?NUM_INITAGENTS: This parameter is the instance mentioned above when they just started generating some number of free agents. This is to improve performance, because these agents can always become a coordinated response to external application to request agents, instead of the temporary re-generate a new agent.

鈼?MAX_COORDAGENTS: This parameter determines the instance of the largest coordinated at the same time the number of agents (in a multi-partition environment, a node refers to the maximum number of coordinating agents).

鈼?MAX_CONNECTIONS: This parameter determines the instance to allow connection to a maximum number of connections (in a multi-partition environment, a node refers to the maximum number of connections).

鈼?MAXCAGENT: This parameter determines the number of instances of the token, a coordinating agency can only be a token to the service application. If not token, the coordinating agency can only wait. However, in this parameter in the DB2 V95 has also canceled.







相关链接:



Computer Education Infomation



PPC APE Recorder



Directory Fax Tools



Youtube to Treo Top Rated



M4v



#1 DVD to Zune & Zune Video Converter



Youtube FLV to Divx Plus



Bluesea XBox 360 Deconde



What is a vob file



Video converter mp4 to mpeg



LasVegas YOUTUBE to iPhone



Youtube Movie to Xbox Help



Teaching And Training Tools Report



3gp To avi



Thursday, May 27, 2010

AllRipper AVI to iPod

AllRipper AVI to iPod has the easy convert almost all popular video formats to iPod Video and other various video formats. It supports converting among AVI, MPG, MPEG, WMV, MP4, 3GP, MOV, RM, PSP Video, iPod Video, Zune Video, iPhone Video. VOB to iPod MP4 video and extracting audio from video file and converting to MP3, WAV, AC3, WMA, M4A, OGG, AAC etc.

AllRipper AVI to iPod is a best video and movie converter to iPod! This product offers convert movie to iPod, Easy Convert AVI, MPEG, WMV, MOV, MP4, RM, RMVB, DivX, ASF, VOB, 3GP and etc. AllRipper AVI to iPod helps you watch your music videos and movies on your iPod. In addition, you can also extracting audio from movie or music video and converting to iPod supported MP3 file format!

Sunday, March 21, 2010

Youtube FLV to Windows Mobile Software


It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Easily Convert all popular video formats. Provides the highest speed to download YouTube video. Support unlimited simultaneous downloading tasks. Supports auto-name your downloaded video title as the YoutTube page shows. Offers you the most convenient task management and the easiest control capability. About Conversion Features. - is the most powerful YouTube assistant on the planet.

Thursday, February 11, 2010

Youtube FLV to Xbox Gold


It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports "Drag and Drop" video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.

Tuesday, February 9, 2010

Youtube FLV to 3GP Utility


It's most popular and very easy to use YouTube tools. helps you Fast download, convert, play, manage your favorite YouTube videos. If you're a YouTube fan, you'll love YouTube tool! is the most powerful YouTube assistant on the planet. YouTube tool easily: 1. Fast downloads YouTube videos, 2. Supports unlimited simultaneous downloads (a real time saver!), 3. Automatically names the downloaded video the same as the YouTube title, 4. Converts YouTube videos to various video formats, including Video, DVD, VCD, AVI, MPG, MPEG, Divx, Xvid, WMV, RM, RMVB, MOV, MP4, 3GP, SWF, DAT, H264, VOB, Flash, PDA, M4V, 3G2, AMV, CDA, DV,QuickTime, ASX, TV, VHS, FLV, H264, BDMV, MAC, Apple TV, Zune, iPod, PDA, PSP, PS2, PS3, Xbox, Xbox 360, Mobile Phone, Cell Phone, Blackberry, Wii, Laptops, Printers, Palm OS, Pocket PC, PPC, Treo, Psion, EPOC, iphone.
Supports customize or create user's own profile for any new (portable) device. The video conversion supports preview. About Playing Features. Embedded YouTube Video (Offline) Player is available, it supports offline play YouTube video, .flv video and .swf video. Supports "Drag and Drop" video files direct to the main window. Easy to select the source files. Cool UI skin available. - is the most powerful YouTube assistant on the planet.