C # write mobile phone software

xiaoxiao2021-03-06  96

The first time I spent a time to write something, I have always seen everyone.

Recently came into contact with short message programming, I believe there are many brothers have already realized, I just write my own experience.

First, I checked the post on 9CBS, there were many advertisements, I didn't believe them :) I saw the classic procedures of the silkworm chrysae written in the celebrities, and the harvest is quite a larger as the core and start trying. The enthusiasm of EGPSCAR is got by EGPSCAR.

Silkworm awa is not going to start the tutorial, be sure to see http://soft.yesky.com/softchannel/72342380468109312/20040523/1800310.shtml

There is also the http://0926.net/archive/sms.htm provided by POPCORN (rice flower) and an AT directive download address http://www.cetinet.com/download/list.asp?id=179

On the basis of a silkworm chrysalus programs, I increased some control while the test, basically reached 800 per hour. I use Win Form, I haven't used Windowns Service for the time being.

Source code download address http://bbs.gzeasy.com/index.php?showtopic=275782 No place to upload, borrowed GZ's BBS

I added a multi-threaded process to ensure that the content read by the COM port is simultaneously reserved, not waiting to read an AT command to return to the end. Because after sending a command to the COM port, then read the COM entry to get the return information, pay attention to the COM port's data reading will not be saved on the COM port. Next reading is new, 50ms read once, wait for the next reading or Reading N times in the buffer, it constitutes a string that meets the agreement. I spent a little time on this, let the master laugh. This is OK.

I use my Siemens 3518i mobile phone, then buy a data line 30 in the sale of mobile phone accessories, I started debugging.

Here, here, this program has log records, you can see two data box on the interface, the black-faced green word is sending log, black words on white is bufferlog. Record the contents, that is, this time delivery is still successful. If it fails, it will resend. The sending content is in the database, using SQL, the table can find the created file in the Database directory, an extension is SQL of.

I sent 200, see the log retransmit a number of pieces, and I received 2 more reception. It is not very ideal, and it is estimated to be only 400 ~ 600 per hour.

Later, I plan to buy a GSM Modem, the main reason is the problem of charging, because the interface for my data line and charging line is one, and I can't open the battery. Episode (later silkworm cociations tell me that mobile phone can charge and connect data simultaneously Online, but I think there may be hardware support, and then, I will buy it later, I haven't tried it)

GSM Modem This thing is not to know where to sell, anyway, I didn't find it, and then in some website forums selling this DD, mainly Beijing and Fujian Guangdong, that is, we often receive you award, now Everyone knows that it is a news from Fujian and Guangdong's liar. I estimate that they are using such equipment but the module is more, and there is no meaning of a regional bad thing. Huh,

There is a gift to me, I don't dare to buy it right away. It is mainly worried that this program can't be used. I will let him test, and the result is not reply for several days. Waiting for a young man in www.sendsmsms.com gives me a letter. They also sold, I said that you will try it out, this guy did not load .net, even Windows Update has been used: (, I have to pass it to him a Framework, he has worked hard, I tried it an afternoon, the result It is easy to use. This guy is still very enthusiastic, so I will give a place to buy a brother who wants to buy professional equipment. It is an encouragement to his dedication, huh, huh.

After receiving the equipment, I immediately test 100, I used it for 7 minutes, I haven't had problems in 800, and the sending end log did not fail and retransmit. The received mobile phone is all received, no repeat.

This device and mobile phone are analyzed for everyone to analyze the connection speed of my mobile phone is 19200bps, and this GSM Modem (Wavecom) is only 9600 but it is mainly stable and response speed, like my mobile phone is about a little longer. I will read it OK or Error, this MODEM is very fast. I repeatedly printed a point in the log, and the mobile phone has averaged 7 or 8 points, and the Modem is 4,5 points, and because the mobile phone continuously It seems that Error is easy to send, and then it can be sent successfully, but the time is wasteful. It's basically like this. I used it for about two weeks before and after. If there is no silkworm, I don't know how to start So, I also provide my code to everyone. (After the consent of silkworm cociations), I hope to save the time required for the brothers, there is no comment, if you have any questions and discuss, you can write to me guanfei @ Hotmail. COM, want the Chinese topic, otherwise there are too many spam. I am easily ignored. The next step is planning to do read messages. It is not too difficult to estimate.

I hope everyone likes it, hoho, there is not much people, put it on 9CBS to the same person Search to 2004-11-02 08:55

转载请注明原文地址:https://www.9cbs.com/read-97381.html

New Post(0)