Logo

www.cloudub.com


Inventory3 - Windows Live

Thanks for visiting!.


What is the best face make you closer to other people? Many people's knee-jerk answer must be smiling, but a person does not think so, why? Because a smile can do all the action is, good people can be bad, too, can smile smile But there are exceptions, like, whether you are good people and bad, as long as at this moment, you "feel good side," can more easily be accepted. .


___。.


Sent with treo mobile phone. .


Today in a speech to the veterans, heard him from a capital perspective towards greater success, has alerted feeling, because they have never heard a similar view, moreover, his view was that I recognized.


He said: China is currently divided into four sectors, namely, elite, high class of intellectuals, the middle class and other classes, then into the elite What conditions? At least four capital: 1. . Political capital, 2. . Knowledge and basic skills capital, 3. . Social Capital, 4. . Human resources capital. .


Political capital is a leading small businesses and large enterprises, small enterprises are also larger inevitable issues, the society refers to relationships, human capital is our team, employees.


___. .


Sent with treo mobile phone。.


A predecessor of today's lecture, listening, heard him described from the perspective of capital into major success, feeling quite alarmed, because in the past have not heard similar views, Moreover, his views are quite so I accepted. .


He said: China is divided into four segments of society, are the intellectual elite, high class, middle class and other classes, then entered the elite what conditions? requires at least four capital: 1.2. political capital, knowledge and basic skills capital, social capital, 3., 4. human resource capital.


Political capital is the leading small businesses and large enterprises difference is small to large enterprises the inevitable problems, social relations refer to connections, human resources, capital means their team and staff. .


___。.


Sent with treo mobile phone. .


Test.


___. .


Sent with SnapperMail。.


www. . Snappermail. . Com. .


WebBrowser control memory overrun patches From Microsoft.

Keep a long time in the program using WebBrowser access to different pages will be a memory overflow, Microsoft gives the patch, but the test does not seem how. To get the patch to apply through the mail, I only got enough for three of the XP, 2003 and Vista patch to share. But Microsoft said there was no regression testing ,(*^__^*) hee hee ... .... .


Get the patch, if you don't mind please go to Microsoft Download http://support. .microsoft. .com/kb/943510/zh-cn.


Here I get the patch itself to you. .


XP:。.


http://www. . Cnblogs. .com/Files/tishifu/WindowsXP-KB943510-x86-CHS. . Rar. .


2003:.


http://www. . Cnblogs. .com/Files/tishifu/WindowsServer2003-KB943510-x86-CHS. . Rar. .


Vista:。.


http://www. . Cnblogs. .com/Files/tishifu/Windows6. .0-KB943510-x86. . Rar. .


XP+2003+Vista:。.


http://www. . Cnblogs. .com / Files / tishifu / Windows-WebBrowser. . Rar. .

This is a temporary log was not deleted. Please delete it manually. (3f8e95ca-a4c2-4cc1-8f23-76caffc11119 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)。.

sql database syntax. .

Finishing: SQL database syntax.

-------------------------------------------------- ------。 .


I. basis.

1, Description: Create a database. .


Create DATABASE database-name 。.

2, Description: delete the database. .


drop database dbname 。.

3, Description: backup sql server. .


-Create a backup of the device data.


USE master. .


EXEC sp_addumpdevice 'disk', 'testBack', 。.

'C: \ mssql7backup \ MyNwind_1. . Dat '. .


---Start backup.


BACKUP DATABASE pubs TO testBack. .

4, description: create a new table.


create table tabname (col1 type1 [not null] [primary key], col2 type2..

[not null],。.)。.


According to the existing table to create a new table:. .


A:create tab_old tab_new like table (using the old table to create a new table).


B: create table tab_new as select col1, col2 ... from tab_old definition. .

only 。.

5 Note: delete the new table. .


drop table tabname 。.

6 Description: Add a column. .


Alter table tabname add column col type。.


Note: The column will not be removed to increase. After the DB2 data types in the list with no change, the only change in the. .

Is to increase the length of a varchar type.

7, Description: Add a primary key: Alter table tabname add primary key (col). .


Description: delete primary keys: Alter table tabname drop primary key (col).

8, Description: create index: create [unique] index idxname on tabname (col .....). .


Delete index: drop index idxname.


Note: The index is not changed, want to change to remove the re-construction. .

9, description: create view: create view viewname as select statement.


Remove view: drop view viewname. .

10, description: a few simple basic sql statements.


Select: select * from table1 where range. .


Insert: insert into table1 (field1, field2) values (value1, value2).


Delete: delete from table1 where range. .


Update: update table1 set field1 = value1 where coverage.


Find: select * from table1 where field1 like '% value1%' --- like the language. .

Method is very ingenious, check information!.


Sort: select * from table1 order by field1, field2 [desc]. .


Total: select count as totalcount from table1.


Sum: select sum (field1) as sumvalue from table1. .


Average: select avg (field1) as avgvalue from table1.


Maximum: select max (field1) as maxvalue from table1. .


Minimum: select min (field1) from table1 as minvalue.

11, Description: several high-level query term operation. .


A: the UNION operator.


UNION operator results through a combination of the two other tables (for example, TABLE1 and TABLE2) and the elimination table. .

Any duplicate rows and derive a results table. When used in conjunction with the ALL UNION (that is, when the UNION ALL.

), Not eliminate duplicate rows. In both cases, each row of the table is not derived from TABLE1 came from. .

TABLE2。.

B: EXCEPT operator. .


EXCEPT operator by including all in TABLE1 but not in a row in TABLE2 and the Elimination of all weight.

Re-bound and derive a result table. ALL EXCEPT when used in conjunction with the time (EXCEPT ALL), are, of course. .

In addition to the duplicate rows.

C: INTERSECT operator. .


INTERSECT operators through the TABLE1 and TABLE2 only includes all of the rows and the Elimination of all duplicate rows.

The results derived from a table. When ALL INTERSECT when used in conjunction with (INTERSECT ALL), is not. .

Elimination of duplicate rows.


Note: Use the operation of several query results word line must be the same. .

12, description: using outer joins.


A, left outer join:. .


A left outer join (left): the result set includes several connection table matches, but also left join all rows of the table.

.


SQL: select a. . A, a. . B, a. . C, b. . C, b. . D, b. . F from a LEFT OUT JOIN b ON a. . A. .

= b。.c。.


B: right outer join:. .


Right outer join (right connection): the result set includes both the connections table match the connection line, including all the right connections table.

Line. .


C:full outer join: 。.


All external connections: not only match the symbolic link table rows, also includes two connections in the table all the records. .

Second, promotion.

1, Description: Copy table (only copy the structure, the source table name: a New Table Name: b) (Access is available). .


Method 1: select * from where a into b 1 1 <>.


Method 2: select top 0 * into b from a. .

2, description: copy tables (copy data, source table name: destination table name: a b) (Access available).


insert into b (a, b, c) select d, e, f from b;. .

3, description: a cross-database table copy (specific data using absolute paths) (Access available).


insert into b (a, b, c) select d, e, f from b in 'specific database' where clause. .

Pieces.


Example:. . From b in '"& Server.. MapPath ("。.")&" \ data. . Mdb "&" 'where. .

4, description: subquery (table 1: a table name 2: b).


select a, b, c from a where a IN (select d from b) or: select a, b, c. .

from a where a IN (1,2,3) 。.

5, Note: Display the article, the author and the final response time. .


select a。.title,a。.username,b。.adddate from table a,(select max(adddate) 。.

adddate from table where table. . Title = a. . Title) b. .

6, description: outer join query (table 1: a table name 2: b).


select a. . A, a. . B, a. . C, b. . C, b. . D, b. . F from a LEFT OUT JOIN b ON a. . A =. .

b。.c 。.

7, Description: Online view query (table name 1: a). .


select * from (Select a,b,c FROM a) T where t。.a > 1; 。.

8 shows that: between the use, between the data limits the scope of inquiry, including the boundary values, not. .

Between not included.


select * from table1 where time between time1 and time2. .


Select a, b, c, from table1 where a not numerical values between 1 and 2.

9, note: in the use. .


Select * from table1 where a [not] in (' value 1 ', ' value 2 ', 4 ', ' value ' value ' of 6.

). .

10, description: a two-table, delete the primary table is not in the secondary tables.


delete from table1 where not exists (select * from table2 where..

table1。.field1=table2。.field1 ) 。.

11, Description: Four tables together into the problem:. .


select * from a left inner join b on a。.a=b。.b right inner join c on 。.

a. . A = c. . C inner join d on a. . A = d. . D where. .

12, description: five minutes ahead of schedule reminders.


SQL: select * from schedule where datediff ('minute', f the start time, getdate..

())>5 。.

13, Description: A sql statement buttoned database page. .


Select top 10 * from b.. (select top 20 primary key fields, sort fields from the table name.

order by sort field desc) a, table name b where b. . The primary key field = a. . The primary key field order. .

By a.. sort field.

14, Note: the first 10 records. .


Select top 10 * form table1 where coverage.

15, Description: Select the value in each group b the same data in a corresponding record of the largest of all the information (like..

This usage can be used in Forum monthly rankings, monthly hot product analysis, press subject results ranking, etc..

And so on. .). .


select a,b,c from tablename ta where a=(select max(a) from tablename 。.

tb where tb. . B = ta. . B). .

16, description: including all in TableA, but not in TableB, and TableC rows and eliminate all heavily.

Re-bound and derive a result table. .


(select a from tableA ) except (select a from tableB) except (select a 。.

from tableC). .

Description: 17, 10 out of random data.


select top 10 * from tablename order by newid (). .

18, description: randomly selected records.


select newid (). .

19, note: delete duplicate records.


Delete from tablename where id not in (select max (id) from tablename..

group by col1,col2,。.) 。.

20, Description: list of all database table names. .


select name from sysobjects where type='U' 。.

21, Description: list of all the table. .


select name from syscolumns where id=object_id('TableName') 。.

22, Description: shows the type, vender, pcs field to field type arrangement, case can easily be real. .

Now select multiple options, a similar case in..


select type, sum (case vender when 'A' then pcs else 0 end), sum (case..

vender when 'C' then pcs else 0 end),sum(case vender when 'B' then pcs 。.

else 0 end) FROM tablename group by type. .


Show results:.


type vender pcs. .


1. A computer.


Computer A 1. .


CD B 2.


CD A 2. .


Phone B 3.


Mobile C 3. .

23, description: initialize the table table1.

TRUNCATE TABLE table1. .

Description: select 24, from 10 to 15 records.


select top 5 * from (select top 15 * from table order by id asc). .

Table_ order by id desc alias.


Third, skills. .

1, 1 = 1 = 1, 2, in the SQL statements to be grouped with more.

"Where 1 = 1" is expressed Select All "where 1 = 2" all non-election. .


Such as:.


if @ strWhere! =''. .


begin。.


set @ strSQL = 'select count (*) as Total from [' + @ tblName + '] where. .

' + @strWhere 。.


end. .


else 。.


begin. .


set @strSQL = 'select count(*) as Total from [' + @tblName + ']' 。.


end. .

We can write directly.


set @ strSQL = 'select count (*) as Total from [' + @ tblName + '] where. .

1 = 1 ' + @ strWhere stability.

2, shrink the database. .


--Rebuild the index.


DBCC REINDEX. .


DBCC INDEXDEFRAG。.


- Shrink the data and log. .


DBCC SHRINKDB。.


DBCC SHRINKFILE. .

3, compact the database.


dbcc shrinkdatabase (dbname). .

4. transfer the database to the new user to the user rights that already exists.


exec sp_change_users_login 'update_one', 'newname', 'oldname'. .


go 。.

5, check the backup set. .


RESTORE VERIFYONLY from disk='E:\dvbbs。.bak' 。.

6, repair the database. .


Alter DATABASE [dvbbs] SET SINGLE_USER。.


GO. .


DBCC CHECKDB('dvbbs',repair_allow_data_loss) WITH TABLOCK。.


GO. .


Alter DATABASE [dvbbs] SET MULTI_USER。.


GO. .

7, clear the log.


SET NOCOUNT ON. .


DECLARE @LogicalFileName sysname,。.


@ MaxMinutes INT,. .


@NewSize INT 。.

USE tablename - to operate the database name. .


LogicalFileName = ' Select @ tablename_log ',--log file name.


@ MaxMinutes = 10, - Limit on time allowed to wrap log. .


@ NewSize = 1--you want to set the log file size (M).

- Setup / initialize. .


DECLARE @OriginalSize int。.


Select @ OriginalSize = size. .


FROM sysfiles。.


Where name = @ LogicalFileName. .


Select 'Original Size of ' + db_name() + ' LOG is ' + 。.


CONVERT (VARCHAR (30), @ OriginalSize) + '8K pages or' +. .


CONVERT(VARCHAR(30),(@OriginalSize*8/1024)) + 'MB'。.


FROM sysfiles. .


Where name = @LogicalFileName。.


Create TABLE DummyTrans. .


(DummyColumn char (8000) not null) 。.

DECLARE @ Counter INT,. .


@StartTime DATETIME,。.


@ TruncLog VARCHAR (255). .


Select @StartTime = GETDATE(),。.


@ TruncLog = 'BACKUP LOG' + db_name () + 'WITH TRUNCATE_ONLY'. .

DBCC SHRINKFILE (@LogicalFileName, @NewSize)。.


EXEC (@ TruncLog). .


-- Wrap the log if necessary。.


WHILE @ MaxMinutes> DATEDIFF (mi, @ StartTime, GETDATE ()) - time has. .

not expired。.


AND @ OriginalSize = (Select size FROM sysfiles Where name =..

@LogicalFileName) 。.


AND (@ OriginalSize * 8 / 1024)> @ NewSize. .


BEGIN -- Outer loop。.


Select @ Counter = 0. .


WHILE ((@Counter < @originalsize="" 16)="" and="" (@counter="">< 50000))。.>


BEGIN - update. .


Insert DummyTrans VALUES ('Fill Log') 。.


Delete DummyTrans. .


Select @Counter = @Counter + 1。.


END. .


EXEC (@TruncLog) 。.


END. .


Select 'Final Size of ' + db_name() + ' LOG is ' +。.


CONVERT (VARCHAR (30), size) + '8K pages or' +. .


CONVERT(VARCHAR(30),(size*8/1024)) + 'MB'。.


FROM sysfiles. .


Where name = @LogicalFileName。.


Drop TABLE DummyTrans. .


SET NOCOUNT OFF 。.

8, Description: Change a table. .


exec sp_changeobjectowner 'tablename','dbo' 。.

9, storage, change all the tables. .

Create PROCEDURE dbo。.User_ChangeObjectOwnerBatch。.


@ OldOwner as NVARCHAR (128),. .


@NewOwner as NVARCHAR(128)。.


AS. .

DECLARE @Name as NVARCHAR(128)。.


DECLARE @ Owner as NVARCHAR (128). .


DECLARE @OwnerName as NVARCHAR(128) 。.

DECLARE curObject CURSOR FOR. .


select 'Name' = name,。.


'Owner' = user_name (uid). .


from sysobjects。.


where user_name (uid) = @ OldOwner. .


order by name 。.

OPEN curObject. .


FETCH NEXT FROM curObject INTO @Name, @Owner。.


WHILE (@ @ FETCH_STATUS = 0). .


BEGIN 。.


if @ Owner = @ OldOwner. .


begin。.


set @ OwnerName = @ OldOwner + '. . '+ Rtrim (@ Name). .


exec sp_changeobjectowner @OwnerName, @NewOwner。.


end. .


-- select @name,@NewOwner,@OldOwner 。.

FETCH NEXT FROM curObject INTO @ Name, @ Owner. .


END 。.

close curObject. .


deallocate curObject。.


GO. .

10, SQL Server writes data directly to the cycle.


declare @ i int. .


set @i=1。.


while @ i <30. .


begin。.


insert into test (userid) values (@ i). .


set @i=@i+1。.


end. .

http://blog。.csdn。.net/gztoby/archive/2004/09/21/112041。.aspx 。.

Note: This article is only slowly after collection of personal taste that good, please do not reproduced!! Thank you. .

Profile.


Young people not texting is definitely one of those rare and protected animals, advanced communications and messaging, today has become an important means of communication, which also contains a huge market and economic interests, talents to master SMS technology has also been the The pursuit of large companies is the brightest star in the workplace. This article describes the message of the principle and method, highlights the encoding SMS, AT commands, and Serial Communication with C # methods. .


Preface.


Currently, there are three main ways to send SMS:. .


1. gateway mode: is the telecommunications sector to local applications, requires no additional equipment, suitable for large communications companies, like Huawei, autelan, ZTE, AsiaInfo, etc..


2, Terminal Mode: GSM MODEM is like with like settings (supports AT commands cell phone line), through data cable to connect your computer to send text messages, compared with this method for small and personal. To achieve serial communication must be understood in this way, AT commands, SMS encoding, decoding, which is the focus of this paper. .


3. use of site, simple, but the site-dependent is too high, at the request of the network is also relatively high, is not appropriate for the development of the project.

Read the navigation. .

Terminal connection diagram SMS.

Principle articles. .


SMS encoding.

AT command. .

Serial communication.

Practice articles. .

Frequently asked questions.

Download. .


This article's source code.

Encoded test file. .

Terminal connection diagram SMS.


Principle articles. .


SMS encoding.


Send and receive text messages, the press time has generated, three models were produced: Block Mode, based on AT commands Text Mode, based on AT command PDU Modem, Text Mode simpler variety of Nokia phones support the model. Most of Siemens mobile phones only support PDU mode, PDU mode is sending or receiving mobile phone SMS messages in a way, the text after text messages sent after the hexadecimal code. Currently, PDU has replaced the Block Mode, because we investigated the sending PDU mode.For Siemens mobile phones for example 3508.


SMS was developed by the Etsi a standard (GSM 03. .40 And GSM 03. .38). When using 7-bits encoding, it can send up to 160 characters; but with the 8-bit code, can send up to 140 characters, usually can not directly through the mobile phone display; also use 16-bit code, up to 70 characters, be used to display Unicode (UCS2) text messages, can be shown that most of the phone.Today we are talking about a UCS2 encoding, that is to say, can only send a maximum of 70 characters, whether English or Chinese.


Is such that we now have to send the following message sent to my cell phone 13715342642, "Hello, Hello!". In the absence of before sending, you have to clear the location of mobile phone SIM card SMS center number is not the place where you are now SMS center number, like me, in Shenzhen, Shenzhen SMS center number is: 8613800755000, even though I am now to the field, SMS center is still No. Shenzhen. From the above we get the following message:. .


Reception phone number: 13715342642.


SMS Center number: 8613800755000. .


The contents of short message: Hello, Hello!..


In actual use, the above information is not performed for the mobile phone, mobile phones will be implemented only to be encoded, first not to see the encoded message:. .


0891683108705500F011000D91683117352446F2000800124F60597DFF0C00480065006C006C006F0021。.


Can not read it, I'll explain:. .


08-refers to the SMS Center number length, that is (91) + (683108705500F0) length.


91 - refers to the type of short message center number. 91 is a TON / NPI compliance with International / E. .164 Standard, that increase in the number of pre-need '+' sign; In addition there are other values, but the 91 most commonly used. .


683108705500F0-short information center number. Because of the position slightly, the actual number should be: 8613800731500 (letters F refers to the length minus 1). This requires different geographical revised accordingly. Previous (08) + (91) + (683108705500F0) actually constitutes a part of the entire message, known as the short message center address (the Address of the SMSC).


11 - byte header. .


00-information type (TP-Message-Reference).


0D - called number length. .


91-called number type.


In fact, the actual treatment, we usually 11000D91 coded in the program, because in the country, these data are not going to change. .


683117352446F2-called number, after processing, the actual number of displacement is "8613715342642". Above (00) + (0D) + (91) + (683117352446F2), constitute the entire message by the second part aims to address (TP-Destination-Address).


00 - Protocol ID TP-PID, there is generally 00. .


08-data encoding scheme TP-DCS (TP-Data-Coding-Scheme), using the preceding speaks USC2 (16bit) data coding.


00 - valid for TP-VP (TP-Valid-Period). .


12-length TP-UDL (TP-User-Data-Length), which is the length of the 4F60597DFF0C00480065006C006C 36/2 = 18 16 into 12.


4F60597DFF0C00480065006C006C 006F0021-here is the message content, and the actual contents: "Hello, Hello!" Program implementation, please refer to the article carried by the source of PDUdecoding. . Cs. .


AT instructions.


Speaking of AT commands can be more, there is a thick book, does not belong to the scope of our discussion today, here I only discuss sending text messages must use the number of AT commands. .


And SMS AT the GSM directive (from GSM07. .05) as shown in table 1:.

AT command. .


Function.

AT + CMGC. .


Send an SMS command (send a short message command).

AT + CMGD. .


Delete SMS message (remove the SIM card memory is short message).

AT + CMGF. .


Select SMS message formate (select SMS message format: 0-PDU; 1-text).

AT + CMGL. .


List SMS message from preferred store (lists the SIM card in the SMS PDU/0/text: "UNREAD" REC-unread, READ 1/"REC"-read, 2/"UNSENT" STO-outgoing, SENT 3/"STO"-issued, 4/ALL "-all).

AT + CMGR. .


Read SMS message (read short messages).

AT + CMGS. .


Send SMS message (send message).

AT + CMGW. .


Write SMS message to memory (the memory to the SIM SMS messages).

AT + CMSS. .


Send SMS message from storage (from SIN | M memory to send short message).

AT + CNMI. .


New SMS message indications (display the new receive short message).

AT + CPMS. .


Preferred SMS message storage (select SMS memory).

AT + CSCA. .


Service center address SMS (short message service center address).

AT + CSCB. .


Select cell broadcast messages (select cell broadcast messages).

AT + CSMP. .


Set SMS text mode parameters (set SMS text mode parameters).

AT + CSMS. .


Select Message Service (SMS).

Table 1: Correlation of GSM AT commands. .


I now take an instance to illustrate these instructions to use it:.


First cell phone data cable to connect the phone to the computer serial port and serial port baud rate set to 19200, can begin. .


1. first test your connection and phone support AT instructions, enter serial debugger:.


AT . .


Screen to return to the "OK" indicates that the computer and cell phone connectivity, so we can carry out other AT instruction test.


2, set the message sending format. .


AT + CMGF = 1. "carriage return.


The screen to return "OK" that way now send SMS PDU mode, if it is set to TEXT mode, then, AT + CMGF = 0 . .


3. send SMS.


Hand to send the content and the same number still the same as above in the coding, coding, we get the data to be sent as follows. .


0891683108705505F011000D91683117352446F2000800124F60597D002C00480065006C006C006F0021。.


We use the following command to send. .


AT + CMGS = 33 "carriage return".


If the return ">", put the above code data entry, and to CTRL + Z at the end, wait a moment, you can see the return OK friends. .


Explain why AT + CMGS = 33, is that:.


11000D91683117352446F2000800124F60597D002C00480065006C006C006F0021. .


This section of the length of the string, divided by 2, the above string, SMSC, plus SMS content, how to get, please review the decoding part.


In our previous discussion, a complete short message, as long as the implementation of the three AT command, AT, AT + CMGS =? , AT + CMGS =? On it. Due to space, I can only mention here that much, if everyone would like to know more, you can obtain a copy of AT commands to the phone company white paper, which is very detailed. .


Described only as we prepare for the reality, we must also be sent to one, according to our needs, we select the minimum investment to achieve more convenient serial communication. Note that the serial port via the data cable is connected to the phone, use the at command to send a text message, we select a data line, it is recommended that the purchase of original factory, equipped with non-indigenous plant, used in the process, often enigmatic questions arise, for example, the cell phone screen black, cell phone battery is always prompt, etc..


Serial communication. .


In c # to implement serial communication, a lot of people don't know what to do, in the forum often see "how to use MSCOMM serial communication", "how to be connected to the serial port and device" that sort of problem. In fact, foreign friends already included in the FAQ.


Typically, in C #, Serial communication, we have four ways:. .


First: the MSCOMM control this is the simplest, most convenient way. Can functionally is very difficult to control this control at the same time freely, and not the system itself, so I have to register, is not in the scope of this article. You can access http://www. .devhood. .com/tutorials/tutorial_details. .aspx? tutorial_id = 320, a write-overseas online, author of the tutorial is very enthusiastic, I had an email to his soon return.


Second: Microsoft. . NET introduced a new serial port control, based on. . NET's P / Invoke call the method implementation, detailed you can visit the Microsoft Web site http://msdn. . Microsoft. .com/msdnmag/issues/02/10/NETSerialComm/default. . Aspx, easy to get more information. .


Third, is to use a third-party control, you generally have to pay, not too close, not for consideration.


Fourth: they used to write serial communication API, so that high degree of difficulty, but for us, can facilitate the achievement of their desired features. .


In this paper, we adopt a fourth way to serial communications, but not their own writing with a foreign users out-of-the-box is already packaged for class libraries, but the function simple point, relative to the US is already sufficient.


Messages throughout the terminal during the operation, and serial communications, use only four features, open, write, read, close serial. Here are these four functions library definition:. .


Open the serial port:.


Prototype: public void Open (). .


Description: opening of the port set in advance.


Example:. .

using JustinIO;。.


static JustinIO. . CommPort ss_port = new JustinIO. . CommPort ();. .


Ss_port. .PortNum = COM1;//port number.


ss_port. . BaudRate = 19200; / / serial communication baud rate. .


Ss_port. .ByteSize = 8;//data bits.


ss_port. . Parity = 0; / / parity. .


Ss_port. .StopBits = 1;//stop bit.


ss_port. . ReadTimeout = 1000; / / read timeout. .


try。.


(. .


if (ss_port。.Opened)。.


(. .


ss_port。.Close();。.


ss_port. . Open (); / / Open the serial port. .


}。.


else. .


{。.


ss_port. . Open ();// open the serial port. .


}。.


return true;. .


}。.


catch (Exception e). .


{。.


MessageBox. . Show ("Error:" + e.. Message);. .


return false;。.


). .

Write serial port:.


Prototype: public void Write (byte [] WriteBytes). .


WriteBytes is your write Byte, note that the string to convert to a byte array to communicate.


Example:. .


Ss_port. .Write (Encoding. .ASCII. .GetBytes ("AT + CGMI\r"));//get mobile phone brand.


Reading serial port:. .


Function prototypes: public byte [] Read (int NumBytes).


NumBytes read into the buffer number, pay attention to the byte array to read, to the practical application of character to be converted. .


Example:.


string response = Encoding. . ASCII. . GetString (ss_port.. Read (128)); / / read 128 bytes of cache. .


Close the serial port:.


Function prototype: ss_port. . Close (). .


Example:.


ss_port. . Close ();. .


Because of space, as well as serial communication involves extensive, I'm here to talk about these.


In the above text we have to end all kinds of original technology required for some understanding, it can kill a small test time. .


Practice article.


In the beginning, you should be prepared for the following hardware and software:. .


Hardware: Siemens C35 3508 or a series of mobile phones.


Siemens mobile phone communications data line. .


Software: VS. .NET (C #).


SMS code library (PDUdecoding.. Cs). .


Serial communication library (JustinIO. .cs).


When the required hardware and software are ready, we can officially begin. Here on my own test case to find out more. .


What things should have a plan, though our test cases is very simple, but still draw a simple flowchart:.


With the flow chart, just to understand how to run the program, and then look at the interface, make you more of the heart. .


Figure 2 SMS Terminal C # version of the interface map.


Do not start, some people criticize me. I say, under the development environment is VS. . NET (C #) in the. COME GO, GO .... .


Step 1, open the VS .NET, create a new project. "--> Visual C # project-> Windows application, the name, enter your project name, I was smsForCsharp.


Step 2, the light of the above interface diagram, design your program interface, the following procedures in the control of my key attributes. .

The name of the control.


Control Name property. .


Instructions.

TextBox. .


targetNumber。.


Receiving mobile phone number. .

TextBox。.


CenterNumber. .


SMS Center number.

TextBox. .


smsState。.


Send text messages, the returned information. Note that setting the control for multiple rows. .

TextBox 。.


smsContent. .


SMS content, likewise, attention is set to multiline.

ComboBox. .


ConnectPort。.


Connect your phone to the port, eg: COM1 \ COM2. .

ComboBox。.


ConnectBaudRate. .


The baud rate of serial port connection, serial communication is very important.

Button. .


btnSend。.


Send button. .

Button。.


btnConnect. .


The Connect button, which is mainly used for program initialization.

Button. .


btnExit。.


Exit button. .

Step three: Add PDUdecoding. .cs and copy just the .cs JustinIO. new project directory, and open the Solution Explorer, right-click the add existing item, select the two files, and then open the class view, which is not more than two classes, classes with SMS JustinIO Ah, as in Figure 3, if not, then try again.


Figure 3, add the class after the class view. .


Step 4, the reference to the namespace, use the code view to open Form1. .cs (here in my computer, if you have changed, your computer), in front of the code.

using JustinIO;. .


using SMS;。.


using System. . IO;. .


using System。.Text; 。.

Step 5, in smsFormCsharp class, add two fields ss_port, sms, SMS, respectively JustinIO and objects, as follows. .


Step 6: Add a serial port initialization code, as follows:.

/ / /

. .


///Initializes the serial port.


/ / / . .


public bool InitCom(string m_port, int m_baudrate)。.


(. .


Ss_port. .PortNum = m_port;//serial number.


ss_port. . BaudRate = m_baudrate; / / baud rate. .


Ss_port. .ByteSize = 8;//data bits.


ss_port. . Parity = 0; / /. .


Ss_port. .StopBits = 1;//stop bit.


ss_port. . ReadTimeout = 1000; / / read timeout. .


try。.


(. .


if (ss_port。.Opened)。.


(. .


ss_port。.Close();。.


ss_port. . Open ();. .


}。.


else. .


{。.


ss_port. . Open ();// open the serial port. .


}。.


return true;. .


}。.


catch (Exception e). .


{。.


MessageBox. . Show ("Error:" + e.. Message);. .


return false;。.


). .


} 。.

Copyed the above code directly to your program, and to ensure that the main function added to the Main behind, according to F5, debug should be no problem, but not actually any visible above the function, just open the serial port and to. .


Step 7, open the serial port, we should initialize the program to obtain cell phone brands, models, as well as the short message centre number, double click the Connect button and copy the code below: in the program.

/ / / . .


///Initialization code, and obtain information about the mobile phone.


/ / / . .


/// <param name="sender"></param>。.


/ / / . .


private void btnConnect_Click(object sender, System。.EventArgs e)。.


(. .


Bool opened = InitCom (ConnectPort. .SelectedItem. .ToString () to Convert. .ToInt32 (ConnectBaudRate. .SelectedItem. .ToString ()));//open and initializes the serial port.


bool Connected = false;. .


if (opened)。.


(. .


Ss_port. .Write (Encoding. .ASCII. .GetBytes ("AT + CGMI\r"));//get mobile phone brand.


string response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


if (response。.Length > 0)。.


(. .


ConnectState。.Text = response。.Substring(10,7);。.


Connected = true;. .


}。.


else. .


{。.


ConnectState. . Text = "and the phone connection is not successful";. .


Connected = false;。.


). .


Ss_port. .Write (Encoding. .ASCII. .GetBytes ("AT + CGMM\r"));//Gets the phone model.


response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


if(response。.Length > 0)。.


(. .


ConnectState. .Text = ConnectState. .Text + "" + response. .Substring (10, 5) + ".";.


Connected = true;. .


}。.


else. .


{。.


ConnectState. . Text = "and the phone connection is not successful";. .


Connected = false;。.


). .


Ss_port. .Write (Encoding. .ASCII. .GetBytes (AT + CSCA? "\r"));//get the SMS Center number.


response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


if(response。.Length > 0)。.


(. .


CenterNumber。.Text = response。.Substring(20,13);。.


Connected = true;. .


}。.


else. .


{。.


Connected = false;. .


}。.


if (Connected == true). .


{。.


btnConnect. . Enabled = false;. .


btnSend。.Enabled = true;。.


). .


else。.


(. .


btnConnect。.Enabled = true;。.


btnSend. . Enabled = false;. .


}。.


). .


} 。.

Here, you can press F5, debug compile, adopted to ensure that your normal cell phone connected to the computer, the click the Connect button to see, is not the same as my mobile phone model and message center number displayed the normal person. .


Figure 4, after the program interface is connected.


Step 8, to see the results in, success is not felt to send text messages from close friends to see such a long article, we spent a lot of time, do not start SMS part of the light, I am sorry for people. .


Double-click the Send button, copy the following code in the program.

/ / / . .


///Send a text message.


/ / / . .


/// <param name="sender"></param>。.


/ / / . .


private void btnSend_Click(object sender, System。.EventArgs e)。.


(. .


string decodedSMS = sms。.smsDecodedsms(CenterNumber。.Text,targetNumber。.Text,smsContent。.Text);。.


byte [] buf = Encoding. . ASCII. . GetBytes (String.. Format ("AT + CMGS = (0) \ r", sms.. NLength));. .


ss_port。.Write(buf);。.


string response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


string SendState = "";。.


if (response.. Length> 0 & & response.. EndsWith (">")). .


{。.


ss_port. . Write (Encoding.. ASCII.. GetBytes (String.. Format ("(0) \ x01a", decodedSMS )));。 .


SendState = ' sent successfully! ";.


). .


else。.


(. .


SendState = "send failed";.


). .


string Result = String。.Format("{0},{1},{2},\n\r",targetNumber。.Text,smsContent。.Text,SendState);。.


smsState. . Text + = Result;. .


} 。.

Express by F5 now! God, fast by it! Not God, and has been passed, now you can send text messages, please ensure that the phone can connect the computer normally. By connection, and then fill in the goal you want to send mobile phone number, and inserted in the content of the content you want to send, send it! A success! Successful something like this! Look the same as you do with me? . .


Figure 5, sent successfully.


Some things do not forget, remember to add an exit code. Double-click the exit, add the following code:. .

/// <summary>。.


/ / / Close the serial port, exit the program. .


/// </summary>。.


/ / / . .


/// <param name="e"></param>。.


private void btnExit_Click (object sender, System.. EventArgs e). .


{。.


ss_port. . Close ();. .


Application。.Exit();。.


). .

Here are all picked out, all of the features are complete! this is just a demo for an example, many did not take into account, such as serial communication, in the actual operation is not doing so, you should use multiple threads to handle, one devoted to reading the serial port, a serial port is designed to write. There are many anti-error code is not added, I hope sincere friends added and published, that is what I wrote this article hopes to see the results. Please do not download this program directly to real, sincere to remind you!.


Finally finished, I relaxed a lot, had a very long overdue, because of some personal reasons, did not finish in time, issues related to those who asked me not to respond promptly to a friend, sorry soon as I hope you will continue to support I! . .


Debugging environment.


Windows 2000 Professional, Visual Studio. . NET, Siemens 3508 mobile phone, Siemens dedicated data line. .


Frequently asked questions:.


First, the mobile phone brand, because different manufacturers of mobile phones on the AT command support different, so please choose your phone AT commands, such as NOKIA's the only model with TEXT AT command. .


Second, data cable, the problem is most of the data, if you connect the data cable, your phone displays a black screen, it is recommended that you change the data cable.


Third, the mobile phone SIM card SMS center number set, make sure your phone can send text messages. .


Fourth, please use the debugging tools to debug serial port of the phone and PC connections, so your entire work is a guarantee.


Of states:. .


1. This example procedure, you can freely copy, dissemination, but please keep the author's copyright notice, as well as third-party class libraries in the author's copyright notice.


3, this paper belongs to all of this article, and not on the consent YORK reserved. .

Note: I gather this article I would like to view for personal favorites. Please do not reprint!! Thank you..

Trackback: http://tb. . Blog. . Csdn. .net / TrackBack. . Aspx? PostId = 112041. .

[Collection to my bookmarking] [Send a Trackback] GZ TOBY was published on 21-Sep-2004 16: 48: 00.

Special offers:. .

Wanted ads here? click here to view the details.


Safenet software protection products free trial. .


Software developers can use cryptography to encrypt the dog on the software to protect your software from being pirated guarantee your market against piracy against c # special offer: Japanese software standardization free training camp.


★ first outsourcing center in Shanghai Talent zero down payment, first to Japan, and went to subsection c # Java /. . NET enterprise-class software development all captures. .


Java EE enterprise-level software engineers Handbook is an essential feature of c # 08 spring software engineering and MBA admissions-University of posts and telecommunications.


Self-examination a number of scholarships for courses proposition unique design of 100% employment c # is 4 +1 students training program, down payment 6800. .


4 months with a full set of Java technology system of training, 1 months of large enterprises in actual development real projects. Encoding.


Previous: mysql common operation | Next: each developer should now download the 10 kinds of essential tools for comment. .

# 。.


CObject on 2004-12-25 20:14:00 IP: 221. .217. .29. .*. .

Where is the .cs PDUdecoding.?.

#. .


Admiration was published on 2006-09-05 19: 07: 00 IP: 218. .202. .223. *.

I used the KDU-5USB and computer data cable nokia7260, port Com3, you can use the pc suite NOKIA connection, but when connected with a sample program error, I do not know how to solve Could pointing 12. .

# 。.


Admirer on 2006-09-05 19:09:00 IP: 218. .202. .223. .*. .

My mail demons_1000 @ 163. .com, hoping to get your point.

#. .


Liulang406 ° ? ' è?¨??? 2007-04-08 10: 10: 56 IP: .176.60... * .44.

Thank you to help me see trouble. .


I wasn't able to interface directly with the console application will compile success but SMS won't go out and do not know how it happened.


using System;. .


using System。.Data;。.


using System. . Data. . SqlClient;. .


using JustinIO;。.


using SMS;. .


using System。.IO;。.


using System. . Text;. .


namespace uio。.


(. .


/// 。.


/ / / Class1 in the summary. .


/// 。.


class Class1. .


{。.


static JustinIO. . CommPort ss_port = new JustinIO. . CommPort ();. .


static PDUdecoding sms = new SMS。.PDUdecoding();。.


/ / /. .


///The main entry point for the application.


/ / /. .


[STAThread]。.


static void Main (string [] args). .


{。.


/ / Initialize the serial port. .


string port = "COM3";。.


ss_port. . PortNum = port;;. .


ss_port。.BaudRate =19200;。.


ss_port. . ByteSize = 8;. .


ss_port。.Parity = 0;。.


ss_port. . StopBits = 1;. .


ss_port。.ReadTimeout = 1000;。.


try. .


{。.


if (ss_port.. Opened). .


{。.


ss_port. . Close ();. .


ss_port。.Open();。.


). .


else。.


(. .


Ss_port. .Open ();//open the serial port.


). .


}。.


catch. .


(Exception e) 。.


(. .


Console. .WriteLine ("error:" + e. .Message);.


). .


//Initialization code, and obtain information about the mobile phone.


ss_port. . Write (Encoding.. ASCII.. GetBytes ("AT + CGMI \ r")); / / obtain the brand. .


Ss_port. .Write (Encoding. .ASCII. .GetBytes ("AT + CGMM\r"));//Gets the phone model.


string response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


if(response。.Length > 。.

#. .


Liulang406 ° ? ' è?¨??? 2007-04-08 10: 12: 16 IP: .176.60... * .44.

Console. . WriteLine ("Connection 。.");。 .


}。.


else. .


{。.


Console. . WriteLine ("connection to phone failed");. .


}。.


ss_port. . Write (Encoding.. ASCII.. GetBytes ("AT + CSCA? \ R "));// Get SMS center number. .


response = Encoding。.ASCII。.GetString(ss_port。.Read(128));。.


string centerNB = response. . Substring (20,13);. .


Console。.WriteLine(centerNB);。.


DateTime t = DateTime. . Now;. .


string connectionString = (@"Data Source =(local);;integrated security=SSPI; Initial Catalog = customer");。.


SqlConnection SconnStr = new SqlConnection (connectionString);. .


SqlCommand cmd = new SqlCommand("select telephoto from customer where customer='uio'",SconnStr);。.


SqlDataReader red = null;. .


SconnStr。.Open();。.


try. .


{。.


red = cmd. . ExecuteReader ();. .


}。.


catch (Exception err). .


{。.


if (err! = null) Console. . Write (err.. ToString ());。 .


}。.


if (red! = null). .


{。.


/ / According to records in order to use data flow. .


StreamWriter sw;。.


try. .


{。.


sw = File. . CreateText ("send.. Txt");. .


}。.


catch. .


{。.


Console. . WriteLine ("file creation failed");. .


return;。.


). .


while(red。.Read())。.


(. .


String smsContent = "your books in 3 days after it has expired, please do not hesitate to return. ";。.


string Text = centerNB;. .


string phone=red["telephoto"]。.ToString();。.


string decodedSMS = sms. . SmsDecodedsms (Text, phone, smsContent);. .


byte[] buf =Encoding。.ASCII。.GetBytes(String。.Fo 。.

#. .


Liulang406 ° ? ' è?¨??? 2007-04-08 10: 12: 53 IP: .176.60... * .44.

byte [] buf = Encoding. . ASCII. . GetBytes (String.. Format ("AT + CMGS = (0) \ r", sms.. NLength));. .


ss_port。.Write(buf);。.


response = Encoding. . ASCII. . GetString (ss_port.. Read (128));. .


if( response。.Length > 0 && response。.EndsWith("> "))。.


(. .


ss_port。.Write(Encoding。.ASCII。.GetBytes(String。.Format("{0}\x01a",decodedSMS)));。.


Console. . WriteLine ("Send success !");。 .


}。.


else. .


{。.


Console. . WriteLine ("Send failed");. .


}。.


sw. . WriteLine (phone);. .


sw。.Close();。.


ss_port. . Close ();. .


}。.


). .


}。.

1. How to establish a communications link with the GSM MODEM. .


2. does not work with GSM MODEM for normal traffic or always in simulation Terminal appear garbled.


3. How can we know the error code. .


4. send a text message, I receive an error message + CMS ERROR 512.


5. Send a short message, receive an error message + CMS ERROR 513. .


6. send a text message, I receive an error message + CMS ERROR 514.


7. Send a short message, receive an error message + CMS ERROR 515. .


8. How can I know that you are sending a short message has been delivered to the destination number.


9. How to send a short message in Chinese. .


10. how to set up a voice call.


11. How to set up a data call. .


12. when a GSM MODEM for called, how to display the caller's phone number.


13. Be called when the GSM MODEM, how discrimination is initiated by calling voice, data or fax calls. .


14. when the GSM MODEM for called how to make their autoresponder or unable to answer.


15. Not through the SIM card to directly read or write text messages. .

1. how to establish communication with the GSM MODEM.


You can use such as Windows HyperTerminal or Pcomm under other terminal emulation software, the computer's serial port and GSM MODEM serial port cable connected directly. .

2. does not work with GSM MODEM for normal traffic or always in simulation Terminal appear garbled.


Check your serial port can guarantee the normal connection, the computer's serial port serial port GSM MODEM lead and lead should be the one to one. GSM MODEM and simulation of the terminal should be set the same communication rate. .


But the first time you use a GSM MODEM, please, the terminals in the simulation is set to communication speed 9600bps, 8 data bits, no check bits, 1 stop bit.

3. If you want to get the error after error code number, need to set up GSM Modem as follows:. .


AT+CMEE=1 。.

4. Send a short message, receive an error message + CMS ERROR 512. .


Your GSM MODEM to send short message at the same time it receives a new message, send a text message is rejected, you will need to resend this short message.

5. Send a short message, receive an error message + CMS ERROR 513. .


You encounter the following problem:.


a) GSM MODEM lose your wireless link connection;. .


B) sends SMS after 28 seconds, and your MODEM does not receive GSM short message center to receive confirmation + CMGS: page〈 sequence number >;.


c) send the request in establishing the control channel to send short messages of 42 seconds after the instruction, GSM MODEM not received your confirmation sent by the base station>. .

6. send a text message, I receive an error message + CMS ERROR 514.


You encounter a problem in one of the following:. .


You set a) short message center numbers are wrong;.


b) the short message will be delivered to the destination number is wrong;. .


C) you send short messages are short message center refused (General purpose number does not exist or the destination number has been disabled).

7. Send a short message, receive an error message + CMS ERROR 515. .


If you have a GSM MODEM initialization or during instruction execution process GSM MODEM and to accept the new directive, this error will occur. You must wait until the initialization is complete or instruction executed.

8. How do I know you send a short message destination number has been delivered. .


A) using the text format is sent.


When you send a short message in text format, your GSM MODEM subject to the following settings:. .


at+csmp=49,〈X〉,〈X〉,〈X〉。.


at + cnmi = , , , 1, . .


Page〈 X > representative according to your needs, your choice of the appropriate parameters.


When you send a complete short message, you will receive from the short message center in one of two confirmed:. .


+ CDS: page〈 X >, page〈 sequence number >, "phone number", "sent", "received", 0.


Or:. .


+ CDS: page〈 X >, page〈 sequence number >, "phone number", "sent", "received", 48.


Confirm the final number represents the short message transmission status. (0 that has been served on the destination number, 48 said that the purpose can be served this number). .


B) PDU format is sent.


When you send a short message using PDU format, your GSM MODEM subject to the following settings:. .


at+cnmi=〈X〉,〈X〉,〈X〉,1,〈X〉。.


Behalf according to your needs you select the appropriate parameters. .


In your PDU format that you want to send short messages, you need to add short message center number after the first byte is set to 31.


Send completed in a short message, you will receive a short message from the center of the following confirmation:. .


+ CDS: page〈 length > 00 page〈 PDU format confirmation information >.


Note: The format of the PDU received the confirmation, the sequence number and transmission status flags are based on the existence of 16 hexadecimal numbers, you can be transferred directly into 10 decimal number without the need to reverse after the conversion. .

9. How do I send a Chinese short messages.


Use of existing GSM MODEM send Chinese SMS, must first prepare a short message sent by the Chinese into 16-bit Unicode encoding. .


A way to send the text).


When you send a Unicode encoded text format using the Chinese short message, you need to set GSM MODEM:. .


at+csmp=〈X〉,〈X〉,〈X〉,8。.


Behalf according to your needs you select the appropriate parameters. .


Then you can be converted Unicode encoding Chinese short messages according to send plain text messages sent out.


B) sent by PDU. .


You only have your PDU format of short messages, the destination number string for the second byte set to 08, will be transferred.


For a good Chinese Unicode encoding in the short message as a PDU to send send the content together. .

10. how to set up a voice call.


GSM MODEM serial port to send commands ATD ; to confirm the phone number is a voice number not fax or data number. .

11. how to establish a data call.


GSM MODEM your first set as follows:. .


at+ipr=9600。.


at + ifc = 2,2. .


at+cbst=0,0,1。.


GSM MODEM serial port to send commands ATD . .


You must confirm that the telephone number is a number rather than fax or voice number, you must confirm your SIM card is data communication services.

12. GSM MODEM be called, when, how to display the caller's phone number. .


Will your GSM MODEM settings as follows:.


at + clip = 1. .

13. when a GSM MODEM for called, how to distinguish the caller initiated is voice, data or fax call.


GSM MODEM your settings as follows:. .


at+crc=1 。.

14. Be called when the GSM MODEM, how to automatically answer or can not automatically answer. .


If you want your GSM MODEM picks up your GSM MODEM settings as follows:.


ats0 = N represents the number of GSM MODEM Ring an integer, that is N times the GSM MODEM Ring will automatically answer. .


If you want your GSM MODEM does not answer your GSM MODEM settings as follows:.


ats0 = 0. .

15. How does not directly via SIM card reading or writing a short message.


Because the SIM card only from 10,000 to 100,000 times the number of read and write articles, and 10-15 short message storage space, but also to read and write text messages on the SIM card will take some time to complete. These factors affect a number of applications that require GSM network through a lot of data exchange, in order to ensure the smooth process, SIM card to complete a large number of read, write and delete operations, SIM card's life cycle will soon be reached, In addition, SIM card to complete those tasks, the time-consuming requirements to be more than the outside world.To address these issues, it is necessary to make some software on the Terminal settings, enable short message without a SIM card for read and write operations.


The following description explains how to use this method Falcom A2 MT4002 series and between data terminal does not exchange data through the SIM card, this method can also be used with between two MT4002. .


A) interface from the Terminal to the RTS signal can be used to indicate the data exchange time slot is busy, the serial port is ready to receive data.


b) If the terminal can be used to both receive and send short messages, the two sides have set up in the same set of commands and constants. .


At the receiving end, the set command AT + CNMI = 2, 2, 0, 0, 0.


In the transmitter, set the command AT + CSMP = 17,167,0,240 (when sent using PDU format, 240 into the string DCS (F0)). .


C) when the program is found the short message to prefix + CMT is followed by the transfer of data in this format, this short message capture and distribute it to the original address.


d) When the sending side, if not set CSMP = 17,167,0,240 when caught short message should prefix + CMTI, this time with the command AT + CMGR = n read and distributed to the original address, then command AT + CMGD = n this short message to delete SIM card to ensure there is enough space. .

Q: what is STK, FALCOM A2D series have this feature?, how can I use STK? Thanks a lot..


A: STK (SIM Tool Kit) card pre-store all mobile network can provide some data services, such as the short message center number, code and other information services, China Mobile will launch mobile phone banking that is needed to support the STK card. STK card mobile phone use on the screen can show normal SIM card does not have the menu, such as the "global communications services." By calling the menu, can proceed to the next level and the next menu level.User news by selecting the available stock information queries, bank transfer, stock commissioned mobile e-commerce and mobile information services, the operation is similar to the internet pages of the classification. STK (SIM Tool Kit) card offers from the SIM card manufacturers.

Q: STK how to develop procedures, tools and help documentation?. .


A: currently China Mobile network of STK (SIM Tool Kit) card technical support from the SIM card manufacturers, responsible for providing the development system, responsible for STK STK programming and production, and to ensure that the message encryption and key security application layer protocol format with network operations, business, SIM card manufacturers, short message manufacturers Quartet together.

Q: send SMS when it is able to automatically determine how to achieve the language from mobile phones, send Chinese SMS to a Chinese machine, English SMS to the English machine. .


A: send private messages, you cannot automatically determine the language of the receiving phone, must know in advance to accept mobile phones can support language, and then select the language encoding types is sent. Community broadcasting, for example, whether to send a Chinese or English information of mobile phones will also receive, do not support the language the phone received will be garbled.

Q: GSM MODEM SMS has not provided API programming or other information. .


A:GSM Modem use and exploitation of information please visit A2D-1. For FalcomA2D-A (B, c) and provide supporting A2D-3 our development tools, see the relevant classes of information.

Q: SMS format for it?. .


A: Please download on our website Falcom A2D user manual with short message communication related instruction.

Q: I bought a nokia data suite wants to send at command to achieve it send Chinese SMS but does not support "at * c" "send" I ask how?. .


A: I wonder if you mentioned "at * c" is in GSM specification 07.07. .07 and .05?.

Q: Where can I get from the GSM specification 07. .07 And 07. .05? Thank you! . .


A: you are on our website you can download the relevant document that GSM specification AT a detailed description of the directive. Or you can go to the official website of the ETSI look.

Q: I also use the data kit (Nokia DataSuite2. .0) Send-off message, but only issued in English, not Chinese made. . How do?. .


A: English short message is not the same as the encoding format.

Q: I am sure I am using the Unicode format to send the Chinese, how not so? If you want to send the Chinese, how do you say that? Email: zhangqing888 @ sina. . Com. .


A: "Nokia DataSuite2. .0" defines the format of the data and we do not know. Falcom A2D Chinese short messages can be achieved.

Q: AT + CMGS how to send commands? I want to hyperlink to send Chinese (phone does not support the Chinese sent), how to write command format? Hope prawns pointing. .


at+cmgf=0 。.


ok. .


at+cmgs="683106316070F60008050034192242308007400650073007" 。.


Error. .


How to solve? Help-prawns!..


A: Suppose there is a message to be sent ab, then:. .


at+cmgs=16 。.


> 0891 (short message center number) 11000D91 (destination number) 00F2A7024121 (ctrl + Z end). .

AT + CMGS Q:Re: how to send the command line.


A: First set at + cmgf = 0, then issued at + cmgs = "LEHGTH". .


' LENGTH ' representatives send byte-length short message center number and the destination number included Chinese with a Unicode encoding, such as contact don't understand and I wrote to me.

Q: I use unicode encoding, but in pdu format, on the other phone not show up. .


A:Falcom A2D can implement Chinese short messages.

Q: Ask PDU data format, and SMS-AT command to send data format. .


A: "PDU data format see GSM03. .40 and GSM03. .41, the send command in SMS-AT data format see GSM07. .05 and .07 GSM07... the above specifications to http://www. .etsi. .org/download.

Q: falcom the A2D products can and WAP, GPRS compatible? . .


A:WAP is a simplified browser protocols and transmission paths not as long as your terminal with WAP or similar browser, you can support WAP, so can the falcom A2D passed on as long as you have established a data link. Supported A2D will launch in the third quarter of this year, the existing kernel is supported but are not open.

Q: Will the A2D's core support WAP, whether direct built-in WAP browser, if so, A2D is equal to WAP phones. .


A:A2D itself does not have a WAP browser, adding the A2D WAP browser and screen and keyboard can become a mobile phone.

Q: you have GPS receiver's agent and the related Chinese A2D-GPS information?. .


A: our company is the agent a separate GPS, but I can recommend this agent to you. There are currently no Chinese A2D-GPS, sorry.

Q: can be made to copy the table to offer me? EMAIL: SEAGATE @ 163. NET and I hope that your company's latest proxy product and company products. Thank you! . .


A: Please fill out the form below to contact ', ' user information, we will email to you.

Q: Nokia phones send and receive SMS NDS is using AT commands? Have no cell phone and computer communications Practice? I also want to know about PC and mobile phone communications standard. When the TE and the ME (without TA) connected to the phone side is used for communication norms which? . .


A:NDS represent? please refer to this website a2dman. .pdf. Please refer to the relevant ETSI standards. http://www。.etsi。.org 。.

Q: I have viewed on the GSM ETSI specifications, such as the GSM07. .01 GSM 07. .07 GSM 07. .05, Etc., but not yet out to understand, in this special ask President, mobile programming issues related to the specific norms. .


A: for Falcom GSM product development questions, please contact our company directly. Other products we do not know cannot provide further explanation, please forgive me.. Welcomes colleagues to provide information and advice.

Q: Can I find any papers published on IEEE and how? Thanks. .


A:http://www。.ieee。.org/ 。.

Q: MODEM how to set up autoresponder? Ask AT command set? . .


A:ats0=1 。.

Q: What command will allow mobile phone text messages received are not stored inside the phone directly sent to the data terminal (such as computer)? If the widespread use of short message, is bound to receive a cell phone text messages that flash or eeprom damaged sim card, what at command can receive mobile phone text messages sent out directly from the serial port without storage? . .


A: Please download simcn. .doc files.

Q: I use the PDU mode, 8bit encoding of the characters, send the normal English characters, but characters on mobile phones to send not show up? SMS code on how Chinese characters can be identified and displayed mobile phone? . .


A: Please refer to the previous discussions in this forum.

Q: But does not solve the problem ah, how can we let the code show up after receiving phone? . .


A: your mobile will support Chinese? 。.

Q: Re: AT + CMGS how to send commands?. .


I just use unicode encoding, but in the pdu format, the phone doesn't come out.


A: Falcom A2D Chinese text can be achieved. .

Q: for advice.


Content:. .


I receive Chinese SMS, receive Unicode is the original code, but it seems to be the number of body in accordance with the ordinary ASC codes, such as:.


I made the "November 11" received the "4E004EOO4E004E", also behind the "00" No;. .


When I send a "b", or "4E004E004E004E".


Ask if this is why? . .


A: but this is not the original code, unicode is an encoding of your mobile phone!.

Q: ask about, GPRS is the acronym for what words. .


The full name is "A:GPRS GPRS (General Packet Radio Service), it is the ETSI organizations in the development of a set of standards for mobile packet data service.


* Ways: to increase the GSM network, packet data services equipment, and upgrade GSM radio network equipment to use the existing GSM wireless coverage to provide packet data services. .


· Feature:.


* Transfer speed: up to 171kbps (the initial 9-50kHz). .


· Provides flexible support for a variety of data applications.


? Network access speed. .


· Can connect online for a long time.


* Charging a more reasonable (according to data traffic billing). .


· Efficient utilization of network resources, reduce communication costs.


* Use of the existing wireless network coverage, enhance the speed of network construction and reduce construction costs. .


· GPRS core network conform to the trend in the development of communication networks, for GSM evolution to 3 g..


* Progress: The Business Systems program launched in 2000. .

Q: using ISDN adapter to send short messages to mobile phones.


A pc serial port to send AT commands, ISDN adapter, the phone can receive text messages to achieve it? . .


A: If your ISDN adapter can be used with short message Centre for normal communication can be sent to mobile phone text messages.


"Normal communication with the short message center" is a point to send a standard ISDN adapter can He's instructions, short message service center will accept. Mean it takes a short message center or authorized by their own short message centers are given a set of criteria for the definition of instruction. Normal communication with the short message center "refers to ISDN adapter can send standard Hayes command, short message service center will accept. Or mean it takes a short authorization information center, short message centers are given their own definition of a set of standard instructions. AT commands can..

Send SMS if Q:A2D overqualified, because from a compatible MODEM AT commands can be sent AT. ..


A: A2D is a GSM Modem, GSM-based wireless network for the system application. .

Q:A2D module supports 16-bit short message transmission content: that is how to implement Chinese short messages. Please give an example. Thank you!..


A: Falcom A2D module supports 16-bit short message transmission. Please contact us for specific applications. .

Q:Re: how to send a broadcast message falcom?.


A: Falcom GSM Modem / Module fully comply with GSM standards certification through the FTA. Send broadcast message should be short message centers need to have that feature. .

Q:Re: How do I use to send SMS PDU format?.


A: the Falcom GSM Modem / Module development and application please contact us or refer to information listed on this site. .

The uniCode into Chinese in the code.

The following is the code uniCode into Chinese. .


function TfrmMain。.ReadHex(AString: string): integer;。.


begin. .


Result:=StrToInt('$'+AString)。.


end;. .

function TfrmMain。.UnicodeToAnsi(Unicode: string): string;。.


var. .


s:string;。.


i: integer;. .


j,k:string[2];。.


begin. .


i:=1;。.


s :='';。 .


while i j:=Copy(Unicode,i+2,2);。.


k: = Copy (Unicode, i, 2);. .


i:=i+4;。.


s: = s + Char (ReadHex (j)) + Char (ReadHex (k));. .


end; 。.


if s <>''then. .


s:=WideCharToString(PWideChar(s+#0#0#0#0))。.


else. .


s:='';。.


Result: = s;. .


end; 。.

How will the vb characters into unicode. .

Send A..: examples of Chinese.


There are two ways to send the Chinese one is PDU, one is UCS2 text. .


1. .PDU method:.


at + cmgf = 0. .


at+cmgs=24。.


> 0891683108100005F011000B813109018759F10008A70A00650073007496484E30. .


Information content to Chen Feng set.


Explanation: This string Feng Chen Chuan set of five characters, use unicode encoding. .


0891 fixed format for fixed, 683108100005F0 short message center number.


Representatives of 11 fixed-format fixed PDU format. .


00 representatives are the first few short message.


0B81 fixed format is not fixed, 3109018759F1 for the purpose of numbers. .


00 fixed format represents a short message.


08 representatives of 8-bit unicode encoding (English must be unicode encoded), F0 to F3 7 coded, F4 to F7 for the 8-bit encoding. .


A7 represent this short message in the message center storage time is maximum 24 hours a day, for weeks, 135 FF..


0A, after representatives of 10 bytes (1 byte for the 01,2 months for the 01, so on). .


0065 is s Unicode encoding, 0073 is e Unicode encoding, 0074 is Unicode encoding, t. ..


9648 Chen's unicode encoding, 4E30 is the abundance of coding unicode. .

0A followed is required to send a message part, the use of unicode encoding.


unicode encoding conversion may call a function in VB or VC directly. .


At + cmgs = 24 14 24 is in plus message length of 10.

2. . USC2 text method. .


at+cmgf=1。.


at + csmp =??,??,??, 8 (a question mark on their own behalf as required select the appropriate parameters). .


At + cmgs = mobile number (1390PQRABCD).


> 00650073007496484E30. .


Information content to Chen Feng set.


When you send a Chinese SMS UCS2 text, the first Chinese convert to unicode encoding. .


Then the Chinese short messages Unicode encoding to send with text.

B. . Programming examples:. .


Private Sub Command1_Click()。.


'Use COM3. .

' 9600 baud, no parity, 8 data bits, one stop bit.


MSComm1. . Settings = "9600, N, 8,1". .


MSComm1。.Handshaking = comRTS 。.

'Open the port. .


' MSComm1。.PortOpen = False。.


'MSComm1. . PortOpen = True. .


' At the command sent to the modem.


MSComm1. . Output = "AT". .


MSComm1。.Output = Chr(13)。.


MSComm1. . Output = "AT + CMGF = 1". .


MSComm1。.Output = Chr(13)。.


MSComm1. . Output = "AT + CMGS =". .


MSComm1。.Output = Chr(34)。.


MSComm1. . Output = "13901237885". .


MSComm1。.Output = Chr(34)。.


MSComm1. . Output = Chr (13). .


MSComm1。.Output = "test OK "。.


MSComm1. . Output = Chr (26). .


End Sub 。.

Private Sub Command3_Click (). .


MSComm1。.CommPort = 2。.


MSComm1. . PortOpen = True. .


End Sub 。.

/ / Convert to UNICODE in Chinese. .


Public Function Unicode2AscII(ByVal s As String)。.


On Error Resume Next. .


Dim i As Integer。.


Dim r As String. .


For i = 1 To Len(s) Step 4。.


r = r + ChrB ("& H" & Mid (s, i + 2, 2)) & ChrB ("& H" & Mid (s, i, 2)). .


Next。.


Unicode2AscII = r. .


End Function 。.

/ / The Chinese into UniCode,. .


function AnsiToUnicode(Ansi: string):string;。.


var. .


s:string;。.


i: integer;. .


j,k:string[2];。.


a: array [1. .1000] Of char;. .


begin。.


s :='';。 .


StringToWideChar(Ansi,@(a[1]),500);。.


i: = 1;. .


while ((a[i]<>#0) or (a[i+1]<>#0)) do begin。.


j: = IntToHex (Integer (a [i]), 2);. .


k:=IntToHex(Integer(a[i+1]),2);。.


s: = s + k + j;. .


i:=i+2;。.


end;. .


Result:=s;。.


end;. .

Serial communication-based automatic meter reading system.

Abstract: The program for remote meter reading system, system components, hardware configuration, software design, working principle, function and technical performance are discussed. The system lower machine (MCU) and wireless transceiver module (PTR2000) collect, collate data, through the serial port by the MODEM module and PC communications, water, electricity and gas company host computer (PC) for data collection, remote wireless automatic meter reading function. .

In the introduction.

In people's daily life, water, electricity, gas is not essential for life, the lack of protection, but for water, electricity, gas supply companies, the monthly take home copy all the user's three-meter readings are very heavy work requires a lot of manpower and material resources. Now many companies, in automatic meter reading system, but they usually complete the telephone line or a line of communication with the host computer, the cost is relatively high. See reference [3] [6] [7]. In view of this situation, the authors designed a remote wireless automatic meter reading system.Automatic meter reading system, hereinafter referred to as ARMS (Automatic Meter Reading System), is the supply of water, electricity and gas sectors will be installed on the users of water, electricity, gas consumption is recorded in the table, such as data transmission via telemetry, and computer systems to business sector, summarized in place of the manual meter reading and a series of follow-up system. The system of wireless communication, it is necessary to adopt GSM short message service, and its realization is home automation is the first step, and help to improve the management of the modernization of the electricity system. The system has two main characteristics: First, multi-system data collection point, tens of thousands of large amount of data; second system is a very broad coverage of the communication network, collecting points with the dispersion. On the system requirements, on the one hand should be low cost, affordable, on the other hand to be accurate and timely data collection, but also a certain degree of environmental adaptability and anti-jamming capability. With modern electronic technology, communications and computer technology have made rapid development, the combination further evolved many new communication methods and communication systems for the realization of ARMS possible.This prevents the meter reading meter reading staff on-site brings ills, on-site meter reading to disturb the user's embarrassing questions to the company, users have a great convenience, have good market prospects. Especially in large and medium-sized cities, with a wide range of promotional value.

1. The composition and working principle of the system. .

Composed of: data acquisition systems; data transmission, wireless communication; data reception and processing.

How it works: First, the sensor data acquisition devices capture the three meter readings, the collected data into SCM (AT89C2051) within; microcontroller and through the wireless communication module PTR2000 (originator) to send the data, the user concentrator PTR2000 (income side) will be sent to the data reception, the next bit machine is complete data collection, storage and ibid bit time-machine communication function, it is through the serial interface and GSM / Modem connected to public network (GSM) as a platform to the public by telecommunication network transmission data.With GSM mobile communication network construction and development, mobile networks are increasingly large and complex, the covered area is increasingly widespread. Thus through the GSM network for data transfer has become a modern means of data transmission. GSM/GSM-Modem via SMS to send data. PC (PC) are generally installed in the company's business, it is responsible for the management of the entire system, its data, and then on the received data consolidation, storage, display and calculate the users need to pay the costs. Users can also print out the amount of curve on the implementation of seasonal tariff, tariff, and use economic leverage to achieve load shifting very beneficial for the country to save energy. The architecture diagram in Figure 1:. .


Economic analysis: the system design of the maximum capacity is 1000. Every 100ms acquisition of data, then one minute can collect 600 data. General Electric is 2400 go/KWH, collecting device each collection 20 pulse recording 1 point. Every ten minutes gathering data up 1 bytes, each of the usage data is based on incremental collection, three table increments up to a maximum of 3 bytes, 600 data up 2K byte per minute collection round, collected data is stored in the RAM AT89C51, finishing, packaging, store, and every ten minutes. As the volume of water less electricity at night, so at night to send the packet, a lot of empty bag, so a waste of time occupied by the communication channel. Therefore, software design, the more limited use to send that collected data every time a certain amount of it must go beyond sending up to 12 hours a day peak usage is sent once every 10 minutes. GSM short message service based on capacity mainly by short message service center processing power and wireless signaling channel carrying capacity of the decision, the amount of information for each short message is limited to 140 octets (7-bit encoding, 160 characters ) not more than 140 bytes.Every ten minutes, collecting data, you need to send 3K 22 short message, then send each month and about 5 million. According to the short message fees in Xi'an, 2-5 million/month fee is $ 2000/month. On average, each 2 Yuan/month. Therefore this system is very economic. But PC every ten minutes for the collection of data at a time, one day in the peak period of usage time collecting user and will print out usage curve.

2. . Hardware configuration. .

2. .1 data acquisition, sending part of the water meter is a pointer to the original meter count gear for jackets with magnetic pointer, and then through the sensor for data collection; gas table to be used with signal output of gas; electricity electronic energy meter must use pulse, meter pulse output devices for the optical coupling output, has better isolate a role. Data acquisition devices and users of electricity meters installed together, in order to prevent the user from sudden power loss, collecting device must be mounted on the front of the air switch. Meter can be measured by counting pulses, collected by the optical collection head count pulse meter, turn the dial ring, a hair collection optical pulse P1 input port P1. .0, The AT89C2051 storage. PTR2000 module then sends the data. PTR2000 module but ultra-small, ultra-low power, high speed 19. .2 K wireless transceiver data transmission MODEM.Adopts the most advanced European "Bluetooth" in the application of digital technology by using a combination of single IC to receive launch-in-one at 433--434MHz, air transport data rate is 19. .2Kbps, supply voltage range is from 2 .7V to 5 2.. .25V, FSK modulation and standard DIP pin spacing, more suitable for embedded devices. When the foot of TXEN PTR2000 is high, it is launching State; when the TXEN feet to low, it is in the receiving State. In the hardware design, it will TXEN and AT89C2051 of P1. .1 Feet connected by software control PTR2000 state. Circuit diagram in Figure 2. .


Figure 2 data collection, send the appliance circuit schematics.

2. .2 Data receiver and remote wireless data communications PTR2000 to receive and deposit within AT89C51, ROM and RAM to store programs and data, respectively, data are stored at the corresponding time period of storage in the region, time interval of 10 minutes. Data on different days of the same period is only accumulated in the corresponding storage area. Acquisition device that has the maintenance-free power supply, power failure can also work to ensure the protection of data and receive, the implementation of host computer commands. AT89C51 wireless MODEM connection through the serial port and to realize the wireless communication with the host computer.GSM (Global System for Mobile Communication) system is based on TDMA technology for mobile communication system in the most mature, the most complete, most widely used a system. China has built a nationwide GSM digital cellular mobile telecommunication network is public land mobile telecommunication networks. GSM short message service SMS (Short Message Service) and voice and fax transmission as the same as the GSM digital cellular mobile communication networks, the main telecommunication services, it is transmitted through the wireless control channel is unique to GSM communications network, via short message Business Center, storage and forwarding capabilities, it does not need dial-up connection, to send information directly with the destination address is sent to short message service center, short message service center and then sent a letter to the final places. This is suitable for the data collected for each sent to the monitoring center at any time.Transmission of SMS control channel for dedicated control channel (DCCH). See reference [6]. Short message service can enable network-aware of the called party has received a short message, if the delivery fails, the called party has not answered the exact message, the network side retains the message, once the network discovery the called party can be called Tong, messages can be rerouted to ensure that the called party can receive. So the short message service as a GSM network a major telecom service delivery, it is reliable. To sum up, the system selects the GSM short message service to enable remote wireless data transfer is possible. GSM Modem (GSM / MODEM) has changed the traditional means of communication to voice-based, open up GSM network data communication and its application the door. It provides RS232 data interface, Hayes AT command line with ETSI standard GSM0707 and GSM0705. The system of GSM / MODEM WAVECOM by the French company's GSM / MODEM module. See reference [5] circuit diagram in Figure 3. .


Figure 3 data reception, wireless communications circuit schematics.

2. .3 Data processing part of the host computer through the DDE interface to send the next bit plane data to the EXCEL work table, defined the report in EXCEL format, measurement format and save the file to the template format, the meter reading is completed, the system can automatically fill in data to the appropriate designated cell, calculated by the EXCEL automatically converted to KWH value and calculated value fees.Print on the host computer, display the user's water, electricity, gas and a variety of reports and the load curve, when a user loads the beep signal when the out-of-gauge, according to the companies to decide whether to send remote commands to the slave power to users. You can also calculate the cost of each period for the electricity sector to implement time-of-charge and provide a reliable guarantee. But in order to ensure the security of data storage, PC (PC) with dual-disk data backup, system with backup power supply, a power outage can maintain a normal working condition. Backup power can ensure the system working at full capacity to work under more than 36 hours, longer if the power outage, the system will not carry out data collection, but the original data is not lost, power restored to re-verify the data, update settings User concentrator in the lower computer stored data. .

3. software design.

As the system uses a two-way one-to-multipoint data transmission, so each table has its own address code. Host computer can query the lower position, lower machine can also be time to send data to the host computer. The system seeks to achieve is a machine (PC) on the multi-machine (lower machine) communication control, the communications software is divided into two parts: the upper computer and lower computer remote communications software; SCM and GSM / MODEM string line communication software. See reference [2]. Program design, the key is on the lower computer remote communication between the accuracy.In programming, use of communication protocol (Protocol), issued by the host computer and reading table directive to allow the individual access code slave will record the data passes to verify, at the same time, in order to ensure the correctness of the data. Each slave machine series has a different code, when the host computer to all slave sends an address code and reading instruction, all the slave receives the code, and compare their own codes are the same, if not the same as you exit the comparison, no longer receives another command. If the same query is that PC is the next bit plane, while recovery of response signals, and ready to receive commands, and host computer will send back a response signal and comparing the address code, different error message is given, the same can be Control has been called through the lower machine. It was already known through the lower machine to continue to receive host computer sends the meter reading command, and to collect user data, sent through the GSM network to the host computer, until the received PC commands sent by the implementation of the completion. Process flow diagram shown in Figure 4, Figure 5. .


4. concluding remarks.

This article describes the set of automatic meter reading system, computer, communications technology, and the use of advanced wireless communication module and the most mature, most perfect, the most widely used GSM data transmission as a platform scanner that is fast and accurate, and complete solution manual meter reading for all ills. And the banking system can be further computer networking, to achieve automatic allocation of costs, greatly improve the efficiency, good market prospects. .

1. relevant GSM AT command.


And SMS the GSM AT commands (from GSM07. .05) As shown in Table 1:. .


Table 1 AT instruction related to GSM.

AT command. .


Function.

AT + CMGC. .


Send an SMS command (send a short message command).

AT + CMGD. .


Delete SMS message (remove the SIM card memory is short message).

AT + CMGF. .


Select SMS message formate (select SMS message format: 0-PDU; 1-text).

AT + CMGL. .


List SMS message from preferred store (lists the SIM card in the SMS PDU/0/text: "UNREAD" REC-unread/READ "REC."-read, 2/"UNSENT" STO-outgoing, SENT 3/"STO"-issued, 4/ALL "-all").

AT + CMGR. .


Read SMS message (read short messages).

AT + CMGS. .


Send SMS message (send message).

AT + CMGW. .


Write SMS message to memory (the memory to the SIM SMS messages).

AT + CMSS. .


Send SMS message from storage (from SIN | M memory to send short message).

AT + CNMI. .


New SMS message indications (display the new receive short message).

AT + CPMS. .


Preferred SMS message storage (select SMS memory).

AT + CSCA. .


Service center address SMS (short message service center address).

AT + CSCB. .


Select cell broadcast messages (select cell broadcast messages).

AT + CSMP. .


Set SMS text mode parameters (set SMS text mode parameters).

AT + CSMS. .


Select Message Service (SMS).

Short message control total on three models:. .


Block Mode 。.

Based on AT command PDU Mode. .

Based on the Text AT the command Mode.

Block models require use of mobile phone manufacturers to provide driver support, now, PDU Mode has been replaced by Block Mode, Text Mode is simple, this article focuses on model PDU Mode, to Siemens products TC35T example. .


2. the communication between your computer and TC35T.


(1) RS232 serial connection. .


Because TC35T comes with RS232 serial line, so you only need to connect it to the computer serial port. Open HyperTerminal, select the appropriate serial port, set the port parameter is set to: rate — 4800, parity bit, data bits — No — 8, stop bits: 1, flow control hardware.


(2) connection test. .


Enter the "AT" and then enter the screen to return to the "OK" and indicates that the computer is connected successfully, TC35T TC35T to function properly. Now you can test various types of AT commands.


When testing the command "AT + CMGS =?", If the return "OK" marked TC35T to support the instruction. The full command syntax is as follows:. .


If you are in the PDU Mode TC35T (i.e. "AT + CMGF?" Returns "0").

AT + CMGS = PDU is given <^ Z / ESC>. .


If the message is sent successfully, it returns the "OK", and displays the information number:.


+ CMGS: [,]. .


If you send a short message fails, it returns the following information:.


+ CMS ERROR:. .


If you are in Text Mode TC35T (i.e. "AT + CMGF?" Returns "1").

AT + CMGS = [, toda] text is entered <^ Z / ESC>. .


If the message is sent successfully, it returns the "OK", and displays the information number:.


+ CMGS: [,]. .


If you send a short message fails, it returns the following information:.


+ CMS ERROR:. .


In addition, because using TC35T, when a new message arrives, you need to produce, use TC35T instruction "AT + CNMI." The complete syntax for this command are as follows:.


AT + CNMI =[][,][,][,][,]. .


If you have new private messages arrive, you will automatically return the following TC35T hint:.


+ CMTI: "SM",. .


At this point, and then use the "read AT + CMGR" instructions read short messages.


3. PDU data format of:. .


For example, we want to apply a character "Hi" character is sent to the destination "13677328099".


PDU string:. .


08 91 683108701305F0 11 00 0D 91 3176378290F9 00 00 00 02 C834 。.


⑴ 08 - the length of the short message center address. Means (91) + (683108701305F0) in length. .


⑵ 91-short information center number type. 91 is TON/NPI compliance with International standard/E., means .164 numbers needed to be ' + ' number; in addition there are other values, but the most commonly used 91.


91-10010001. .


BIT No。.


7. .


6.


5. .


4.


3. .


2.


1. .


0 。.

Name. .


1.


Value type. .


Number identification.

Value Type (Type of Number): 000 - unknown, 001 - international, 010 - domestic, 111 - reserved for expansion;. .


Number identification (Numbering plan identification): 0000: 0001-unknown, ISDN/telephone numbers (.164/E E.. .163), 1111 — reserved for expansion;.


⑶ 683108701305F0-short message center number. As the position a little processing, the actual number should be: 8613800731500 (letter F refers to the length minus 1). This requires different regions according to the changes accordingly. .


⑴, known as ⑶ ⑵, short message service center address (the Address of the SMSC).


⑷ 11 - byte header. .


11&h=00010001&b 。.


BIT No. .


7.


6. .


5.


4. .


3.


2. .


1.


0. .

Name 。.


TP-RP. .


TP-UDHI 。.


TP-SPR. .


TP-VFP 。.


TP-RD. .


TP-MTI 。.

value. .


0.


0. .


0.


1. .


0.


0. .


0.


1. .

Reply path — TP-RP (TP-Reply-Path): 0-do not set; 1 — setting.


User data header ID-TP-UDHL (TP-User-Data-Header-Indicator): 0 - does not contain any header information; 1 - with header information. .


State reporting requirements — TP-SPR (TP-Status-Report-Request): 0 – 1 – you need to report on; you do not need to report.


Valid format-TP-VPF (TP-Validity-Period-Format): 00 - not available (Not present); 10 - integer (standard); 01 - reserved; 11 - to 8-bit bytes of the half (Semi- Octet Represented). .


Reject copy — TP-RD (TP-Reject-Duplicates): 0 — accept replication; 1 — denial of replication.


Type of information suggest-TP-MTI (TP-Message-Type-Indicator): 00 - read (Deliver); 01 - submitted (Submit). .


⑸ 00 — information type (TP-Message-Reference).


⑹ 0B-called number length. .


⑺ 91 — called number type (same ⑵).


⑻ 3176378290F9-called number, after the displacement of treatment, the actual number "13677328099." .


⑹, known as the ⑺, ⑻ (TP-Destination-Address) destination address.


⑼ 00 - protocol ID TP-PID (TP-Protocol-Identifier). .


BIT No。.


7. .


6.


5. .


4.


3. .


2.


1. .


0 。.

Bit No. .7 And Bit No. .6: 00 - defined as the following distribution Bit No. .0-Bit No. .5; 01 - see GSM03. .40 Agreement identifies a fully defined; 10 - reserved; 11 - for the service center (SC) special purpose distribution Bit No. .0-Bit No. .5. .


Generally these two locations to 00.


Bit No. .5:0 - Do not use the remote network, but the agreement between the short message equipment; 1 - use remote network. .


Bit .0-No.. .4 No Bits: 00000 — implied; telex; 00010 00001 — — telefax group 3; 00100 — voice; 00101 — European wireless information system (ERMES); 00110 — national system; 10001 — any .400 based on X. public information processing system; 10010 — Email.


⑽ 00 - data coding scheme TP-DCS (TP-Data-Coding-Scheme). .


BIT No。.


7. .


6.


5. .


4.


3. .


2.


1. .


0 。.

Bit No. .7 And Bit No. .6: General is set to 00; Bit No. .5:0 - The text is not compressed, 1 - text with the GSM standard compression algorithm compression; Bit No. .4:0 - That Bit No. .1, Bit No. .0 To preserve the bits, the type of information does not contain information on 1 - that Bit No. .1, Bit No. .0 With information on the type of information; Bit No. .3 And Bit No. .2: 00 — default alphabet, 01-10-USC2 8bit, (16bit), 11-reserved; No .1 and Bit. No .0 Bit.: 00-Class 0, Class 1, 01-10-Class 2 (SIM-card specifics), 11-3 Class.


⑾ 00 - valid for TP-VP (TP-Valid-Period). .


VP value(&h) 。.


Corresponding period. .

00 to 8F 。.


(VP +1) * 5 分钟. .

90 to A7 。.


12 hours + (VP-143) * 30 分钟. .

A8 to C4 。.


(VP-166) * 1 天. .

C5 to FF 。.


(VP-192) * 1 周. .

⑿ 02 — user data length TP-UDL (TP-User-Data-Length).


⒀ C834-user data TP-UD (TP-User-Data) "Hi". .


4. short message encoding.


Need to send a short message based content "Hi", to use the GSM 7-bit coded character set is. First character is converted to 7-bit binary, then, will call back to the front of the bit characters, padded front differential. For example: H translated into 1001000, i translated into 1,101,001, apparently less than 8 H binary code, then the last one i will make up the H in front.Then became 11001000 (C8), I left six 110100, then two in front of 0, becomes 00110100 (34), so the "Hi" becomes a two octet C8 34.


5. Send and receive short message case. .


In view of the TC35 (T) support TEXT formatting, we test the main test in that format.


(A) set the short Message Center. .


AT + CSCA = "+ 8613800731500" (short message center).


(2) set the short message format. .


AT+CMGF=1 (1-TEXT; 0-PDU); 。.


(3) to send short messages (SMS content "test"). .


AT + CMGS = "13508485560" (destination).


> Test ^ z;. .


(4) sets the short message arrives automatically prompts: setting short message arrives at the prompt when the short message is received, you will get instructions: + CMTI: "SM", INDEX (information store location).


AT + CNMI = 1,1,0,0,1 ();. .


(5) Gets a short message content (Once more), INDEX = 8.


AT + CMGR = 8. .


Returns information as follows:.


+ CMGR: "REC UNREAD", "+8613508485560",, "01/07/16, 15:37:28 +32", Once more. .


6. considerations.


(1) short message centers are generally not changed, if the short message center number changes, the use of "AT + CSCA" statement, remember to restart the TC35, or TC35 does not work (TC35T this problem does not exist). .


(2) certain SIM card with a password, you will need to enter a password on startup.

http://www. . Cnblogs. .com/sky266/archive/2007/10/27/939381. . Html. .

GPS- Deriving British Ordnance Survey Grid Reference from NMEA data - Part 1 - modify NMEAinterpreter class。.


How to Write a GPS Application - Introduction. .


PDU encodings.

C + +, Delphi 7 bit encoding. .


GSM MODEM receives SMS C coding.

Phone to send short messages (full). .


http://blog。.csdn。.net/qianbo_0423/archive/2006/02/17/601029。.aspx。.


Use P / Invoke to Develop a. . NET Base Class Library for Serial Device Communications. .


http://msdn。.microsoft。.com/msdnmag/issues/02/10/NETSerialComm/default。.aspx。.


This article assumes you're familiar with C # and RS232 communications. .


AT programming related technical issues.


http://blog. . Csdn. .net/zlyperson/archive/2004/12/15/217316. . Aspx. .


Palm serial communication data read from the GPS..


http://yhyblog. . Bokee. .com/4826431. . Html. .

Required reading AT directive programming.

http://www. . Sendsms. .cn/technic/03. . Htm. .

Serial communication-based automatic meter reading system.

http://www. . Sendsms. .cn/technic/07. . Htm. .

Ann real SMS (Download Center) controls.

http://www. . Forwardsoft. .net / pages / product_download. . Html. .

Communication technology column.

http://www. . Sendsms. .cn / technic. . Htm. .

Visual C # implementation of the design of a custom component.

Mail. .

With VC 6. .0 serial communication in three ways.

http://htm. . Winsteps. .net/program/5880. . Htm. .

Take your understanding of the wireless network card installation and Setup.

http://www. . Topc. .cn/Article/portable/2006030714431366768. . Htm. .

Based on the CDMA 1X design of remote monitoring system.

http://www. . Avrw. .com/article/art_115_5340. . Htm. .

Wireless forums.

http://www. . Web54. .com / list. . Aspx? U = f/904/1-500. . Html. .

Simple but powerful multithreaded serial programming tools CserialPort class (with VC MFC single document based protocol traffic source and detailed programming steps).

http://www. . Gjwtech. .com/scomm/sc2serialportclass. . Htm. .

Take advantage of the SerialPort class implements the receiving and dispatching short note (C # 2. .0) (DLL).

http://blog. . Csdn. .net/veryhappy/archive/2006/04/05/651949. . Aspx. .

Net development of SMS.

http://blog. . Csdn. .net/Awinye/archive/2005/11/28/538300. . Aspx. .

Message development.

http://blog. . Csdn. .net/hesicong/category/23319. . Aspx is all very full very full. .

How to send SMS via computer — start article.

http://blog. . Csdn. .net/itcoco/archive/2006/01/12/576911. . Aspx. .

DIY build enterprise short note platform (top).

http://blog. . Csdn. .net/devercn/archive/2004/09/21/111809. . Aspx. .

PDU SMS send coded program (C # 2. .0) [Ext.].

http://hi. . Baidu. .com/wang_zan/blog/item/f148bc3514feba8ba61e121e. . Html. .

Comparison of methods for various wireless Internet access.

http://doreso125. . Bokee. .com/5623391. . Html. .

VisualStudio2005 serialPort control to access the serial port in the instance [reprint].

http://www. . Cublog. .cn/u/15586/showart_189530. . Html. .

C # the development of Terminal-SMS principles and methods.

http://blog. . Csdn. .net/gztoby/archive/2004/09/21/112041. . Aspx. .

Profile.


Young people not texting is definitely one of those rare and protected animals, advanced communications and messaging, today has become an important means of communication, which also contains a huge market and economic interests, talents to master SMS technology has also been the The pursuit of large companies is the brightest star in the workplace. This article describes the message of the principle and method, highlights the encoding SMS, AT commands, and Serial Communication with C # methods. .


Preface.


Currently, there are three main ways to send SMS:. .


1. gateway mode: is the telecommunications sector to local applications, requires no additional equipment, suitable for large communications companies, like Huawei, autelan, ZTE, AsiaInfo, etc..


2, Terminal Mode: GSM MODEM is like with like settings (supports AT commands cell phone line), through data cable to connect your computer to send text messages, compared with this method for small and personal. To achieve serial communication must be understood in this way, AT commands, SMS encoding, decoding, which is the focus of this paper. .


3. use of site, simple, but the site-dependent is too high, at the request of the network is also relatively high, is not appropriate for the development of the project.

Read the navigation. .

Terminal connection diagram SMS.

Principle articles. .

SMS encoding.

AT command. .

Serial communication.

Practice articles. .

Frequently asked questions.

Download. .

This article's source code.

Encoded test file. .

Why MODEM CND?.


Because MODEM, whether built-in MODEM, External MODEM, as long as it supports caller ID, then the computer, you can install on my company's "sky caller ID customer management system" so that call, the display is not only a phone number, can also display the names and other information, such as: Joe Smith, John Doe, etc. (see software), so, than the only phone number in the phone to clear more. But MODEM support caller ID is the most critical and most important requirement. .


Realization of the caller's minimum system requirements.


1. . Your fixed-line telecom operators have to apply for opening a caller ID function, if there is no application, even if the MODEM support is no good. .


2. Install MODEM driver software.


3. . MODEM support caller ID. MODEM on whether to support caller ID to determine the method, the following will be introduced. .


How do you judge the MODEM is not supporting the caller?.


1. . Open a HyperTerminal, enter a connection name, such as TEST. .


2. After pressing OK, the next window, see your MODEM not to enter the phone number. Then the next step.


3. . In this window, press Cancel. .


4. You can enter a blank window will have a..


Input: AT carriage return. .


If the OK, the MODEM supports the AT command, otherwise, the other will not have to try.


Then enter the following commands (each preceded by AT), as long as a reaction OK, to explain MODEM chip itself to support caller ID. .


#CID=1。.


% CCID = 1. .


+VCID=1。.


# CC1. .


*ID1。.


5. . If there is one there is OK, then, are you into the phone, (pick a good phone line prior to the MODEM). .


If your MODEM is really supports caller ID, you receive the following error message that is similar to the content.


RING. .


DATE = 0309。.


TIME = 1800. .


NMBR = * ** * ** * ** * (your incoming caller ID).


RING. .


If your MODEM does not support the caller, it might appear:.


RING. .


RING。.


RING. .


There is nothing of the MODEM does not appear, it's less likely to support caller.


Why are some MODEM support, some do not support the MODEM? . .


Because the caller, presupposes chipset support, you need to have the support of the external circuit. Now manufacturers in order to reduce costs, most users do not know the caller ID feature, merchants do not know, very few people use, so they get rid of these circuits, so that the MODEM is connected to the Internet only, the other can do nothing "stupid" and "simplify MODEM MODEM".


Why is my MODEM on the packaging clearly says "support caller ID," but why there is no call number? . .


Don't believe what you bought the MODEM on the box marked "CND" support. Because that's probably when together in 2002, production printing. In 2002, the production of gold network Blaster (CONEXANT chipset) supports caller ID, jinlang's MODEM in June 2002, the former production also supports now also simplify the circuit. GVC previously also supports the call to the factory, now, they say it does not support. ALPHA, with the support of the SMARTLINK 1900, but ten phone only three to four displays, so no real role. ALPHA's do not support the other. MODEM 3COM foreign support, Lenovo's Legend of the Condor, I, II type, external support for some models. .


If there are more and more people know the "caller" and "MODEM", believe that the manufacturers will put this feature back to the user.


Modem driver installation problem. .


If your operating system is Windows XP, 2K/when installing the MODEM driver is installed automatically when the operating system and MODEM driver, the driver can support data transfer (i.e., can only be used to dial-up Internet access, but do not have fax and voice features). Therefore, you must upgrade MODEM driver, and the upgrade manually to specify when to follow the MODEM's CD driver (rather than allow the system to their own search). And after the upgrade to restart the system.


Caller ID features require the support of the local telecom operators. .


In addition it should be noted that all MODEM (professional use MODEM) can only support the FSK caller display format, because the market is out of the United States MODEM (or the OEM products in the United States), can only support the US standard, but also your FSK in setting the MODEM properties when it is best to its country to the United States (if you have this option). But you don't have to worry too much, since many of our cities have used US standards. If you are not sure the format is a local caller ID FSK or DTMF, can go to the local telecommunications bureau or call 10000 asked. .


Recommended parts support caller function MODEM, I hope you can put your test pass of MODEM models tell us, we will update the website.


External MODEM:. .


Omni sky cruise boat .92. V.


Innovation Flash56 II DE5620-2. .


AOpen FM56-EX/2 External Fax/Modem/Voice。.


3COM USR Message 56K External (commonly known as "black MODEM"). .


Built-in MODEM:.


Conexant 11252 HSF Data / Fax / Voice. .


AOpen FM56-PM Fax/Modem/Voice 。.


Creative Flash 56 PCI Di5630. .


The Gold network Blaster PF-X01B-20.


Tenda 5631,5629. .

I just happened to stumble upon your note about sending audio data to a voice modem connected to the serial port。. This is precisely what I am trying to do。.

I have written a VB. . NET program to issue AT commands to the voice modem to dial a number then play a WAV file. . The dialing all owrks fine. .When I listen on the dial phone I can hear some periodic noise (like once a second or so) as the greeting WAV file is transmitted to the modem。. The modem supports several different formats and I have tried several, all with similar results. .I am appending my code here, but there are basically the three parts 1) dialing the phone with the ATDT command, 2) getting it ready with the AT+VSM (format command), AT+FLO (flowcontrol), and AT+VTX (enter voice transmit mode) and 3) sending the WAV data . .

Like I said all the AT stuff seems to work。. The way I am sending the audio data is to read in the WAV file, strip off the header and send it to the modem serial port using the SerialPort。. Write method with a buffer of 8K, thus bypassing all audio drivers etc and talking directly to the modem. . This is the part I'm not sure is the right approach or not. .

Again the problem could be the format of the file, but I have a 8 bit, 8 khz sample rate, mono PCM WAV file that i set the AT+VSM to accept。.

I appreciate any hlep you might offer in getting this problem resolved. .

John 。.

Code:. .

Imports System。.IO。.


Imports System. . IO. . Ports. .

Public Class Form1 。.

Dim Port As IO. . Ports. . SerialPort. .


' voice modem is on serial port。.internal modem is on COM3 。.

Dim Comport As String = "COM1". .


Dim modemPort As New SerialPort(Comport, 9600)。.


Dim fileByte As Byte (). .


Dim offset As Integer = 42 。.

Private Sub Form1_FormClosing (ByVal sender As Object, ByVal e As..

System。.Windows。.Forms。.FormClosingEventArgs) Handles Me。.FormClosing。.


modemPort. . Close (). .

End Sub 。.

Private Sub Form1_Load (ByVal sender As System.. Object, ByVal e As System.. EventArgs) Handles MyBase. . Load. .

' Set up the Comport。.


'ModemPort = My. . Computer. . Ports. . OpenSerialPort (Comport, 9600). .

' set buffer size。.


modemPort. . WriteBufferSize = 8000. .

' set timeout。.


modemPort. . ReadTimeout = 20000. .

'open port。.


modemPort. . Open (). .

End Sub 。.

Private Sub Button1_Click_1 (ByVal sender As System.. Object, _..


ByVal e As System。.EventArgs) Handles btnDial。.Click 。.

Dim response1 As String. .


Dim response2 As String 。.

'WAV file is 8 bit, 8 khz, mono PCM format. .

' initialize modem。.


modemPort. . Write ("ATZ" & vbCrLf). .


response1 = modemPort。.ReadLine。.


response2 = modemPort. . ReadLine. .


If response2 <> "OK" & vbCr Then GoTo Err 。.

'Enable DTR. .


modemPort。.DtrEnable = True 。.

'Voice mode. .


modemPort。.Write("AT+FCLASS=8" & vbCrLf)。.


response1 = modemPort. . ReadLine. .


response2 = modemPort。.ReadLine。.


If response2 <> "OK" & vbCr Then GoTo Err. .

' txtPhone is a Text Box with the phone number in it。.


modemPort. . Write ("ATDT" & txtPhone.. Text & vbCrLf). .


response1 = modemPort。.ReadLine。.


response2 = modemPort. . ReadLine. .


If response2 <> "OK" & vbCr Then GoTo Err 。.

'Modem supports the following:. .


' VSM:。.


'128 8 bit linear 7200,8000,11025. .


' 129 16 bit linear (default) 7200,8000 (default),11025。.


'130 8 bit A-law 8000. .


' 131 8 bit m-law 8000。.


'132 IMA ADPCM 8000. .


' 133 G。.729 8000。.


'Greeting. . Wav. .

modemPort。.Write("AT+VSM=132,8000" & vbCrLf) 。.

response1 = modemPort. . ReadLine. .


response2 = modemPort。.ReadLine。.


If response2 <> "OK" & vbCr Then GoTo Err. .

' disable silence detection。.


modemPort. . Write ("AT + VSD = 128,0" & vbCrLf). .


response1 = modemPort。.ReadLine。.


response2 = modemPort. . ReadLine. .


If response2 <> "OK" & vbCr Then GoTo Err 。.

'Hardware flow control. .


' 0 => disable flow control。.


'1 => enable software flow control. .


' 2 => enable hardware flow control。.


modemPort. . Write ("AT + FLO = 2" & vbCrLf). .


response1 = modemPort。.ReadLine。.


response2 = modemPort. . ReadLine. .


If response2 <> "OK" & vbCr Then GoTo Err 。.

'Enter voice transit data state. .


modemPort。.Write("AT+VTX" & vbCrLf)。.


response1 = modemPort. . ReadLine. .


response2 = modemPort。.ReadLine。.


If response2 <> "CONNECT" & vbCr Then GoTo Err. .

' need to wait for person to answer。.just wait for now。.


'System. . Threading. . Thread. . Sleep (5000). .

'now send the data。.


'Need to strip off first 43 byte header from wave file that was read in. .

Status。.Text = "Starting data transfer"。.


Application. . DoEvents (). .

' send the data (another routine reads in WAV file into fileByte)。.


modemPort. . Write (fileByte, offset, fileByte.. Length - offset). .

' indicate end of voice transmit data。.


modemPort. . Write ("..


" & vbCrLf)。.


response1 = modemPort. . ReadLine. .


response2 = modemPort。.ReadLine。.


If response2 <> "OK" & vbCr Then GoTo Err. .

' hang up 。.

modemPort. . Write ("ATH" & vbCrLf). .


'response1 = modemPort。.ReadLine。.


'Response2 = modemPort. . ReadLine. .


'If response2 <> "OK" & vbCr Then GoTo Err 。.

Status. . Text = "Transfer complete". .

GoTo Out 。.

Err:. .


' log it and get out。.


Status. . Text = "Error:" & response2. .

Out: 。.

End Sub overview. .

JQuery is the second prototype followed by an excellent Javascript framework. Its purpose is to write less code that do more. It is a lightweight js library (compressed only 21k), this is the other js libraries are not.


And, it is compatible CSS3, is also compatible with all browsers (IE 6. .0 +, FF 1. .5 +, Safari 2. .0 +, Opera 9. .0 +). jQuery is a fast, simple javaScript library, allowing users to more easily deal with HTML documents, events, to achieve animation effects, and provide easy AJAX for interactive web site.JQuery has a big advantage is that it is very full documentation, and a variety of application very detailed, along with many mature plug-ins to choose from. JQuery to make the user's html page code and HTML content isolation, in other words, do not insert the HTML inside the call to a heap of js command, you can simply define the id. Today in Kollermedia. .at an article found on a JQuery plug-ins list, recommended below. File upload (File upload).


Ajax File Upload. .


jQUploader。.


Multiple File Upload plugin. .


jQuery File Style。.


Styling an input type file. .


Progress Bar Plugin。. Form validation (Validation Form).

jQuery Validation. .


Auto Help。.


Simple jQuery form validation. .


jQuery XAV - form validations。.


jQuery AlphaNumeric. .


Masked Input。.


TypeWatch Plugin. .


Text limiter for form fields。.


Ajax Username Check with jQuery. . Forms - Marquee (Form - Select Box stuff). .

jQuery Combobox。.


jQuery controlled dependent (or Cascadign) Select List. .


Multiple Selects。.


Select box manipulation. .


Select Combo Plugin。.


jQuery - LinkedSelect. .


Auto-populate multiple select boxes。.


Choose Plugin (Select Replacement). . Form the basic input box, select box, etc. (Form Basics, Input Fields, Checkboxes etc..). .

jQuery Form Plugin。.


jQuery-Form. .


jLook Nice Forms。.


jNice. .


Ping Plugin。.


Toggle Form Text. .


ToggleVal。.


jQuery Field Plugin. .


jQuery Form’n Field plugin。.


jQuery Checkbox manipulation. .


jTagging。.


jQuery labelcheck. .


Overlabel。.


3 state radio buttons. .


ShiftCheckbox jQuery Plugin。.


Watermark Input. .


jQuery Checkbox (checkboxes with imags)。.


jQuery SpinButton Control. .


jQuery Ajax Form Builder。.


jQuery Focus Fields. .


jQuery Time Entry。. Time, date, and the color selection (Time, Date and Color Picker).

jQuery UI Datepicker. .


jQuery date picker plugin。.


jQuery Time Picker. .


Time Picker。.


ClickPick. .


TimePicker。.


Farbtastic jQuery Color Picker Plugin. .


Color Picker by intelliance。.fr。. Vote plugin (Rating Plugins).

jQuery Star Rating Plugin. .


jQuery Star Rater。.


Content rater with asp. . Net, ajax and jQuery. .


Half-Star Rating Plugin。. Search plug-in (Search Plugins).

jQuery Suggest. .


jQuery Autocomplete。.


jQuery Autocomplete Mod. .


jQuery Autocomplete by AjaxDaddy。.


jQuery Autocomplete Plugin with HTML formatting. .


jQuery Autocompleter。.


AutoCompleter (Tutorial with PHP & MySQL). .


quick Search jQuery Plugin。. Editor (Inline Edit & Editors).


jTagEditor. .


WYMeditor。.


jQuery jFrame. .


Jeditable - edit in place plugin for jQuery。.


jQuery editable. .


jQuery Disable Text Select Plugin。.


Edit in Place with Ajax using jQuery. .


jQuery Plugin - Another In-Place Editor。.


TableEditor. .


tEditable - in place table editing for jQuery。. Multimedia, video, Flash, etc. (Audio, Video, Flash, SVG, etc).

jMedia - accessible multi-media embedding. .


JBEdit - Ajax online Video Editor。.


jQuery MP3 Plugin. .


jQuery Media Plugin。.


jQuery Flash Plugin. .


Embed QuickTime。.


SVG Integration. . Photo (Photos / Images / Galleries). .

ThickBox。.


jQuery lightBox plugin. .


jQuery Image Strip。.


jQuery slideViewer. .


jQuery jqGalScroll 2。.0。.


jQuery - jqGalViewII. .


jQuery - jqGalViewIII。.


jQuery Photo Slider. .


jQuery Thumbs - easily create thumbnails。.


jQuery jQIR Image Replacement. .


jCarousel Lite。.


jQPanView. .


jCarousel。.


Interface Imagebox. .


Image Gallery using jQuery, Interface & Reflactions。.


simple jQuery Gallery. .


jQuery Gallery Module。.


EO Gallery. .


jQuery ScrollShow。.


jQuery Cycle Plugin. .


jQuery Flickr。.


jQuery Lazy Load Images Plugin. .


Zoomi - Zoomable Thumbnails。.


jQuery Crop - crop any image on the fly. .


Image Reflection。. Google maps (Google Map).

jQuery Plugin googlemaps. .


jMaps jQuery Maps Framework。.


jQmaps. .


jQuery & Google Maps。.


jQuery Maps Interface forr Google and Yahoo maps. .


jQuery J Maps - by Tane Piper。. Games (Games).

Tetris with jQuery. .


jQuery Chess。.


Mad Libs Word Game. .


jQuery Puzzle。.


jQuery Solar System (not a game but awesome jQuery Stuff). . And tables (Tables, Grids etc..). .

UI/Tablesorter。.


jQuery ingrid. .


jQuery Grid Plugin。.


Table Filter - awesome!. .


TableEditor。.


jQuery Tree Tables. .


Expandable “Detail” Table Rows。.


Sortable Table ColdFusion Costum Tag with jQuery UI. .


jQuery Bubble。.


TableSorter. .


Scrollable HTML Table。.


jQuery column Manager Plugin. .


jQuery tableHover Plugin。.


jQuery columnHover Plugin. .


jQuery Grid。.


TableSorter plugin for jQuery. .


tEditable - in place table editing for jQuery。.


jQuery charToTable Plugin. .


jQuery Grid Column Sizing。.


jQuery Grid Row Sizing. . Statistical charts (Charts, Presentation etc..). .

jQuery Wizard Plugin 。.


jQuery Chart Plugin. .


Bar Chart。. Border, rounded, background (Border, Corners, Background).

jQuery Corner. .


jQuery Curvy Corner。.


Nifty jQuery Corner. .


Transparent Corners。.


jQuery Corner Gallery. .


Gradient Plugin。. Text and hyperlink (Text and Links).

jQuery Spoiler plugin. .


Text Highlighting。.


Disable Text Select Plugin. .


jQuery Newsticker。.


Auto line-height Plugin. .


Textgrad - a text gradient plugin。.


LinkLook - a link thumbnail preview. .


pager jQuery Plugin。.


shortKeys jQuery Plugin. .


jQuery Biggerlink。.


jQuery Ajax Link Checker. . Mouse Tips (Tooltips). .

jQuery Plugin - Tooltip。.


jTip - The jQuery Tool Tip. .


clueTip。.


BetterTip. .


Flash Tooltips using jQuery。.


ToolTip. . Menu and navigation (Menus, Navigations). .

jQuery Tabs Plugin - awesome! 。. [demo nested tabs。.]。.


another jQuery nested Tab Set example (based on jQuery Tabs Plugin). .


jQuery idTabs。.


jdMenu - Hierarchical Menu Plugin for jQuery. .


jQuery SuckerFish Style。.


jQuery Plugin Treeview. .


treeView Basic。.


FastFind Menu. .


Sliding Menu。.


Lava Lamp jQuery Menu. .


jQuery iconDock。.


jVariations Control Panel. .


ContextMenu plugin。.


clickMenu. .


CSS Dock Menu。.


jQuery Pop-up Menu Tutorial. .


Sliding Menu。.

http://stilbuero. .de/jquery/tabs_3 / slide, flip, etc. (Accordions, Slide and Toggle stuff). .

jQuery Plugin Accordion。.


jQuery Accordion Plugin Horizontal Way. .


haccordion - a simple horizontal accordion plugin for jQuery。.


Horizontal Accordion by portalzine. . De. .


HoverAccordion。.


Accordion Example from fmarcia. . Info. .


jQuery Accordion Example。.


jQuery Demo - Expandable Sidebar Menu. .


Sliding Panels for jQuery。.


jQuery ToggleElements. .


Coda Slider。.


jCarousel. .


Accesible News Slider Plugin。.


Showing and Hiding code Examples. .


jQuery Easing Plugin。.


jQuery Portlets. .


AutoScroll。.


Innerfade. . Drag and drop plug-in (Drag and Drop). .

UI/Draggables。.


EasyDrag jQuery Plugin. .


jQuery Portlets。.


jqDnR - drag, drop resize. .


Drag Demos。. XML XSL JSON Feeds 。.

XSLT Plugin. .


jQuery Ajax call and result XML parsing。.


xmlObjectifier - Converts XML DOM to JSON. .


jQuery XSL Transform。.


jQuery Taconite - multiple Dom updates. .


RSS/ATOM Feed Parser Plugin。.


jQuery Google Feed Plugin. . Browser (Browserstuff). .

Wresize - IE Resize event Fix Plugin。.


jQuery ifixpng. .


jQuery pngFix。.


Link Scrubber - removes the dotted line onfocus from links. .


jQuery Perciformes - the entire suckerfish familly under one roof。.


Background Iframe. .


QinIE - for proper display of Q tags in IE。.


jQuery Accessibility Plugin. .


jQuery MouseWheel Plugin。. Dialog box, confirm that the Windows (Alert, Confirm, Prompt Windows).

jQuery Impromptu. .


jQuery Confirm Plugin。.


jqModal. .


SimpleModal。. CSS 。.

jQuery Style Switcher. .


JSS - Javascript StyleSheets。.


jQuery Rule - creation / manipulation of CSS Rules. .


jPrintArea。. DOM, AJAX and other JQuery plugins (DOM, Ajax and other jQuery plugins).

FlyDOM. .


jQuery Dimenion Plugin。.


jQuery Loggin. .


Metadata - extract metadata from classes, attributes, elements。.


Super-tiny Client-Side Include Javascript jQuery Plugin. .


Undo Made Easy with Ajax。.


JHeartbeat - periodically poll the server. .


Lazy Load Plugin。.


Live Query. .


jQuery Timers。.


jQuery Share it - display social bookmarking icons. .


jQuery serverCookieJar。.


jQuery autoSave. .


jQuery Puffer。.


jQuery iFrame Plugin. .


Cookie Plugin for jQuery。.


jQuery Spy - awesome plugin. .


Effect Delay Trick。.


jQuick - a quick tag creator for jQuery. .


Metaobjects。.


elementReady. . The AT Voice Command set follows a modified IS-101 architecture. .The commands are sent through the comm port, but the data path is sent either through the comm port or through a DMA channel using the wave driver。. The following tables show a summary of the AT Voice Command Set. .

The AT Voice Command Set AT+FCLASS=8 Enter voice mode AT+VIP Initialise voice parameters AT+VCID Caller ID AT+VDR Distinctive ring AT+VGT Speaker volume control AT+FMI? Report manufacturer ID AT+FMM? Report product model information AT+FMR? Report product revision level AT+VIT DTE/DCE inactivity timer AT+VNH Automatic hang-up control AT+VTD Set beep tone duration timer AT+VLS Analog source/destination selection and DTMF/tone reporting AT+VSD Set silence detection timer AT+VRA Set ringback goes away timer AT+VRN Set ringback never came timer AT+VTS DTMF/tone generation AT+VTX Enter voice transmit state AT+VRX Enter voice receive state AT+VSM Voice compression method AT+VEM Event reporting and masking AT+VGR Receive gain selection . .

The AT Voice Command Set Not Defined In IS-101 Specification ATS32 Synthetic ring volume ATS33 Synthesised ring frequency 。.

+ FCLASS = 8 Enter Voice Mode. .


The command AT+FCLASS=8 puts the modem in voice mode。. AT+FCLASS? Returns the current DCE mode AT+FCLASS=? Queries the DCE for the range of modes supported。.

+ VIP Initialise Voice Parameters. .


The command AT+VIP causes the modem to initialise all the voice parameters to their default values。. The command has no effect on the +FCLASS setting。.

+ VCID Caller ID. .


With this command caller identification is enabled/disabled。. AT+VCID=0 Disable caller ID。. AT+VCID=1 Enable, formatted caller report。. AT+VCID=2 Enable, unformatted caller report。. AT + VCID? Returns the current caller ID mode. . AT + VCID =? Queries the DCE for the range of supported caller ID report formats. .

+VDR=(enable,report) Distinctive Ringing & Cadence Report 。.


This command will enable the distinctive ringing feature. . This will allow a report of DROF / DRON to follow an exact ring cadence coming over the phone line. .AT+VDR? Returns the current values of (enable,report)。. AT+VDR=? Queries the DCE for the range of supported distinctive ring configurations。. DCE returns: (0,1),(0-255)。.

+ VGT = level - Speaker Volume Control. .


This command will enable the speaker volume control。. level range is 0-255。. level = 128: Nominal volume level for sending to speaker。. level = value greater than 128: Increase volume above nominal level. . Level = value less than 128: Decrease volume below nominal level. .

AT command.

AT command since a long time wanted to study, but has suffered from lack of time, 2 months ago for the AT command is very strange, many people thought I should be very understanding of it, is not, I just know some TAPI only. Some time ago has been drilled by fax, to understand a number of AT commands, it suddenly became interested.These days stayed up nights, read a lot e instruments, finally has some progress, another VoiceAngel sister faxCharmer (an at command to write voice fax control) are also being prepared, believe may soon be able to. All along, I'm very grateful to the selfless contributions of online friends for free with a lot of useful information, so this is something that I dare not take out an exclusive, shared with everyone.

Written in 2002-12. .

AT command is the computer are sent to the cat command. Computer to the cat, the cat issue a command that returns a string that represents the command to execute. If you accept cat can give a response to the information is usually ASCII characters OK, sometimes one of the other, such as the cat sent "\r" ATD phone numbers, wait until dial-up is complete, CONNECT the cat returns. If it is not able to accept cat give an error message, ERROR. Computer dialogue between cats and are relying on the original string. The computer is sent to the cat command. The cat has issued a string of three types of computer, one: for the command response, usually immediately after receiving the command response. Second: Message character. Cats not only docile and loves to play the report, the general sign of trouble, it is necessary to tipping off the computer. For example every time when the Ring, the first character DLE (DLE than three characters, but a character of the code, this character is expressed as 16 hexadecimal 0x10), followed by an 'R'. . There are calls made when a character shows 0x0d, followed by a 0x0a, then that is the date and number caller ID.Monitoring the phone keypad, a DLE, followed by '/', press the ' ~ '.. third: recording when the recorded data is sent to the computer. When sending data, if you encounter a one byte of data just DLE, in its subsequent fill a DLE, computer in the reception, if you find that two consecutive DLE will drop one, leaving one, if you find a separate DLE may be the message characters.

Cats can work in data mode, voice mode or fax mode, the corresponding AT command is divided into conventional command, voice command, fax orders. Standing Orders are a number of different models under a common command, such as dial (atd phone number \ r) Response (ata \ r), there are initialization order, etc.. Please refer to the appropriate command at http://www. . Gkong. .com / MODEM / index_modem. .Htm, there is also a more detailed e-man, too long, there is no time for translation, which describes all voicecommandguide quite detailed, but your cat at commands may be slightly different.

Cats may be different at different orders. In the windows system, each cat driver inf file have identifiable at command, for example, the following is from the gold mesh Pa fm3711 cat xp driver in the next excerpt. Can see, this is to tell windows to perform various operations corresponding to the at command. For example, when the cat must initialize the implementation of "AT & FE0V1S0 = 0 & C1 & D2 + MR = 2; + DR = 1; + ER = 1; W2..


" 。.

Here is the golden net Pa voice cat driver files (.. Inf) as part of the installation drive, these messages were written inside the registry. .

HKR, Init, 1,, "AT。.


. ".


HKR, Init, 2,, "AT&FE0V1S0=0&C1&D2+MR=2;+DR=1;+ER=1;W2。.


. ".


HKR, Monitor, 1,, "ATS0=0。.


. ".


HKR, Monitor, 2,, "None"。.


HKR, Hangup, 1,, "ATH..


"。.


HKR, Answer, 1,, "ATA..


"。.


HKR,, Reset,, "ATZ..


"。.


.

HKR, StartPlay, 1,, "at + vtx..


"。.


HKR, StopPlay, 1,, "None". .


HKR, StopPlay, 2,, "NoResponse"。.


HKR, StartRecord, 1,, "at + vrx..


"。.


HKR, StopRecord, 1,, "None". .


HKR, StopRecord, 2,, "NoResponse"。.


HKR,, TerminateRecord,, "..


"。.


HKR,, TerminatePlay,, "..


"。.


HKR,, AbortPlay,, "..


"。.


HKR, LineSetPlayFormat, 1,, "at + vsm = 130,8000,0,0..


"。.


HKR, LineSetRecordFormat, 1,, "at + vsm = 130,8000,0,0..


"。.


HKR, VoiceToDataAnswer, 1,, "at + fclass = 0..


"。.


HKR, VoiceToDataAnswer, 2,, "ata..


"。.


The following is response time to the implementation of the command. Note that in speech mode, at + vls = 1. .


"You can answer, the ata is not required.


HKR, VoiceAnswer, 1,, "at + fclass = 8..


"。.


HKR, VoiceAnswer, 2,, "at + vtd = 10..


"。.


HKR, VoiceAnswer, 3,, "at + vsm = 130,8000,0,0..


"Set the voice data compression format.


HKR, VoiceAnswer, 4,, "at + vit = 6..


"。.


HKR, VoiceAnswer, 5,, "at + vls = 1..


"。.


HKR, VoiceDialNumberSetup, 1,, "at + fclass = 8..


"。.


HKR, VoiceDialNumberSetup, 2,, "at + vls = 0..


"。.


HKR, VoiceDialNumberSetup, 3,, "at + vrn = 0..


"。.


HKR, VoiceDialNumberSetup, 4,, "at + vtd = 10..


"。.


HKR, VoiceDialNumberSetup, 5,, "at + vsm = 130,8000,0,0..


"。.


HKR, VoiceDialNumberSetup, 6,, "at + vit = 6..


"。.


Here is the cat's response to the string sent to the computer. .


HKR, Responses, "0。.


", 1, 00, 00, 00,00,00,00, 00,00,00,00; OK..


HKR, Responses, "1。.


", 1, 02, 00, 00,00,00,00, 00,00,00,00; CONNECT..


HKR, Responses, "2。.


", 1, 08, 00, 00,00,00,00, 00,00,00,00; RING..


HKR, Responses, "3。.


", 1, 04, 00, 00,00,00,00, 00,00,00,00; NO CARRIER..


HKR, Responses, "4。.


", 1, 03, 00, 00,00,00,00, 00,00,00,00; ERROR..


HKR, Responses, "5。.


", 1, 02, 00, B0, 04,00,00, 00,00,00,00; CONNECT 1200..


HKR, Responses, "6。.


", 1, 05, 00, 00,00,00,00, 00,00,00,00; NO DIALTONE..


HKR, Responses, "7。.


", 1, 06, 00, 00,00,00,00, 00,00,00,00; BUSY..


HKR, Responses, "8。.


", 1, 07, 00, 00,00,00,00, 00,00,00,00; NO ANSWER..

For more information on drivers, please see the complete inf file.

After the driver installation, this information was loaded into the registry into the well. Different operating systems, the registry structure is different. In win9x, in LOCAL_MACHINE \ system \ CurrentControlSet \ services \ class \ modem, each cat corresponds to a subdirectory, such as the first cat is a 0000 catalog, the second is 0001. .Open Directory, you can see many subdirectories and entries, each subdirectory corresponding to an action, such as dialing, answering, and directory is specific to the at command. Items described in the cat some of the properties, such as Model one is the cat's driver description, matchingDeviceID corresponds PCI \ xxxx, in the LOCAL_MACHINE \ system \ CurrentControlSet \ services \ enum can be found under this item can be found inside and the serial port information, such as cats corresponding serial number. .

In XP, LOCAL_MACHINE\system\CurrentControlSet\services\modem 0, can be found under 1. items represent the various cat. Open one of the items whose value is the PCI\XXXX format. You can find in LOCAL_MACHINE\system\ControlSet001\enum\ and value in the corresponding item. Sub-item to open it, which is a Driver, in the LOCAL_MACHINE \ system \ ControlSet001 \ control \ class key can be found in the value of the items named Deriver, many of the following items, such as Answer, VoiceAnswer, StartPlay, StartRecord, EnableCallerID, Hangup, etc., open one of, the content can be found inside the cat to perform an action when the need to use the AT command。 Such as Rockwell chip cat EnableCallerID inside content is often.

Name Type Data. .

(Default) REG_SZ (value not set) 。.

1 REG_SZ at + vcid = 1. .


Sometimes, the cat's driver not installed correctly, there may be missing some items, such as the Gold network Blaster PF-X01 (chip Conexant 11242) in Win98 installation without EnableCallerID, so that the TAPI mode, cat no caller ID feature. To resolve this problem, you can manually add this into the registry inside.

In winxp, the system will automatically install the drivers for the cat to remove the system to automatically install the driver, scan for hardware changes, the system will automatically install the system still comes with the driver.If you want to use a manufacturer-supplied drivers, found in the device management inside cat, and then double-click the locate driver page, click Update driver, an updated driver Wizard appears, you have two options, the first is installed automatically, the second is from a list or specific location, select a second point next, there are two options, the first is to select from the following location in the search for the driver, the second is not a search, select the driver directly. The second choice, click Next, and then point the installation from the disk, navigate to the location of the driver store, you can.

The following is a golden net Pa PF-X01 installation information in the registry. . Description of the project content (gold mesh Pa pf-x01 in case) Answer the call to fax mode Answer the other ATA. .


EnableCallerID opened the caller ID feature, usually used when opening the line. at+vcid=1。.


GenerateDigit analog telephone lines in the press button. . At + vts =. .


ATH HangUp hang up the phone.


Init initialize the line AT & FE0V1S0 = 0 & C1 & D2 + MR = 2; + DR = 1; + ER = 1; W2. .


LineSetPlayFormat used to set the playback voice format at + vsm = 130, 8000, 0, 0.


LineSetRecordFormat used to set the recording audio format at + vsm = 130,8000,0,0. .


Setting basic parameter is set to close the headset at + SpeakerPhoneDisable vsp = 0.


SpeakerPhoneEnable open headset at + a8e = 6,5,21,0; + vsp = 1. .


at+vgs=130;+vgm=120。.


SpeakerPhoneMute headset mute at + vsp = 1. .


at+vls=16。.


SpeakerPhoneUnmute Close headset mute at + vsp = 1. .


at+vls=17。.


StartPlay start playing voice at + vtx. .


StartRecord start recording at + vrx.


VoiceAnswer voice mode response at + fclass = 8. .


at+vtd=10。.


at + vsm = 130,8000,0,0. .


at+vit=6。.


at + vls = 1. .


VoiceDialNumberSetup voice mode dial settings at. ..


at + fclass = 8. .


at+vls=0。.


at + vrn = 0. .


at+vtd=10。.


at + vsm = 130,8000,0,0. .


at+vit=6。.


WaveDriver voice-driven information. .

。.

Attachment:. .


AT command.


Use punctuation can command more readable. Parentheses, hyphens and the space character will be ignored. Dial on the command line if an illegal character, that character and the subsequent content will be ignored. Modem allows dial-up command length is 36 characters. .


Parameter: 0-9 A B C D * # P R T L! @ W , ; ^ S=n 。.


0-9 DTMF symbols 0 to 9. .


A-D DTMF symbols A, B, c and D. In some countries not to use these symbols.


* "Star" (only for audio dial-up). .


# "#" Sign (only for audio dial-up).


J-based call has the highest execution rate in the available consultation under the MNP10 link (optional). .


K to make this call MNP10 link consultations supply level adjustable (optional).


L redial the last dialed number. .


P pulse dialing.


T two-tone dialing. .


R inverse is called. Allows modems to answer a call can only be used as a way to launch using the modem, it must be used as a command line, enter the last character.


! To the modem in accordance with the provisions of S29 of the value of hang time and then pick. .


@ The modem to wait 5 seconds of silence answer.


w according to the time specified in register S7, the wait for dial tone before dialing. .


In the dial-up process, in accordance with the registers the S8, pause.


; Return to command state after dialing. .


^ Open call tone.


() Is ignored for formatted number string. .


-Neglected, is used to format the number string.


Neglected for the format number string. .


S = n command with AT&Zn n at present address number dial.


ATE * command to respond to the default: 1. .


ATE0 off command response.


ATE1 open a command response. .


ATHn pick-up machine control default: 0.


ATH0 to make the modem hang up. .


ATH1 when the modem is on-hook State, the modem off-hook to return a response OK, pending further order.


ATIn identification. .


I0 report product code.


I1 Report pre-computed ROM checksum. .


I2 to calculate checksum ROM checksum comparison, return "OK" or "ERROR" result codes.


I3 Report firmware correction. .


OEM-defined I4 report identification string.


I5 Report the country code parameter. .


I6 report firmware revision.


I7 Report modem data pump type. .


ATLn * speaker volume default: 2.


ATL0 bass speaker volume. .


ATL1 speaker volume down.


ATL2 the speaker volume. .


ATL3 speaker volume up.


ATMn * Speaker control default: 1. .


ATM0 speaker off.


ATM1 speaker in the call setup stage to shake hands open to detect the carrier from remote modem after the close. .


ATM2 speakers continue to open.


During the open in response ATM3 speaker. When detected from the remote modem and dial-up when the carrier shut down. .


ATNn * modulation handshake default: 1.


ATN0 required to connect the modem S37 selection rate, if S37 = 0, the connection speed must be issued on an AT command to match the rate. If the chosen rate can achieve more than one communication standard (such as Bell212A or ITU-T V. .22 Rate at 1200bps) modems also refer to the ATB command options. .


When you use both sides ATN1 allows modems are supported at any rate the handshake to automatic detection. In this way, the ATB command is ignored, the modem connects only ITU-T.


Enter data in the current state of ATOn default: 0. .


ATO0 allows a modem from a command in the current state of return data directly online, without the balance automatically.


ATO1 to the modem from the command to return data in the current state of the state, through the automatic balance. .


ATP * set pulse dialing is the default.


ATQn * result code shows the default: 0. .


ATQ0 modem to send result codes DTE.


ATQ1 modem to DTE sends the results against code. .


See modem result codes for a detailed description of the section.


ATSn S register n to set the default register. .


ATSn? Read the S registers.


Reading the contents of S register, all the S registers can be read. .


ATSn = x write S registers.


Will write to the specified x value S register n. .


ATT * set audio dialing is the default.


ATVn * end of the code type (message control) default: 1. .


ATV0 send short (numeric) result code.


ATV1 send long type (character) result code. .


ATWn * consultative process report default: 0.


ATW0 not report the process of correcting the call. .


ATW1 report error correcting call process.


ATW2 do not report the process of correcting the call, CONNECT xxxx instructions DCE rate. .


ATXn * extended result code default: 4.


Ignore the dial tone and busy tone ATX0 modem. When the call connection is established by the blind, to send CONNECT message. .


ATX1 modems ignore dial tone and a busy signal. When you establish a connection by blind dialing, CONNECT XXXX reflects the bit rate.


ATX2 modem ignore busy tone, but to wait for dial tone before dialing, if not detected within 5 seconds of dial tone, then send a NO DIAL TONE message sent after the CONNECT xxxx connection is reflected in bit rate. .


ATX3 modems ignore dial tone, busy tone, if detected, send BUSY information, when the dial-up connection for the blind, CONNECT XXXX reflects the bit rate.


ATX4 5 seconds if dial tone is not detected, NO DIAL TONE message to send, detect busy tone, send a BUSY message. After a connection is reflected in bit rate to send CONNECT XXXX. .


ATYn * control long interval clearance received default: 0.


ATY0 not allowed to take a long interval split. .


ATY1 received clearance to allow long interval.


ATZn reset default: 0. .


Moved from user programme provides dynamic configuration.


ATZ0 soft reset and re-transfer the user program 0. .


ATZ1 soft reset and reset the user scenario 1.


AT & An * handshake abnormal termination (optional) default: 1. .


When the handshake AT&A0 prohibits the user to terminate abnormally. When you dial or answer, the handshake will not be able to terminate abnormally, only the DTR signal decreases.


AT & A1 when the user can abort the handshake. . In DTE characters received, the response can be initiated and carried out at any time during the handshake abnormal termination. .


AT&Cn * RS232-C DCD setting default: 1.


AT & C0 DCD is ON, regardless of the data from the remote modem carrier state why. .


AT&C1 DCD follows from remote modem data carrier status.


AT & Dn * RS232-C DTR set the default: 2. .


Determines the modem and from serial port DTR signal-related operations. Due to the track caused by the decline in the DTR operations in the following table lists:.


& D0 & D1 & D2 & D3. .


&Q0 NONE 2 3 4 。.


& Q1 1 2 3 4. .


&Q2 3 3 3 3 。.


& Q3 3 3 3 3. .


&Q4 1 2 3 4 。.


& Q5 NONE 2 3 4. .


&Q6 NONE 2 3 4 。.


A modem, disconnect and send the result code OK. .


2 If the status in the data, then enter the command, and send the result codes OK.


3, disconnect the modem and send the result code OK, DTR is OFF, do not automatically answer. .


4 modem perform a hot startup (that is, with the same commands ATZ).


AT & Fn Recall factory default setting: 0. .


& Recall as F0 V. reliable way of automatically .42bis factory default settings.


& F1 Recall automatic and reliable way as MNP5 factory default settings. .


& F2 recall as a DIRECT way to the factory default settings.


& F3 to re-call as a way of automatic and reliable way MNP10 factory default settings (optional). .


AT&Gn * set protection code default: 0.


AT & G0 unprotected audio. .


AT&G1 unprotected audio.


AT & G2 1800HZ sound protection. .


AT&Jn * phone plugs to select the default: 0.


Contains this command is based on compatibility considerations, there is no function. .


Do not operate any function AT&J0.


AT & J1 does not operate any function. .


AT&Kn * DTE/modem flow control default: 3.


AT & K0 close the flow control. .


AT&K3 use RTS/CTS flow control.


AT & K4 using XON / XOFF flow control. .


AT&K5 Use XON/XOFF flow control is transparent.


AT & K6 using the RTS / CTS and XON / XOFF flow control (as the default fax mode). .


AT&Ln * transmission line type default: 0.


AT & L0 dial-up line. .


AT&L1 second-line dedicated line (option).


AT & L2 four-wire line (optional). .


AT&Mn * means of communication.


And AT & Q0-3 the same. .


AT&Pn * dial pulse duty cycle: 0 by default.


AT & P0 39% 61% duty cycle @ 10PPS. .


AT&P1 33% 67% duty cycle @ 10PPS.


AT & P2 39% 61% duty cycle @ 20PPS. .


AT&P3 33% 67% duty cycle @ 20PPS.


AT & Qn * the default means of communication: 5. .


AT&Q0 select direct asynchronous operations.


AT & Q1 Select sync mode 1 operation. .


Select the synchronization mode II AT&Q2..


AT & Q3 Select sync mode 3 operation. .


AT&Q4 select automatic synchronization mode operation.


AT & Q5 select error correction mode. .


AT&Q6 select standard mode of the asynchronous operation.


AT & Rn * RS232-C RTS / CTS set the default: 0. .


AT&R0 RTS, CTS tracking local DTE sent ON by OFF RTS into S26 by registers to under 10 microseconds of latency in increments, CTS becomes ON.


AT & R1 Modem ignore RTS, unless the use of the AT & K3 command, CTS remains ON. .


AT&Sn * RS232-C DSR set default: 0.


AT & S0 DSR is always ON. .


AT&S1 DSR under EIA-232-C..


AT & Tn * testing and diagnosis default: 4. .


Testing can only be used in a non-error correction mode (standard or direct mode) of the asynchronous operation, in addition to the parameters of the 7 and 8, to abort the ongoing tests must first be struck out of character. If non-zero, the S18 test through the S18 set time automatically abort and displays OK.


AT & T0 termination of ongoing testing. .


AT&T1 start local analog loopback.


AT & T3 remote digital loopback in the local startup, if the connection is not established through, return ERROR. .


AT&T4 allows modems to respond from the distal end of the remote request digital loopback test.


AT & T5 refused to respond from the remote modem for remote digital loop-back test request. .


AT&T6 start remote digital loop-back test, if the connection is not, return ERROR.


T & T7 start the remote digital loop-back self-test, if the connection is not established through, return ERROR. .


AT&T8 start local analog loopback test.


AT & V to see the current configuration and user parameters. .


AT&V0 view current configuration, user scenarios and the stored phone number.


AT & V1 show the last time the data connection details. .


Store user preferences default AT&Wn: 0.


AT & W0 0 as a user storage. .


AT&W1 as user 1 store.


AT & Xn * Select Synchronous Clock Source default: 0. .


AT&X0 modems provide transmission clock, internal clock. AT&X1 DTE to provide transmission clock, external clock.


AT & X2 by the modem carrier signal from the access provided outside the transmission clock, the clock slave receiver. .


AT&Yn * indicates that the default user parameter default: 0.


After the hard reset option will use the user program. .


Select the user program 0 AT&Y0.


AT & Y1 select the user program 1. .


AT&Zn = x stored phone numbers (n = 0-3) default: 0.


Will be a 36 number phone number (x) stored in a designated phone number in the table (n), for later use dial-up (see the command ATDS = n). .


ATAn's largest MNP block size default: 2.


ATA0 set maximum block of 64 characters. .


ATA1 set maximum block is 128 characters.


ATA2 maximum block set to 192 characters. .


ATA3 set maximum block of 256 characters.


ATBn send interrupt signal (n = 1-9) default: 3. .


When non-MNP enter this command during a connection, the modem to remote modem solution for sending a break signal, interrupt signal length parameter to the value of n is 100 times (in milliseconds), the MNP mode, enter this command to the modem to remote modem to send a link note code PDU.


ATGn modem to modem flow control default: 0. .


ATG0 close flow control (XON/XOFF).


ATG1 open the flow control (XON / XOFF). .


ATJn DTE rate automatically adjusts the control default: 0.


ATJ0 close match line rates of DTE rate adjustment function. .


ATJ1 open match line rate of the DTE rate adjustment function.


ATKn interrupt control default: 5. .


During data transfers received from DTE interrupt signal, the modem responds.


ATK0, 2,4 modem access on-line command state without interruption of the signal sent to the remote. .


ATK1 modem buffer emptying terminals and sent to the remote modem. interrupt signals


ATK3 modem terminal buffer is not empty, but the interrupt signal to the remote modem. .


ATK5 modems send data that is sent along with the interrupt signal. Modem in on-line order status data transfer process, do the following.


ATK0, 1 modem buffer empty terminal to the remote modem to send interrupt signals. .


ATK2, 3 modems do not empty the buffer, but the remote modem send a break signal.


ATK4, 5 modem with the transmission of data in order to send interrupt signals in non-error correction mode, the interrupt signal received from the DTE, the modem do the following. .


ATK0, 1 modem clear Terminal buffers, and send to local DTE. interrupt signals


ATK2, 3 modems do not clear the buffer, but the interrupt signal to the local DTE. .


ATK4, 5 modem with the received data in order to send a break signal.


ATLn MNP block transfer control of the default: 0. .


ATL0 for MNP link connections using streaming mode.


ATL1 for MNP link connection using block mode. .


The default operation mode control ATNn: 3.


ATN0 speed cache mode selection criteria (no error correction). .


ATN1 select direct mode (the equivalent of M0, & Q0 &).


ATN2 reliable model selection, reliable modem connection failure will hang up. .


ATN3 select automatic reliable mode.


ATN4 Select LAPM error correction mode, LAPM error correction connection failure will hang up the modem. .


Select the error correction mode ATN5, MNP MNP error correcting connection failure will cause the modem hang-up.


ATVn single connection information by default: 0. .


ATV0 off one-way connection information.


ATV1 open the line connection information. .


AT% C * compression control default: 3.


AT% C0 Data compression AT% C1 close to open MNP5 data compression. .


Open V AT% C2. .42bis data compression.


AT% C3 open MNP5 and V. .42 Bis data compression. .


AT% En automatic on/off: 2 balanced default.


Control is to make the modem automatically monitor line quality and request balance (% E1) or deceleration when the bad line quality, line quality and good speed when the rise. .


AT% E0 off line quality monitoring and automatic balance.


AT% E1 open line quality monitor and auto-balance. .


AT% E2 open line quality monitor and automatically adjusts the rate of rise or fall.


AT% E3 open line quality monitor and auto-balance with quick hook. .


AT% L report receiver sensitivity.


Return the value of the received signal level to provide the following value. .


001 =-1dBm receive level.


002 =- 2dBm receiver level. .


: : 。.


043 =- 43dBm receiver level. .


AT% On select answer or call mode default: 1.


AT% O0 choice answer type model. .


AT% O1 select launch die.


AT% Rn choose to receive sensitivity (for green models) default: 0. .


AT%R0 -43dBm 。.


AT% R1-33dBm. .


Alternative: apply to dial-up line models, jumper JP2:-33dBM connection 1-2-43-2-3-pin connection.


AT% Q Line signal quality display. .


Returns the index of the eye diagram (EQM) value of the high byte, the representation of the bytes in the range 0 to 127, when this value is 70DC ± 10 (dependent on line rate) or greater, if you've already used AT% E1 command then the modem automatically balanced, the standard connection this number from 0 to 15. To 60 at poor connectivity.


AT # CIDn caller identification default: 0. .


AT # CID = 0 turns off the caller identification.


AT # CID = 1 to open DTE form of caller identification format. .


AT # CID = 2 open DTE unformatted forms of caller identification.


AT # CID? From the modem to restore the current caller identification method. .


AT#CID=? Returns the modem allows pattern list, table by commas.


AT-SDR = n Identification of ringing default: 0. .


AT-SDR = 0 allows any ring and RING "report".


AT-SDR = 1 allows one type of ring. .


AT-SDR = 2 allows two types of rings.


AT-SDR = 3 allows a, and two types of ring. .


AT-SDR = 4 allows three types of rings.


AT-SDR = 5 and 3 allow a type of ring. .


AT-SDR = 6 allows the second and third type of ring.


AT-SDR = 7 to allow one, two and three types of ring. .


Ring type ring time mode.


A ring for 2 seconds, stops for 4 seconds. .


2 ring 0. .8 seconds, stop 0. .4 seconds, ring 0.4 .8 seconds, stop sec..


3 ring 0. .4 S, stop 0. .2 Seconds, ring 0. .4 S, stop 0. .2 Seconds, ring 0. .8 Seconds, stop for 4 seconds. .


AT + MS * select lines modulations.


Command format is (336 model):. .


AT+MS=。.


<模式>,. .


<自动模式>,。.


<最小速率>,. .


<最大速率>The default is AT + MS = 11, 1, 300, 33600 (336 models).


Command format is (560 model):. .


AT+MS=。.


<模式>,. .


<自动模式>,。.


<最小速率>,. .


<最大速率>, 。.


,,. .


The default is AT + MS = 12, 1, 300, 56000, 33600 (560 models).


AT + MS? To include the selected option of DTE to send a message flow. .


AT+MS=? To include the option to send a stream of DTE.


Automatic mode option. .


0 turns off the automatic mode.


1 Open the automatic mode. .


Mode of modulation selection possible baud rate (bps).


<最小 波特率> <最大 波特率>0 V. .21 300. .


1 V。.22 1200 。.


2 V. .22 Bis 2400 or 1200. .


3 V。.23 1200 。.


9 V. .32 9600 or 4800. .


V 10. .32bis 14400, 12000, 9600, 7200 or 4800.


11. .


V。.34 33600,31200,28800,26400,24000,21600,19200, 16800,14400,12000, 。.


9600,7200,4800 or 2400. .


12.


V. .90 56000,54667,53333,52000,50667,49333,48000,46667,45333,42667,. .


41333 40000 38667 37333 36000 34667 33333 32000 30667 29333.


28000 (560 models available). .


56.


K56flex 56000,54000,52000,50000,48000,46000,44000,42000,40000,38000,. .


36000 34000 32000 (560 model applies).


64 Bell 103 300. .


69 Bell 212 1200 。.


Is an optional number, used to determine the code type, choice is:. .


0 = u-Law 1 = A-Law 。.


Note: ATZ command to reset a value of 0 (u-Law). .


Is an optional number, is used to configure a modem to send data to a "lost" signal or no signal "lost"; or to configure a receive data modem detected "missing" signal or not detected "missing" signal. Choices are:.


0 = send data modem signal generated is lost. Detection of missing data modem to receive digital signals. .


1 = send data modem does not produce the missing bit signal. Receive data modem does not detect the missing bit signal.


Note: ATZ command to reset the value of 0. .


Maxup_rate: connection rate of maximum value.

Should be on the phone can use it? :). .

public partial class Form1 : Form。.


(. .


public Form1()。.


(. .


InitializeComponent();。.


). .

private void Form1_Load(object sender, EventArgs e)。.


(. .

} 。.

delegate void del_ShowMsg (string msg);. .

private void serialPort1_DataReceived(object sender, System。.IO。.Ports。.SerialDataReceivedEventArgs e)。.


(. .


ReadAgain:。.


string txt = serialPort1. . ReadLine ();. .


if (txt != "")。.


(. .


this。.textBox1。.Invoke(new del_ShowMsg(ShowMsg), txt);。.


goto ReadAgain;. .


}。.


). .


private void ShowMsg(string msg)。.


(. .


textBox1。.Text = msg + Environment。.NewLine + textBox1。.Text;。.


). .

private void button1_Click(object sender, EventArgs e)。.


(. .


serialPort1。.Close();。.


label1. . Text = serialPort1. . IsOpen. . ToString ();. .

} 。.

private void button2_Click (object sender, EventArgs e). .


{。.


serialPort1. . NewLine = Environment. . NewLine;. .


serialPort1。.Open();。.


serialPort1. . WriteLine (textBox2.. Text.. Trim ());。 .


serialPort1。.WriteLine("at+vcid=1");。.


label1. . Text = serialPort1. . IsOpen. . ToString ();. .


button2。.Enabled = false; 。.

). .

}    。.

Here describes the use of various types of cat effect. In order to provide good general voice voice cat cat lovers, if you have used the voiceangel you use your results tell us, thank you! Site has also started selling cats to provide voice, the main function to provide a more comprehensive voice cat. Performance and price, please refer to the following list. .


In winxp, the system will automatically install the driver for the cat, removed system automatically after the installation of drivers, scan for hardware changes, the system will automatically install the system drivers. To use the manufacturer provided driver, in Device Manager to find the cat inside, and then double-click to locate the driver page and update the driver, Update Driver Wizard appears, there are two options, first one is automatically installed, the second is from a list or specific location of the installation, choose the second, next, then there are two options, first select from the following locations to search for drivers, and the second is not searching, select the driver. Choose the second option, click Next, and then point to install from the disk to find the driver kept the location, on it. .

A comparison of voice cat.

Voice cat trial transcripts. .

Configure voice cat, to enable the caller ID feature, and call forwarding features.


The contrast and voice voice cat cat-chip trial testing the operating system playback sound way to judge hook caller ID, busy tone detection to judge hook headset button button analog fax forwarding details of these effects is to use a good cat Tongfang Conexant 6793-17. .

Since.


Test xp, 9x, 2000 well have a good time with good accuracy. . Gvc (GVC) Conexant 6793-17. .

Since.


Test xp, 9x, 2000 well have a good time with good accuracy. . Golden Wave Cat Intel 5628 built-in self-test xp, 9x, 2000 good good good no no no accurate. . Kim net Pa PF-X01B-20 Conexant 11252 chip self-test xp, 9x, 2000 have accurate and timely good good no good. .The Gold network Blaster PF-X01A Conexant 11242 self-test 9x, 2000 xp, accurate and timely take well no good. The Gold network Blaster fm3711-11 conexant/rockwell 6793-11 a self-test, 2000 xp, have good 9x accurate and timely good good. Shida all-Jaguar 5600jb + (external) self-test xp, 98 no general no good and accurate test. . Shida Fei Xia 5600 v90 (external). .


Self little volume 98 has been good with accurate and timely.

Shida small boutique-type cyclone (internal) Intel (InterStar SmartPCI +2. .0 Modem) Self xp general general no no. . TP-LINK TM-EC5658 voice Cats (external) users recommend 200Osvr. .


Generally there are no good in general have a good general. Tenda tengda tem5629p ali5459 friends have not generally win2000 General test can not test does not test did not try. Shida Online Star 5600DB INTERSTAR PANTHER 5600 to provide win2000Pro good friends can not test well was not tested not tested not tested. . Legend Legend of the Condor II built-conexant / rockwell 6793-11 Self xp, 9x, 2000 are accurate and timely good good good. .Legend of the Condor ⅰ built-in ROCKWELL 6795 users provide an accurate in win98 properly play the voice sometimes does not detect a hang-up good try. Ambient mb5628 chip well. SmartLink SL1D00 XH good friends win98. Following the cat is not optimal.

Gold wave mass II (external) self-test no no no. . Shida small boutique-type cyclone (built) Intel self-test. . ESS2838 Self 9X (2000 results are poor) have a sore throat usually no no no examination is generally not good. . Tp-link fm56k v. .90 data/voice/fax modem self test volume small response slow no reluctance. Omni 56k color 1 users provide noise recording you can, stop to a few seconds.

Cat to use voice notes. .

Good voice cat.

Xin Network Alliance, gvc, Tsinghua Tongfang (built-in, Conexant 6793-17 chips). .

The Gold network Blaster fm3711-11 (built-in, Conexant 6793-11-on-chip) (legend of the Condor II built-in effects and the same).

Golden Network Pa PF-X01A, PF-X01B-20, PF-X01C (built-in, Conexant 11242-11 Conexant 11252-11 chip or chip). .

Start-function Jaguar 5600JB + external.

Kim Lang built cat Intel (R) Ham 5628 V. .92 Modem. .

Shida warriors 5600 v90 (external).

TP-LINK TM-EC5658 voice cat (external, users recommended). .

SmartLink SL1D00 XH (friends recommended).

Tenda Tenda tem5629p. .

Shida online star 5600DB.

ambient mb5628 chip. .

Legend of the Condor I-built-in CAT (rockwell/Conexant 6795 chip).

Shida small boutique-type cyclone intel chip (internal). .

Poor performance of voice cat.

All the 56k color 1 (User oral). .

Ess2838 chip (self test).

tp-link fm56k v. .90 Data / voice / fax modem (external) (self-test). .

Shida rapport (external).

Gold wave mass II (external cat) Xin Network Alliance, Tsinghua Tongfang, Gvc (internal). .

Chip conexant softk56 data, fax, voice, speakerphone chip (conexant/rockwell 6793-17).


This cat is a soft cat, features a very comprehensive, VoiceAngel all of the features embodied in the cat dripping on to do. .

Modem manufacturers:.


Xin Network Alliance. .


www。.modem。.com。.cn。.


If you need this cat, please contact us (05186230396). .

The Gold network Blaster fm3711-11 (built-in) http://www. .voiceangel. .com 2003 02-07 22: 42 hits: article 125 double-click mouse scroll.


Chip conexant softk56 data, fax, voice, speakerphone chipset (conexant / rockwell 6793-11). .


This cat is the pine Bay Company a soft cat, feature very comprehensive, the various features in VoiceAngel the cat on the fullest embodiment. However, it is a pity that the cats have been discontinued, almost can not find any trace of it. Voice is a little cat market sunset industry, FM3711 fade is the voice of a big cat market losses.


It was those gold mesh and gold PF-X01a Pa Pa PF-X01b function networks are also very good, but no headset. .

The Gold network Blaster PF-X01B-20, PF-X01A, PF-X01C http://www. .voiceangel. .com 2003 02-07 22: 45 hits: this article 129 double-click mouse scroll.


The specific chip type: Conexant 11252 chip. .


The various features of the cats are very good, the only drawback is that no headphones and MIC. ..


Description: There is a case, is that when you use the telephone dial Duifang the phone, you want to use the cat recording, the Answer method to use when Bi Xu, produce Connected incident, you can record or play on a. This feature can be achieved in this cat, in the following PF-X01A gold mesh and gold Pa Pa fm3711-11 on the network can be realized. Achieve this function must be at command mode, which OperateMode must be set to 1. .


The cat at the TAPI mode and command mode are very excellent, superior performance, is a good cat, is more common on the market today.


Shida all-Jaguar 5600JB + External http://www. . Voiceangel. . Com 2003 年 09 月 07 日 20:47 This article Hits: 82 double-click the mouse scroll. .


Start-function Jaguar 5600JB + external.


Drive appears as 5600JB + external modem. .


98. the test system.


Playback can be. .


Recording can be.


Caller ID no. .


No judgement on hook.


Headset: None. .


Detecting keystrokes: faster, there will be a slow leak key, click can be detected.


at command mode. .


You can dial the number, the answer, but the playback time only hear the noise, it's speech coding is adpcm format, and the current command in at voiceangel mode does not support this format.


Fax: not tested. .


General assessment: the cat's voice function well, faster response, you can handle the task of outbound notification class.

Kim Lang built cat Intel (R) Ham 5628 V. .92 Modem http://www. . Voiceangel. . Com 2003 年 09 月 07 日 20:53 This article Hits: 231 Double-click the mouse scroll. .


Jinlang built-in cat with rear drive appears as Intel (R) V Ham Modem 5628. .92.


Test System: 98 xp. .


Playback: good.


Recording: good. .


Key detection: good.


Caller ID: None. .


Judgment on-hook: none.


at command mode:. .


Voice function does not work.


Headsets: There are jack, but no function. .


General assessment: good voice capabilities, you can handle the task of outbound notification class, and does not require the caller function in response to the task.

Shida Fei Xia 5600 v90 (external) 2003 September 7. .


Shida warriors 5600 v90 external.


Drive appears as GeniuStar 5600 MODEM. .


98. the test system.


Playback sound small, there is noise. .


A good recording.


Caller ID has. .


Judge hang-up has.


Headset: Yes. .


Detecting keystrokes: good.


Play response speed: slower. .


At command mode.


Can call the number, response, detection button, but playback only hear the noise when it is adpcm audio coding format, currently voiceangel in at command mode does not support this format. .


Fax: not tested.


General Comments: The cat function is more comprehensive, but not very clear voice broadcast voice, headset functions well and can be used to automatically dial-up procedures. .


The cat has been discontinued.    。.

TP-LINK TM-EC5658 voice cat (external, users recommended). .


。.


Cat Model: TP-LINK TM-EC5658. .


Chip type: unknown, as is external. 、 。.


Operating system: WIN200O SERVER. .


Playback: General.


Recording: General. .


Detecting keystrokes: good.


Simulation button: General. .


Caller:.


Judgement hook: can not determine, very poor. .


Headset:.


Fax: Good. .


Received fax: good.


tenda Tenda tem5629p (users recommended). .


。.


Cat Model: TP-LINK TM-EC5658. .


Chip type: ali5459.


Operating system: win2000. .


Playback: General.


Recording: General. .


Caller:.


Judgement hook: there. .


Shida online star 5600DB (friends recommended).


. .


Cat's model: Shida online star 5600DB.


Chip Type: INTERSTAR PANTHER 5600. .


Operating system: win2000 Professional.


Playback: Good. .


Audio: OK.


Judgement hook: there. .


Ambient mb5628 chip (friends recommended).


. .


Playback: Yes.


Recording: good. .


Detecting keystrokes:.


Legend Legend of the Condor I (built-in, users recommended). .


Chip type: conexant\rockwell 6795.


Operating system: win98. .


Playback: Yes.


Recording: good. .


Caller:.


Test button: Yes. .


Judgment on hook: Yes, but you can't play the sound judgement.


Headset: Yes. .

SmartLink SL1D00 XH (friends recommended).


This is the voice of Sichuan, a Chow recommended cat, under the test in win98, voice, and key results are also available. Other functions not tested. .


Start small cyclone-quality intel chip (built-in).


Shida small boutique-type cyclone intel-chip. .


The driver is shown as InterStar SmartPCI + 2. .0 Modem.


Test system xp. .


Playback can be.


Recording can be. .


Caller ID no.


No judge hook. .


Headset: Yes, the dial-up, when hear the dial tone and go back to the tone, but cannot be used and the other on the phone.


Call out when not recording, it can not judge off hook. .


At command mode.


Can call the number, answer, but playback only hear the noise when its speech coding is adpcm format, currently voiceangel in at command mode does not support this format. .


Fax: not tested.


Headset: Same tapi mode. .


Overall: the cats can answer when implementing recording playback features, but without the caller ID feature.

All the 56k color 1 (User oral). .


Playback with the sound of air between La bares, recording, stop the recording when you take a few seconds of time.


enablespeakerphone does not work. .


Chip for Ess 2838 cat (self test).

98 tests, play voice hoarse, the effect of recording the general, no caller ID, can detect button. .


2000, XP driver problem, answer by fax answer.


tp-link fm56k v. .90 Data / voice / fax modem (external) (Self) July 2, 2003. .


It was used in winme.


Driver is shown as: CIRRUS 56K External MODEM. .


Answer after connected response faster. Digit trigger faster (more sensitive DigitDetected event).


Stop recording, to be stopped after 78 seconds, during which the state was crashed. Fall out of sound effects recorded normal. Playback only heard a little weak voice. .


The key is not detected, and other normal 8. Judge-hook and line, but managed to end the judgment, stop the recording is too slow, slow response times.


(With additional software amtapi measured over a voice recording, playback, test button, the effect is the same). .


Shida rapport (external) http://www. .voiceangel. .com 2003 07-Apr-09 20: 54 hits: Article 169 double-click mouse scroll.


Shida consonance external 5600FY MODEM. .


xp 。.


tapi mode. .


Playback:.


Recording: None. .


No reaction when dialing.


Response when the response by fax. .


Headset: none.


Caller ID: None. .


At command mode.


Playback: the problem of speech format, voiceangel is not yet supported. .


Audio: for voice modulation, voiceangel is currently not supported.


Caller: Yes. .


To dial, answer.


98. .


Tapi mode:.


Playback: General. .


Recording: Yes, stop responding slowly, there is a need for 3-4 seconds.


To dial, answer. .


Caller ID display: none.


After dialing no waveform display, so whether it hook. .


Key detection: good.


at command mode. .


Playback: PAL for voice, voiceangel is currently not supported.


Recording: standard issue for voice, voiceangel is not yet supported. .


To dial, answer.


Caller: Yes. .


General assessment: this cat flashy, but in reality dysfunction. not recommended.


Gold wave mass II (external cat) http://www. . Voiceangel. . Com 2003 年 09 月 07 日 20:51 This article Clicks: 26 Double-click the mouse scroll. .


Jinlang mass II external cat.


Test system 98. .


After installing the drivers of the cat, looking for the cat's voice driven, location of the driver to the phonological driver cannot be found, and then delete the reload, the system automatically installed.


Driver, no audio driver. . No voice capabilities. . The implementation of the phone and hear the response the other fax sound. .


General assessment: the cat's voice feature is poor, it is not recommended that you use.

In HyperTerminal, using AT commands to make the following settings:. .

1, at + vcid = 1 (return OK).

2, at + fclass = 8 (enter voice mode). .

3, at + vcid? (back to 001).

4, at + fclass? (Back to 8). .

Next, I use another telephone call comes in, discovers only > R > R > R such words, is not my Modem does not support the caller ID feature??? but I used at + fclass = (0, 1, 8), should support the voice mode, active programs, now just to prove my Modem support does not support the caller on the line, the moderators and other seemingly pointing it out. Thank you ... ....

You can also try setting the modem into the United States the country. In the Device Manager find modem, right click, then Properties, set in the Advanced settings. .


NZN-further sales of certificate of deposit operations said.


I. Introduction: NZN Invoicing management software is a commodity purchase, sales, inventory, safety green software. Simple interface shown in Figure 1-1:. .


Figure 1-1.


The initial state of the system, such as 1-1 map, including the operation of the main menu on the left control panel and interface today. .


Description: today's interface including today reminded, related returns, navigation graphics, tutorials.


Second, the system installation. .


III. basic equipment reset: resets the basic equipment for the basic information page, user permission and role plays placement rules.


3. .1 Basic information input. .


Basic information includes: goods, goods category, user, role, measurement unit, to come to the next unit, unit category, contact person, contact category, Department,. pass.


Description: The basic information input in the initial process, to put it, recommend the following order: the role of departments → → Users → → Storage units → Category → contact → contact business unit to business unit to the category → → → commodity goods . .


3. .1 .1. goods.


Entry of goods, the operation path:. .


1, operation, main single-basic information-goods.


2, on the left Control Panel - goods - goods. .


3. navigation graphics-commonly used shortcuts-goods.


These three operations can open the path to a blank form of goods, such as the 3-1-1 plan. .


3-1-1 of the graphics.


Goods can be a blank new window, save, save new, delete, refresh, search, sort, move up, down editing functions. .


Basic information about the goods into the recorder: include unify, Helsingborg, Helsingborg, English goods category, supplier, detailed description, measurement unit, specification, from sources, batch release Mo subscription price, sales price, Merton recognized as 儲 days, beauty treatment, will be projected amount, will be projected amount, photography like position taken image.


Description:. .


1. this system of unify to contribute in a material goods may consist of a unique, i.e. different category of goods should not be the same unify;.


2 form entry of goods in advance of the commodity when, between units, measurement unit first input;. .


3, will be equal to the amount projected further projected order list will have to purchase digital content, will be projected amount is equal to the sales order list will amount to sales;.


4, camera to take map This is a special feature that can take pictures for the goods, it would be better placed to identify management products. .


Goods pass-design: deposit.


Goods inventory details:. .


3. .1 .2 goods. ' category.


3. .1. .3 Users. .


3. .4 .1...


3. .1. .5 Units of measurement. .


3. come to .6 .1. Unit.


3. .1. .7 Between unit classes. .


3. .1. .8 contact person.


3. .1. .9 Contacts category. .


3. .1. .10 Department.


3. .1. .11 Warehouse. .


IV. the role and permission.


4. .1 User. .


4. .2 role.


5, the procurement system. .


6. pass system.


7, marketing system. .


8. should pay for your application.


9, alarm system. .


10. return of the system.


11, system maintenance. .

For example, the backup database using SQL-DMO objects to c:\my documents such as file paths, you will get an error, because the path is wrong that SQL-DMO as c:\my, it puts a space when a carriage return, in this case, use single quotes to enclose the path in double quotation marks are not, finally found a way is to use the brackets, actually you can!.

For example: [c: \ my documents \ backup. . Db] backup success! . .

Release date: 2007. .7. .6 author: Anytao.

? 2007 Anytao. . Com, original works, posting, please indicate the author and source. .

This article describes the following: passed by value and by reference to deep on ref and out parameters for the application of the comparison.


Connected to the article continues, 『11th back: Puzzles --- transmission parameters of art (at)』. .


4. .2 references a type parameter to be passed by value.

When passing a reference type parameter, the transmission and operation is a reference point to the object, which means that methods of operation can change the original object, but worth considering is the reference or pointer itself is passed by value. Therefore, we must clearly understand this the following two fundamental issues: a reference type parameters passed by value and by reference to the difference between passing? string type as a special reference type passed by value in the performance of the particularity of the time, how to explain? . .

First, we start from the basic understanding for reference-type parameters passed by value, the essence of simple object passed as a parameter, you are performing a copy of the object address, the operation is the copy of the address. This in essence and value type parameters passed by value are the same, are passed by value. Different is the "value of a value type as a type instance", while reference types "value" as the locality of reference. Therefore, if the parameter is a reference type, the caller code, you can change the reference point, allowing the original object to the changes, as shown in this example:.


Reference type parameters passed by value. .


// FileName : Anytao。.net。.My_Must_net。.


/ / Description: The. . NET what you should know of arguments. .


// Release : 2007/07/01 1。.0。.


/ / Copyright: (C) 2007 Anytao. . Com http://www. . Anytao. . Com. .


using System;。.


namespace Anytao. . Net. . My_Must_net. .


{。.


class Args. .


{。.


public static void Main (). .


{。.


ArgsByRef abf = new ArgsByRef ();. .


AddRef(abf);。.


Console. . WriteLine (abf.. I);. .


}。.


private static void AddRef (ArgsByRef abf). .


{。.


abf. . I = 20;. .


Console。.WriteLine(abf。.i);。.


). .


}。.


class ArgsByRef. .


{。.


public int i = 10;. .


}。.


). .

Therefore, we can conclude as: passed by value are passed values in real terms, except that the value in value types and reference types are different: the parameter is a value type, the "value" as the instance itself, pass the instance to copy to the original instance; parameter is a reference type, the "value" as the object reference is passed, it copies the trackback will change the original object reference, which is both consistent conceptual distinction, understand the nature or the cause. On value types and reference types can refer to the concept of "Diba Hui: taste type value types and reference types --- (A) - Memory rational" "Di Jiuhui: taste type value types and reference types --- (in) - Rules of boundless, "" the 10th back to: taste type value types and reference types --- (B) - Application of the journey, "We believe that through the series of value types and reference types in three of the understanding, deepening of the parameters of confusion rehabilitate. .

Understanding a reference-type parameters passed by value, we need to introduce another parameter passing, is passed by reference, commonly referred to as a reference parameter. The essential difference between both summary: reference to a type parameter to be passed by value, pass the value of the parameter itself, that is, the object reference is passed by reference, not the value of the parameter itself, but rather the address parameter. If the argument is a value type is passed the address of a value type; if the parameter is a reference type, is passed the address of an object reference.

For more on the concept of reference parameters, we immediately started to discuss, but still the first analysis of the string type of specificity, how special where? . .

Discussions on the string, I conclude that the Ninth Circuit: taste the types---value types and reference types (in)-rules have boundless "has been discussed, namely the opening statements of the article history, on the basis of the above analysis, I think it would be better for the Ninth Circuit, doing to correct.

string itself a reference type, so the analysis can see from the article, for the form. .

static void ShowInfo(string aStr){。.} 。.

Transfer form, we can clearly know that it is passed by value, which is summarized in this reference type parameters passed by value. Therefore, the transfer is aStr value of the object, which is aStr reference pointer. Next we look at the following example to analyze why the string type specificity in the transmission and the time to show the cause? . .

// FileName : Anytao。.net。.My_Must_net。.


/ / Description: The. . NET what you should know of arguments. .


// Release : 2007/07/05 1。.0。.


/ / Copyright: (C) 2007 Anytao. . Com http://www. . Anytao. . Com. .


using System;。.


namespace Anytao. . Net. . My_Must_net. .


{。.


class how2str. .


{。.


static void Main (). .


{。.


string str = "Old String";. .


ChangeStr(str);。.


Console. . WriteLine (str);. .


}。.


static void ChangeStr (string aStr). .


{。.


aStr = "Changing String";. .


Console。.WriteLine(aStr);。.


). .


}。.


). .

Following the implementation of the above example procedure briefly analyze: first of all, the Old string str = "String" generate a new string object, such as graphical representation:.


And then do ChangeStr (aStr), which is a reference type parameters passed by value, we emphasize that there is a reference type passed a reference value, that is, address pointer; then call ChangeStr method, process aStr = "Changing String" completed Following the operation, the first in an address to generate a new string object, the new object's value is "Changing String", referenced address 0x06 assigned to parameters aStr, thus changing aStr the point, but did not change the original method as str reference address, the implementation process can be expressed as:。.


Therefore the implementation of the results can imagine, we can find from the analysis process as a string reference type passed by value in the process, and other reference type is the same.If you need complete ChangeStr () calls, change the value of the original str, you must use the ref or out modifiers, passed by reference to, then Changing String aStr = "change" is a reference to str, str is changed to a specific analysis of hope through the next pass-by-reference, you can discover their own analysis.

4. .3 Passed by reference to the ref and out. .

Whether it is a value type or a reference type that must be passed by reference ref or out keywords to modify its rules are: method definition and method calls must be displayed using the ref or out, otherwise it will cause a compilation error; CRL allowed through out or ref parameter to an overloaded method, for example:.

/ / FileName: Anytao. . Net. . My_Must_net. .


// Description : The 。.NET what you should know of arguments。.


/ / Release: 2007/07/03 1. .0. .


// Copyright : (C)2007 Anytao。.com http://www。.anytao。.com。.


using System;. .


namespace Anytao。.net。.My_Must_net。._11_Args。.


(. .


class TestRefAndOut。.


(. .


static void ShowInfo(string str)。.


(. .


Console。.WriteLine(str);。.


). .


static void ShowInfo(ref string str)。.


(. .


Console。.WriteLine(str);。.


). .


}。.


). .

Of course, passed by reference, regardless of the parameter is a value type or reference type, the nature are the same, that is: REF and out keywords will tell the compiler that the method is passed a parameter address instead of the parameter itself. Understanding this point is passed by reference, so depending on the nature of the nature of the conclusions we can draw the following more clear explanation: regardless of the parameter itself is a value type or reference type, passed by reference, the parameter is passed, the address of the instance. If the parameter is a value type, according to reference pass, the pass is the value of a reference type variable, so in effect, similar to the reference type parameters passed by value approach, and its essence can be analyzed as follows: value types passed by reference method realized the value type parameter is an instance of direct manipulation, methods for the instance of the caller to allocate memory, which is called method of operation of the memory, which is a value type of address; and reference type parameters passed by value approach, is achieved reference type of "value" reference pointer operation. For example:. .

// FileName : Anytao。.net。.My_Must_net。.


/ / Description: The. . NET what you should know of arguments. .


// Release : 2007/07/06 1。.0。.


/ / Copyright: (C) 2007 Anytao. . Com http://www. . Anytao. . Com. .


using System;。.


namespace Anytao. . Net. . My_Must_net. .


{。.


class TestArgs. .


{。.


static void Main (string [] args). .


{。.


int i = 100;. .


string str = "One";。.


ChangeByValue (ref i);. .


ChangeByRef(ref str);。.


Console. . WriteLine (i);. .


Console。.WriteLine(str);。.


). .


static void ChangeByValue(ref int iVlaue)。.


(. .


iVlaue = 200;。.


). .


static void ChangeByRef(ref string sValue)。.


(. .


sValue = "One more。.";。.


). .


}。.


). .

If the parameter is a reference type is passed by reference, the reference is passed by reference instead of the reference itself, similar to the concept of pointers. Example you need only to pass the above string example ChangeStr plus the ref modifier.

Here we further on the difference between ref and out to do in order to explain clearly expounded on the basic essence of the host passed by reference, can be summarized as: the same point: from the CRL perspective, ref and out are examples of the compiler to pass pointer, the performance behavior is the same. The best proof of the example is, CRL allows to achieve the ref and out method overloading, but it does not allow distinction between ref and out through the approach to achieve overload, so from a compilation point of view, either ref or out, compiled after code is identical. For example:. .

// FileName : Anytao。.net。.My_Must_net。.


/ / Description: The. . NET what you should know of arguments. .


// Release : 2007/07/03 1。.0。.


/ / Copyright: (C) 2007 Anytao. . Com http://www. . Anytao. . Com. .


using System;。.


namespace Anytao. . Net. . My_Must_net. . _11_Args. .


{。.


class TestRefAndOut. .


{。.


static void ShowInfo (string str). .


{。.


Console. . WriteLine (str);. .


}。.


static void ShowInfo (ref string str). .


{。.


Console. . WriteLine (str);. .


}。.


static void ShowInfo (out string str). .


{。.


str = "Hello, anytao 。.";。 .


Console。.WriteLine(str);。.


). .


}。.


). .

The compiler will prompt: "ShowInfo" can not be defined only on ref and out on differentiated overloaded methods. Different points: use a different mechanism. Ref parameters requires prior to delivery, you must first display the initialization, but you do not need to out. In other words, use a ref parameter must be an actual object, not to point to null using out parameter can accept a pointer to the null object, and then in the calling method must be completed within the entity object.

5. . Conclusion. .

Completed on value types and reference types, the accumulation of knowledge, on the basis of this paper hope that through the in-depth exposition to further share parameter passing, layer upon layer of art the veil of doubt. From the perspective of problems, parameter passing of mistaken in fact deeply rooted and on value types and reference types, so understanding the essence of the completed type, and then enter the labyrinth of the parameter is passed, we will be inhibited. I think this kind of problem is the way we pursue issues, in-depth .NET senior entering. Palace is not open to this choice.

Release Date: 2007. .7. .6 Of: Anytao. .

? 2007 Anytao. .com, original works posted please specify the author and source.

This article describes the following: pass by value and by reference to pass on the ref and out of deep application of more parameters. .


1. In the introduction.

Connected to the back, "Di Jiuhui: taste type value types and reference types --- (middle) - Rules boundless", the value types and reference types on the discussions, including on the type of the parameter string examples and explanations, causing Park Friends concern and discussion, can be described as a ripple. Taught by the head assembly of the deep correction, this concept has been quite a better understanding of the fact that I was wrong, my friends here to apologize, and thank everyone involved, especially the tireless head assembly phase reported. .

Therefore, this article is to clarify the point of view, I had misunderstood a minefield for in-depth discussion and analysis, and hope that through my a little bit of effort and discussion at least on the following questions can have clear concepts: what is passed by value? what is passed by reference? passed by reference and pass by reference type parameters? ref and out are passed by reference comparison and application in? param passed in parameter modifier in do?.

2. . Parameter Foundations. .

Simple, the parameters for the different methods of data transfer, exchange of information. The author of Thinking in Java have been saying everything as an object. . .NET language, everything at the end of the abstract in the class package, so the parameter is typically used for data transfer between method. For example, a typical Main entry function is a string array parameter, args command line arguments of a function. Usually the way in accordance with the call parameters can be divided into: parameters and arguments. Parameters are the parameters of the called method, and arguments is calling the method parameters. For example:. .

using System;。.


public class Arguments. .


{。.


public static void Main (string [] args). .


{。.


string myString = "This is your argument 。.";。 .


//MyString is the actual parameters.


ShowString (myString);. .


}。.


private void ShowString (string astr). .


{。.


Console. . WriteLine (astr);. .


}。.


). .

It can be concluded from the above example, the following basic syntax on parameter: parameter and argument must be of type, number and order of the corresponding matches; parameter can be null; resolve Main (string [] args), the Main function of the parameter can be null or a string array class, whose role is to accept command line parameters, such as in the command line when you run the program, provides input args command line parameter. In addition, it is worth mentioning that, although the CRL support parameter default values, but C # can not set the parameters in the default values, which to me is very depressing, I do not know why? But you can override to achieve in disguise, as follows:. .

static void JudgeKind(string name, string kind)。.


(. .


Console。.WriteLine("{0} is a {1}", name, kind);。.


). .


static void JudgeKind(string name)。.


(. .


//Pseudo code.


if (name is person). .


{。.


Console. . WriteLine (name, "People");. .


}。.


). .

This approach can be extended, you can achieve more than one default parameters, however, to be honest some superfluous, inflexible, of sorts.

3. . Pass basis. .

Next, we discuss the example above, the focus will be the basis of the arguments passed to account for the puzzle has one parameter of the meanwhile the evolutionary process. Our basic concepts in the form of a list of these basic concepts, first mix a face, on the formal and actual parameter, the parameter defaults to the concept of accountability does not do more, parameter passing is the core of this article was to a large amount of ink to elaborate. So the next concept, we'll do a simple introduction of not spending a great deal of energy to discuss, mainly including:.

3. .1 Generic type parameter. .

Generic type parameters, can be static, such as MyGeneric.


; Also be dynamic, then it is actually a placeholder, such as MyGeneric. .


In T can be any type of variables at runtime dynamically replaced by the appropriate type arguments. A generic type parameter T is generally to be named at the beginning.

3. .2 Variable number of parameters. .

Generally speaking, the number of parameters are fixed, defined as the cluster type parameter can be a variable number of parameters, however. .NET offers a more flexible mechanism to achieve variable number of parameters, this is to use the param modifiers. Variable number of parameters of benefits is in some cases, you can easily provide for a number of uncertainties, such as calculating a weighted random numbers and arbitrary string, connection to a string, and so on. We take a simple example to expand on this issue are:.


On this basis, we will use the param keyword the number of parameters to achieve a variable to do with the rules and use of summary as: param keyword is essentially: param is the custom features ParamArrayAttribute the abbreviation (a detailed discussion on the custom properties, see the third Back to: historical disputes: properties and attributes), this feature is used to indicate the compiler about the implementation process can be simplified as: the compiler checks to the method call, the first call does not contain ParamArrayAttribute identities, if this method call on the implementation of , only if there is no method call that contains ParamArrayAttribute characteristics, and application methods to populate the elements in an array, the array as a parameter while calling the method body。 In short it is a compiler param is prompted for the parameter array package and a variable number of control by the compiler to finish, we can easily get from the above example. For example:.

static void ShowAgeSum (string team, params int [] ages) (. .). .

Essentially this:.

static void ShowAgeSum (string team, [ParamArrayAttribute] int [] ages) (. .) Param parameters must be modified one-dimensional array, in fact, is often the way to the cluster or any number of parameters to achieve more control, so the array is the simplest choice; param array of modified parameters, but is any type of .Therefore, if you want to receive any type of parameter, if set to an array of type object; param must be the last parameter list, and can only be used once.

4. . In-depth discussion, transmission art. .

By default, CRL's methods are passed by value, but in specific situations based on passed parameters is different and has different manifestations, we pass in an in-depth discussion of art, that is, different delivery and performance of the different circumstances to summary from split out parameter passing complex within the essence of performance. Thus begins a few problems to give a clear answer.

4. .1 Value type parameter passed by value. .

First, the argument is passed as the parameter type is passed by value and by reference, the default is passed by value. Pass by value mainly include the value type parameter to be passed by value and reference type parameters passed by value. The value type instance is passed an instance of a value type copies, so the called method is an instance of belonging to their own copy, and therefore does not affect the original instance of the calling method. For examples:.

/ / FileName: Anytao. . Net. . My_Must_net. .


// Description : The 。.NET what you should know of arguments。.


/ / Release: 2007/07/01 1. .0. .


// Copyright : (C)2007 Anytao。.com http://www。.anytao。.com。.


using System;. .


namespace Anytao。.net。.My_Must_net。.


(. .


class Args。.


(. .


public static void Main()。.


(. .


int a = 10;。.


Add (a);. .


Console。.WriteLine(a);。.


). .


private static void Add(int i)。.


(. .


i = i + 10;。.


Console. . WriteLine (i);. .


}。.


). .


}。.

Original address: http://www. . Cnblogs. .com/HeroBeast/archive/2007/07/06/808526. . Html. .

We estimate that most annoying a drug's health-related advertising is the "brain-Platinum", is too troublesome, the health care planners is Shi Yuzhu.


Today, read an article about Shi Yuzhu and "journey" of the article, feeling a lot. In the marketing field, Shi Yuzhu really is a very respected giant. .


July the journey on the game's profit after tax was $ 7 million, the income is $ 1000 per month. But the result should be the envy of every online company. It is also for the use of "white gold" of the brain game planning, stunning win. I believe that the "brain" Platinum "and" the journey ahead will become marketing case textbooks, I try to analyze and study.


"Melatonin rules" first: in-depth understanding of customer needs. .


Early in the planning of cerebral Platinum market positioning, Shi Yuzhu, Wang has served in many older people in the park with chat, these older people told him that he could not afford to buy health products, so can only wait for children, inspired by this, Shi Yuzhu brain Platinum purchasers as a gift for children. In the online game market, is hoping to do the same with Shi Yuzhu — by players learn to cut into the market quickly.


And marketing, the core of which is to locate and target user, failure cases, many reasons are there, do not understand the user, his or her own subjective will, how could meet user needs? The wrong direction, and success runs counter to the result of natural self-evident. .


The "brain" Platinum rule of article II: the subversion of the existing rules.


Generally speaking, online games are in beta testing began one month after the charges to the players, but "the journey" from the beginning of closed beta, players can spend money to buy props and equipment. In the "journey" where if you spend money on equipment and props can be bought, do not need to be upgraded to practice slowly. Prior to this, the market some of the online game players or plug-in through Dailian way to get good equipment and props, and Shi Yuzhu this way the plug-and Dailian earned the money himself. .


Blue ocean strategy, with emphasis on the strategic layout beyond tradition, traditional value curve drastic revolution, to subvert the market rules, the creation of new value Blue Ocean, and this basis is the first article, understanding user needs, you know, what to cut, what to reduce, increase, what to do this?.


In fact, it seems to me, including Shi Yuzhu of this approach is the integration of innovation, with certain conditions and market acceptance of sophisticated integration. Recent technology is also very popular "mashup", two different applications of technology convergence, principles connected. The basis of integrated innovation, is the market value or commercial value. .


The "brain" Platinum rule article III: kaolao your users.


"Journey" operational data, the highest 31. .9 Million players online at the same time, 3% of users contribute 70% of its profits. "86% of the users are never consumed. To allow users to spend a long time to play the game, Shi Yuzhu even at the cost of players who do not pay" subsidies ": 1-7 days per month, meet the conditions 60 and above with honor points the player can receive the corresponding one-time "wage", the highest monthly access to the equivalent of 100 of "wages.".


If we return to traditional business, we all know these days, it is necessary to send something to maintain customer relationships to cooperating for a long time. But today the Internet, it seems that these gradually we forget. Today we strongly advocate the web2 .0 concept advocated. user-driven, user participation, sharing of user, the user is the owner of the Web site, but we only consider allowing users to contribute, but seldom think of how your users kaolao. How our users, we should take good care of yourself.


Internet access for a long time, the more every day online, the more motivated to maintain their own Internet thinking, the more confused I started, but then I gradually found out desk, contact with the target population and the environment, my thoughts began to clear. Internet is an industry return to their roots, network with business thinking to do, in fact, I feel good and maintain the most simple business principles, in fact, we can do better, regardless of the user, customer, or the so-called trade patterns. .


Our IT people, in the face of it, a bit sad!.

Original address: http://www. . Cnblogs. .com/maxianghui/archive/2006/10/23/537108. . Html. .

Effect as shown in the following illustration, I should say okay, the menu is a bit primitive, but you can expand.


Because of limited capacity, failed to achieve the current TabPage to add some modification, not so beautiful professional software, but can make do with the ^ _ ^. .


Practices are as follows:.


First create a base class for MDI child window. .


MDI child forms.


using System;. .


using System。.Drawing;。.


using System. . Collections;. .


using System。.ComponentModel;。.


using System. . Windows. . Forms;. .



namespace ECHaierHR。.Common。.


(. .


/**//// 。.



/ / / MDIChild the summary. .


/// 。.



public class MDIChild: System. . Windows. . Forms. . Form. .


{。.


/**////. .



///Required designer variable.


/ / /. .



private System。.ComponentModel。.Container components = null;。.


private TabControl tabCtrl;. .


private TabPage tabPag;。.



public MDIChild (). .


{。.


/ /. .


//Windows form designer support is required.


/ /. .


InitializeComponent();。.



/ /. .


//TODO: add any after the InitializeComponent call constructor code.


/ /. .


}。.



/**////. .



///Clean up any resources being used.


/ / /. .



protected override void Dispose( bool disposing )。.


(. .


if( disposing )。.


(. .


if(components != null)。.


(. .


components。.Dispose();。.


). .


}。.


base. . Dispose (disposing);. .


}。.



Windows Form Designer generated code # region Windows Form Designer generated code. .


/**//// 。.



/ / / Designer support for the means - do not use the code editor. .


///The contents of this method.


/ / /. .



private void InitializeComponent()。.


(. .


//。.


/ / MDIChild. .


//。.


this. . AutoScaleBaseSize = new System. . Drawing. . Size (6, 14);. .


this。.ClientSize = new System。.Drawing。.Size(292, 273);。.


this. . Name = "MDIChild";. .


this。.Text = "MDIChild";。.


this. . Closing + = new System. . ComponentModel. . CancelEventHandler (this.. MDIChild_Closing);. .


this。.Activated += new System。.EventHandler(this。.MDIChild_Activated);。.



). .


#endregion。.



private void MDIChild_Closing (object sender, System.. ComponentModel.. CancelEventArgs e). .


{。.


/ / Destroy the corresponding Tabpage when closing MDI child form. .


if(this。.tabPag != null)。.


this. . TabPag. . Dispose ();. .



//If no Tabpage left。.


if (this.. tabCtrl! = null & &! tabCtrl.. HasChildren). .


{。.


tabCtrl. . Visible = false;. .


}。.


). .



private void MDIChild_Activated(object sender, System。.EventArgs e)。.


(. .


//Activate the corresponding Tabpage。.


tabCtrl. . SelectedTab = tabPag;. .



if (!tabCtrl。.Visible)。.


(. .


tabCtrl。.Visible = true;。.


). .


}。.



public TabControl TabCtrl. .


{。.


set. .


{。.


this. . TabCtrl = value;. .


}。.


). .


public TabPage TabPag。.


(. .


get。.


(. .


return this。.tabPag;。.


). .


set。.


(. .


this。.tabPag = value;。.


). .


}。.


). .


}。.


Then, in the MDI main form drag a TabControl, adding about the code. .


The MDI window associated with the TabControl and add a shortcut menu # region the MDI window associated with the TabControl and add on the shortcut menu.



private void tabControl1_SelectedIndexChanged (object sender, System.. EventArgs e). .


{。.


foreach (MDIChild childForm in this.. MdiChildren). .


{。.


/ / Check for its corresponding MDI child form. .


if (childForm。.TabPag。.Equals(tabControl1。.SelectedTab)) 。.


(. .


//Activate the MDI child form。.


childForm. . Select ();. .


}。.


). .


}。.


private void AddMDIChildToTabCtrl (MDIChild frmChild). .


{。.


frmChild. . MdiParent = this;. .



//child Form will now hold a reference value to the tab control。.


frmChild. . TabCtrl = tabControl1;. .



//Add a Tabpage and enables it。.


TabPage tp = new TabPage ();. .


tp。.Parent = tabControl1;。.


tp. . Text = frmChild. . Text;. .


tp。.Show();。.



/ / Child Form will now hold a reference value to a tabpage. .


frmChild。.TabPag = tp;。.


frmChild. . Show ();. .


}。.



private void ctxmnuClose_Click (object sender, System.. EventArgs e). .


{。.


if (this.. tabControl1.. Visible). .


{。.


MDIChild childForm = (MDIChild) this. . ActiveMdiChild;. .


childForm。.Close();。.


). .


}。.



private void tabControl1_MouseDown (object sender, System.. Windows.. Forms.. MouseEventArgs e). .


{。.


if (e.. Button == MouseButtons.. Right). .


{。.


Rectangle rct;. .


for(int i=0; i < tabcontrol1。.tabpages。.count; i++)。. tabcontrol1。.tabpages。.count;="">


(. .


rct = tabControl1。.GetTabRect(i);。.



if (rct.. Contains (e.. X, e.. Y)). .


{。.


/ / TabControl1. . SelectedIndex = i;. .


tabControl1。.SelectedTab = tabControl1。.TabPages[i];。.


break;. .


}。.


). .


}。.


). .



#endregion 。.

Finally, create a MDI window object, put it into the TabControl on the line. .


Employee emp = new Employee();。.


this. . AddMDIChildToTabCtrl (emp);. .

Posted on 2006-10-23 11: 39 mo re reading (601) comments (8) to edit the collection reference URL belongs to category: practical small cases.


Comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mu Feng. .

MDIChild all child Windows are required to inherit the base class for?.


If so, that universal bad. .


Since realized AddMDIChildToTabCtrl MDIChild, it is not necessary. In this function the MDIChild everything finished in. ..

Posted @ 2006-10-23 17:12 Reply more comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mo Meeting. .

@ MU Maple.


MDI child window and TabPage should associate, the subform should definitely TabPage properties and members. .


If you have any good method, pointing out how to complete the MDIChild AddMDIChildToTabCtrl something in.

Posted @ 2006-10-23 17:47 Reply more comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mu Feng. .

You may have some go.


TabPage is AddMDIChildTabCtrl you created. Then saved to the child window. .


-Why do you want to save? ".


*** No. .1 Closing child window to hide the corresponding Tab, and the child window activation activate the appropriate Tab. .


This is a prerequisite for the necessary in order to complete the following: how to enable child Windows and TabPage one-to-one, so as to be able to find.


The problem is solved: the. .


Private void main window _MdiChildActivate (object sender, EventArgs e).


(. .


Form f = this。.ActiveMdiChild;。.


if (f == null) return;. .


string key = f。.Handle。.ToString();。.


if (! tabControl1.. TabPages.. ContainsKey (key)). .


{。.


tabControl1. . TabPages. . Add (key, f.. Text);. .


f。.Closed += delegate(Object _sender, EventArgs _e) 。.


(TabControl1. . TabPages. . RemoveByKey ((_sender as Form).. Handle.. ToString ()););. .


}。.


tabControl1. . SelectedIndex = tabControl1. . TabPages. . IndexOfKey (key);. .



} 。.

Thus, as long as the main window to add a event handler (MdiChildActivate) function, you can do all the work. .


** Select Tab No., .2 to activate the appropriate child window.


The only event in tabControl1 the OnSelected deal on it. Then MdiChildren can find the corresponding sub-window:. .


void tabControl1_Selected(Object sender, TabControlEventArgs e)。.


(. .


if (e == null || e。.TabPage == null)。.


return;. .



string key = e。.TabPage。.Name;。.


foreach (Form f in this.. MdiChildren). .


{。.


if (f.. Handle.. ToString () == key). .


{。.


f. . BringToFront ();. .


break;。.


). .


}。.


). .

As for the child window is created, just like a normal child Windows to create exactly the same as no difference--as did not increase as Tab function.

------. .

Well, just add two event handlers, drag a TabControl (by the way, cleaned up the default created two TabPagaes). It so much. Other changes are not required.

Posted @ 2006-10-23 23:06 Reply more comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mu Feng. .

The above possible key.


1. . Each window has a Handle, and is unique. .


2. TabPage has a Name attribute, and can index (through the TabPages. .IndexOfKey, RemoveByKey, ContainsKey, etc functions).


So, I put the window Handle and TabPage's Name correlated. This has everything solved. .


BTW: .NET 2 only.. .0.

Posted @ 2006-10-23 23:39 Reply more comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mo Meeting. .

@ MU Maple.


Thank you pointers! . .


The original is. .NET2. .0 come of the 1. .1 to upgrade, you do not keep up with the tide: (.

Posted @ 2006-10-24 10:54 Reply more comments. .

# Re: give your MDI programs plus a tab bar, easily switch on and off the subform.

Mo Meeting. .

@ MU Maple.


Learning ah. .

Posted at 2006-10-24 10: 55 reply more comments.

# Re: to your MDI program with a tab bar, easy to switch and close the child form. .

Champagne Maple.

In fact. . NET 1. .1 Is also possible. .


However, due to the TabPages does not have an associated key, so that you can save the data in the Form of a Tag.


In this way, still can do not need to transform the original code, as long as the original code did not spend Form. . Tag fields on it. .


If the Form has been used .Tag., another way is to create a hashtable, the establishment of a Form. .Handle and TabPage mapping between, on the can.


In short, loosely coupled as possible. People use your program, do not have any learning and change, it can be used for new features, this is the best. .

Posted at 2006-10-24 11: 18 reply more comments.

# Re: to your MDI program with a tab bar, easy to switch and close the child form. .

Never meet.

@ Mu Feng. .


It is learned, it really did not think so much, it seems that after the written procedure should think about before, is more important than the design or implementation.


Thanks! ! ! . .

Posted at 2006-10-25 08: 51 reply more comments.