pcsms

所属分类:Java编程
开发工具:Java
文件大小:303KB
下载次数:47
上传日期:2009-01-13 09:42:31
上 传 者renr1981
说明:  JAVA一个有关通信方面的实例,实现了手机同计算机之间互发彩信功能。
(JAVA an example of communication to achieve interoperability between mobile phones with computer-fat MMS function.)

文件列表:
pcsms\jwap-1.1.jar (122027, 2004-05-28)
pcsms\mobileUtil.jar (208165, 2006-07-06)
pcsms\send_receive\.classpath (442, 2005-09-27)
pcsms\send_receive\.project (371, 2005-09-27)
pcsms\send_receive\MMSGetter.class (4207, 2005-09-27)
pcsms\send_receive\MMSGetter.java (4399, 2005-09-27)
pcsms\send_receive\MMSSender.class (5596, 2005-09-27)
pcsms\send_receive\MMSSender.java~1~ (5927, 2005-09-27)
pcsms\send_receive\MMSSender.java~2~ (5859, 2006-08-18)
pcsms\send_receive\MMSSender.java~3~ (5863, 2006-08-18)
pcsms\send_receive\MMSSender.java~4~ (5894, 2006-08-18)
pcsms\send_receive\MMSSender.java~5~ (5922, 2006-08-18)
pcsms\send_receive\tmp\test.text (25, 2005-09-27)
pcsms\send_receive\tmp (0, 2008-08-08)
pcsms\send_receive (0, 2008-08-08)
pcsms (0, 2008-08-08)

Example sending and receiving of mms 0. -download the following jwap-1.1.jar (included in jwap-1.1.tar.gz or jwap-1.1.zip) mobileUtil.jar -fire up your gprs connection in the background (but before doing so you might want to disable any existing network configurations). I believe jWap would be using the default route. In Windows, this should just be a breeze and as easy as starting a dial up connection. consult your service provider's documentation as well as any manual that comes with your modem. In Linux or in any other Un*x platforms don't forget to configure your dns (you might not need it if you use purely numerical ip addresses such as http://10.102.61.238:8002/). you might want to read on http://kotinetti.suomi.net/mcfrisk/linux_gprs.html make sure that the gprs works, try loading google with your web browser. try to ping the IP address of the wap gateway too that you will be connecting to. -include the two jars into your class path and make sure that everything compiles 1. sending configure MMSSender. change wapIPAddress and mmsc to the settings of your provider. change the phone numbers and everything you desire in the creation of mms pdu in the main method. for now you can try sending and receiving to the same number. run the application and pray that it works =) if successful, the response would usually have content type application/vnd.wap.mms-message and the application should be able to parse the response. the message_id (see the console output) in a successful response would be the same message_id of the receiving party (in the m-retrieve-conf). if unsuccessful, usually you will get an xml (content type text/vnd.wap.wml). 2. receiving configure MMSGetter just like in MMSSender. if you tried sending to yourself in (1), the message id parsed in the response (m-send-conf) should be the same as the message id parameter in MMSGetter. if you have received an mms notification (which is usually 2 concatenated text messages), the content location stated in there is usually of the form /. so again start the application. whether or not you are successful, you would get a pdu response. Check the output. 3. end gprs connection if you no longer need it. in Un*x, restore any dns configurations if you changed it.

近期下载者

相关文件


收藏者