如何通过SMS 发送 MMS

合集下载

从SMS到MMS的发展

从SMS到MMS的发展
告 传 递 给 M 。 在 移 动 旨终 接 的 短 消息 业 务 中 . M—S S S C发 送 短 消息 给 S —G S , MS MS MS M C S —G C通 过 询 问 H R获 得 L 目标 M S所 在 的 MS C号 码 , 短 消 息 前 转给 该 Ms 。再 由 将 c
3 S S的增 强 型 1 M
随 着 短 消 息业 务 的快 速 发 展 和 用户 需 求 的 不 断提 高 ,
简单的文本信 息就显得过于枯燥和贫乏, 固有 的劣势必 其 将使其的吸引力逐 渐下降 , 于是 ,c P 一 个第三代移动通 3P( 信标 准化联 台组 织 )在 其标 准规 范 中提 出 了 M MS的概
维普资讯
从S S M 到M M S
汤 申生 张 玮 李 芳 10 8 ) 006
息 ,将之传送给接收者所在基站的移动交换 中心 ( S ) MC ,
并将 收到 的来 自 M C短 消 息 的相 关 报 告 返 回 到 S S M—S C; S S—1 M wMS C接 收 来 自 M c 的 短 消 息 并 转 发 给 S —S , s M C 然 后 将 S — C返 回的 报 告再 发 回给 MS 此 外 , 涉 厦到 M S C。 还 G M 网 络 实 体 Ms , S c 它负 责系 统 切 换 管 理 并控 制来 自或 发 往 其 他 电话 或数 据 系 统 的呼 叫 ; L H R是 用于 永 久储 存 管 理 用 户 和 服 务 记 录 的 数 据 库 ,它 可 以 应 S S网 关 的 要求 搜 M
念 。M 传 送 的不 仅 仅是 文 本 消息 , MS 还 包 括声 音 、 像 和 视频 等 多种 媒 体 。 这 图
也 对 网 络 和终 端 提 出 了 全 方 位 的 新 要

NowSMS send MMS

NowSMS send MMS

Arima Communication Confidential
建立数据机
• 打开我的电脑->控制台->电话和数据机选项
Arima Communication Confidential
Arima Communication Confidential
Arima Communication Confidential

Network Connection和Modem Used两个下拉列表还没选好。这里必须 使用对应的GPRS猫的调制解调器
• 填好这些东西后点击Test Connection可以检测连接,成功就可以了, 检测时间比较长,要耐心等待。填好之后点击OK,在MMSC Routing 标签页里的Additional Routes里面就能看到刚才的那个配置名称,然后 在Default Route里面选择刚才的配置名称作为默认路由就可以了。
发送成功)。 • Allow Sender Address Override前的复选框也必须留空。 • Route messages to this account for recipient phone number(s)不用填(这是 一个掩码,只有符合要求的号码才用这个路由,按照官方文档的说法, 不填的话是不会用这个路由的,但实际上把它设成默认路由的话,即使 不填也会用这个,也许填上+861*,1*会好些,表示中国的手机都用这个 发)。
Arima Communication Confidential
• 打开MMSC标签,配置自带的MMSC 。把端口和IP选好后,还要注意 Local Host Name or IP Address里要填入一个本机的IP,如果在仅在内 网使用,可以直接填本机IP • 打开浏览器,输入http://服务器IP:web服务器端口/,就能看到发送各 种短信、彩信的链接,然后就可以发送彩信进行测试接的web服务器,它把制作好的彩信放在某个web目录下, 手机连接时就可以下载。 实践证明,如果使用中国移动的SIM卡,无论使用的是什 么短信猫,都不能通过系统自带的彩信中心发送彩信。 要设置成通过移动公司的彩信中心发送彩信,必须把系统 的默认设置——使用自带的MMSC(彩信中心)——改为 使用移动公司的MMSC。

msmms(二)sms与mms简述!

msmms(二)sms与mms简述!

msmms(⼆)sms与mms简述!mms本词条由审核。

是缩写,它可以是Membership Management System的缩写,中⽂译名为。

也可以是Multimedia Messaging Service的缩写,中⽂译为彩信。

中⽂名外⽂名Membership Management System英⽂简称MMS释义⼀种传送协议常见系统3种系统功能10⼤功能⽬录1. 12. ▪3. ▪4. ▪5. 26. 31. 42. 53. 64. 75. 81. 92. 10简介协议:MMS(MicrosoftMediaServerprotocol)是⼀种传送协议,⽤来访问并流式接收服务器中⽂件的⼀种协议。

协议⽤于访问Windows Media发布点上的内容。

MMS是连接Windows Media服务的默认⽅法。

若观众在Windows Media Player中键⼊⼀个URL以连接内容,⽽不是通过访问内容,则他们必须使⽤MMS协议引⽤该流。

MMS的预设埠()是1755。

MMSMMS是Multimedia Messaging Service的缩写,中⽂译为彩信,可以⽤于传送⽂字、图⽚、动画、⾳频和等信息。

MMS的⼯业标准是由两个组织,WAP Forum(WAP论坛)和3GPP(3GPartnership Project:3G伙伴计划)所制订的。

因此,MMS是设计成可以在的上层运⾏,它不局限于传输格式,既⽀持电路交换数据格式(circuit-switched data),也⽀持通⽤分组⽆线服务GPRS格式(general packet radio service)。

其⼯作原理为利⽤⾼速传输技术EDGE(Enhanced Data rates for GSM Erolution是⼀种提⾼数据的新技术,是GSM向第三代移动通信系统过渡的台阶。

它也被称为"GSM 384",因为这种技术能使数据由9.6kbit/s提⾼到384kbit/s,这种可以⽀持、因特⽹浏览、、会议电视等多种⾼速数据业务)和GPRS的⽀持下,以WAP()为载体传送、图⽚、声⾳和⽂字。

移动应用03_Android的SMSMMS应用开发

移动应用03_Android的SMSMMS应用开发
SmsManager smsMgr = SmsManager.getDefault();
使用SmsManager类的 sendTextMessage()函数来发送短信。 sendTextMessage()函数发送一个短信和 一个PendingIntent对象。如下代码:
//收信人的地址 String destinationAddress = “8613811810000 ”; String emulatorAddress = “5554”; //仿真器地址 //准备一个PendingIntent对象 Intent in = new Intent("com.misoo.pk01.IGNORE_ME"); PendingIntent sentEvent = PendingIntent.getBroadcast(context, 0, in, 0);
使用Intent 发送E-mail
类似地,也可以使用Intent对象来发送E-mail。 如下面的代码:
Uri uri = Uri.parse("mailto:mike123@"); Intent in = new Intent(Intent.ACTION_SENDTO, uri); startActivity(in);
Step-4. 接着,选取<SMS>,并随意输入
电话号码,以及短信内容如下:
Step-5. 按下<Send>就送出短信了。 Step-6. 应用程序就会接收到短信了。 Step-7. 欲离开DDMS,可按下画面右上角 的小窗户图像,如下:
点选<Java>就返回Eclipse编辑画面了。
在模拟器环境里 应用程序使用API发送简讯
使用BroadcastReceiver类来接收短信。 当送来短信时,Android框架会调用 BroadcastReceiver类的onReceive()函数。

SMS发送流程

SMS发送流程

SMS协议及发送消息流程一.SMS协议结构CDMA模式中SMS协议结构如图所示,包括SMS Relay Layer,SMS Transport Layer 和SMS Teleservice Layer。

SMS Relay Layer. This section defines the requirements for the lower layer of the SMS bearer service protocols. The SMS Relay Layer provides the interface between 25the Transport Layer and the Link Layer used for message transmission. 26SMS Transport Layer. This section defines the requirements for the upper layer of the SMS bearer service protocols. The SMS Transport Layer manages the end- to-end delivery of messages. 29SMS Teleservice Layer. This section defines the requirements for the SMS Teleservice Layer, which provides application-level data formats and procedures.二.发送短信流程三. UI层程序分析发送短信时函数依次调用uinusms_initial_smsi(smsi_msg_type * smsi_msg_ptr) 函数中将短信做初始化, 主要是一些参数的配置. 之后编辑短信内容及收件人号码并将这些内容也都依据IS637协议规定填进结构中.具体参数定义请看IS637协议.uiuasms_get_next_msg_id() 得到当前发送短信的MSG_ID.uasmsu_convert_from_smsi(smsi_msg_type * smsi_ptr,uasms_client_message_type * cl_ptr)uasms_status_e_type uasms_send_message(const void * user_data,/* The client can pass a void* pointer with any chosen value.The UAPI later delivers the message submission status with thissame user_data pointer, so that the client can correlate the messagesubmitted in this function with the status of it.*/const uasms_client_message_type * cl_msg_ptr/* The message to be sent. */)这个函数是CM层函数, 在这个函数中将发送短信指令加入命令队列中, 然后一层一层发下去。

nowsms的安装与配置

nowsms的安装与配置

NOWSMS使用NOWSMS简介====================Now SMS/MMS Gateway(NowSMS)是一套SMS和MMS的内容交付解决方案。

NowSMS是部署和开发SMS、MMS和WAP Push方案的快捷方法,可以用于Windows 2000/XP下的SMS网关、MMS网关、WAP Push网关以及多媒体消息中心。

NOWSMS的官方网站是:/,可以下载60天的试用版本来搭建自己的彩信中心;以下是NOWSMS的基本使用步骤:1: 下载并安装NowSMS2: 配置SMS/MMS Gateway以支持发送SMS和MMS3: 发送SMS以确保正确配置了Gateway4: 配置MMSC以支持发送MMS功能,并且配置可以使用MMSC的手机号列表. 5: 发送MMS以确保正确配置了MMSC6: 配置手机上的MMSC以实现彩信上行功能(如果遇到问题,可以把NOWSMS目录下的.log发给nowsms@寻求帮助)NOWSMS的基本配置====================1. 配置GSM ModemNowSMS requires a connection to an SMSC to interface with SMS and MMS networks. A SMSC connection can be a GSM Modem - A GSM modem or phone connected to a PC serial port (or to a USB port).(可通过红外与笔记本连接,我的配置是Nokia 6610 + Dell Inspiron 600m)2. 配置SMSCThe first step is to configure SMSC settings, which tell the gateway how it connects to the GSM network to send SMS.(必须保证Modem支持发送SMS功能,市面上的GPRS上网卡因为使用cmwap,不支持SMS发送,即使NOWSMS能够找到,但也无法使用NOWSMS中发送SMS和MMS的功能)3. The Now SMS/MMS Gateway installs as a Windows service. The MMSC runs as a separate service process from the gateway.(建议把service配置成手工启动的,因为如果系统启动后没有发现GSM Modem,系统将无法工作)4. Without the MMSC, you will still be able to "Send MMS Notifications"where the MMS content is stored on a separate web server, but you won't be able to use the "Send MMS Message" feature of the "web menu interface".5. The MMSC supports sending MMS messages between mobile phones, and alsosupports sending and receiving MMS messages between mobile phones and standard internet e-mail systems.6.MMSC的端口号The gateway PC must be accessible via the internet in order to use its MMSC. When a mobile phone sends or receives an MMS message, it makes an HTTP connection to an MMSC (usually through a WAP gateway). The MMSC contains an integrated HTTP server to process these connections. (Some operator WAP gateways have firewalls which prevent them from connecting to content servers that are installed on ports other than the default HTTP port of 80. Use caution when configuring the MMSC for a port other than 80, as this may prevent MMS messages from being received via some services.)7. MMSC配置Local Host Name or IP Addressspecifies the local host name or IP address of the computer that is running the MMSC service. The name or address specified here will be used to construct URLs when sending MMS messages to mobile phones.(必须确保MMSC的IP地址在本地也可以访问,因为NOWSMS在发送MMS时会验证URL的有效性;因为有些地方的外部IP是通过Firewall映射的,本地可能无法访问,建议直接绑定外部IP为第二个IP来解决这个问题)Domain Name for MMS EMail / SMTP Relay HostIt is possible to operate the MMSC without the e-mail link, leaving the "Domain Name for MMS E-Mail" and "SMTP Relay Host" fields blank.8.手机号的格式To define a MMSC user , you must define a phone number using international format(比如中国手机,格式是+8613xxxxxxxxx/ 新加坡+65xxxxxxxx)9.手机上的彩信中心Note that for a mobile phone user to use the simple MMSC integrated with thisgateway, the mobile phone user must configure their MMSC to point to the address of the MMSC, and include their user name and password in the MMSC URL. Example:http://x.x.x.x/username=passwordThe username can be either the user alias name or phone number.(在使用中发现必须是国际格式的手机号,不能用别名,否则服务器报错)10. 用NOWSMS的WAP GatewaySpecify an IP address for the WAP gateway of 213.48.20.10(this is a gateway at the Now Wireless offices).11. GSM Modem1) An external modem device, such as the Siemens MC35 or Wavecom FASTRACK.2) A PC Card installed in a laptop, such as the Sierra Wireless Aircard 7503) A standard GSM mobile phone with the appropriate cable and software driver to connect to a serial port or USB port on your computer.(Any phone that supports the "extended AT command set" for sending/receiving SMS messages can be supported by the Now SMS/MMS Gateway)A dedicated GSM modem (external or PC Card) is usually preferable to a GSMmobile phone. This is because of some compatibility issues that can exist withmobile phones.12. SMS User / MMSC UserThe “SMS Users” defines user accounts that are allowed to submit SMS and MMS messages through the gateway. (Note: Mobile phone users that connect to the MMSC to send and receive MMS messages are configured under th e “MMSC Users”)13. Long SMSIf the text message is longer than 160 characters, the gateway will automatically use concatenated SMS (“long SMS”) message support to send the entire message.13. Send MMS NotificationThe MMS Notification is sent to the recipient independent of the MMSC built-in to thegateway. The message recipient will fetch the message directly from the URL specified. As the message is not routed through the MMSC, the MMSC cannot provide dynamic content adaptation and conversion services.14. Send WAP OTA Bookmark“Send WAP OTA Bookmark” allows bookmarks to be sent to compatible mobile phones. Simply specify the WAP URL, a title for the bookmark, and a phone number towhich the bookmark should be sent.15. Send SMS URLTo send a text message via SMS, use the following URL format:http://127.0.0.1:8800/?PhoneNumber=xxx&Text=xxx1) Use either the local phone number format, or the international phone number format .2) If the international phone number format is used, note that you must substitute“%2B” for the “+” character, because of URL escaping restrictions.16. WAP PushWAP Push messages are specially formatted SMS messages that display an alertmessage to the user, and give the user the option of connecting directly to a particular URL via the mobile phone’s WAP browser.Note that there are two types of “WAP Push” messages, “Service Indication (SI)” and “Service Load (SL)”. The “SL” format can be selected by including "WAPSL=1" as a URL parameter, and does not support a “Text” parameter, while the “SI” format does. (By specification, the “SL” format was designed to tell the browser to connect to a URL without user intervention. However, for security reasons, mobile phones will always display a prompt before connecting to a URL. Therefore, the lack of a text parameter makes the “SL” format considerably less user-friendly than the “SI” format, and in practice, most users will exclusively use the “SI” format.)17. 2-Way SMSThe “2-Way” configuration contains settings relevant to the creation of 2-way applications that can receive SMS messages, and return a response based upon the content of the received SMS message. When an SMS message is received, the gateway will evaluate the content of the message, and can either execute a program, or connect to an HTTP URL, based upon the content of the message.NOWSMS连接到Operator MMSC========================================By default, the Now SMS/MMS Gateway will act as an MMSC and perform directdelivery of MMS messages to recipients using a combination of SMS and WAPtechnologies.1. 通过运营商的MMSC接收/发送MMSNowSMS can use a GSM/GPRS modem to send and receive MMS messages via an operator MMSC. The NowSMS sends and receives MMS messages using the same protocol that is used by the MMS client in a mobile phone, so it simply requires that the SIM card in your mobile phone be provisioned by your mobile operator for MMS support.1) 发送MMSWhen sending an MMS message, the NowSMS initiates a GPRS connection to the mobile operator, it then makes a connection to the operator WAP gateway, and submits the MMS message over this WAP and GPRS connection to the mobile operator’s MMSC.2) 接收MMSWhen receiving an MMS message, the gateway first receives an MMS notificationmessage via SMS. When this special notification message is received, the gateway initiates a GPRS connection to the mobile operator, and a connectionto the operator WAP gateway over GPRS, in order to retrieve the content of theMMS message from the mobile operator’s MMSC.Note: When a GSM phone or GSM modem receives an MMS message, what it actuallyreceives is an MMS notification message. The MMS notification message arrives via an SMS message (usually two concatenated SMS messages). The MMS notification message contains header information about the MMS message, plus a URL pointer (e.g., http://host/path/file.mms) to the actual MMS content.Note that you can still not use an MMS compatible phone as a GSM modem if you want to be able to receive MMS messages through the gateway. This is because an MMS compatible phone intercepts the MMS notification and tries to process it automatically, never forwarding it to the gateway. You must use a GSM/GPRS modem device to take advantage of this feature. 2. 小心运营商的限制The reason that it would not work in many installations is that the operator MMSCs were either firewalled off so that they were inaccessible from the internet, or they were on private IP addresses within the operator network.3. 配置信息You will need to determine the GPRS APN (Access Point Name), the IP address of the WAP gateway, and the MMSC Message Server URL that are used for sending/receiving MMS via your operator network.1) “WAP Gateway IP Address” should contain the IP address of the operator WAP gateway which will act as a proxy for connections to the MMSC.4. MMSC路由MMSC Routings can use MM1 –A binary format for transmitting MMS messages using HTTP POST. This is the protocol that is used for phone to phone MMS, so if you are routing messages to an operator MMSC over a GPRS connection.The “Route messages to this account for recipient phone number(s)” field is an address mask for defining which recipient phone numbers should be routed to this account. For example, “+44*” would route all messages for the UK country code (44) to this connection. When multiple address masks are defined, they should be separated by a comma only (,) and no white space characters.Note that when you are using MM1 to connect with an operator MMSC over GRPS, this “Server address” is the “MMS Server URL” that would normally be configured on a mobile phone to connect with the operator MMSC. NOWSMS中的彩信功能========================================When you send an MMS message with NowSMS, this can be done using either of the following configurations:1. Direct MMS delivery.In this configuring, NowSMS is an MMSC. The MMS message content is stored on the NowSMS, and the gateway publishes a dynamic URL for access to the MMS message content. The gateway generates an MMS notification message to the recipient device which is sent over SMS, and this notification includes a URL pointer back to the MMS message content on the NowSMS server.2.Send the message through the operator MMSC.NowSMS supports all of the major MMS related protocols, including MM7, MM4, MM1 and EAIF for this purpose. But most frequently, what we see is the use of MM1 where NowSMS makes a GPRS connection over a GSM/GPRS modem, connects to the operator WAP gateway that is designated for MMS usage by the operator, and submits the message to the operator MMSC via the WAP gateway over the GPRS connection.(The operator MMS gateway then generates the dynamic URL and MMS notification message that is ultimately received by the recipient device.) The MMS message file format consists of an MMS message binary header, followed by a multipart MIME message where the multipart message is encoded in a binary multipart format as defined by the WAP WirelessSession Protocol (WSP) specification. This binary MMS message file is stored on a web server using a MIME type of application/vnd.wap.mmsmessage and an MMS message type of m-retrieve-conf. A subset of the binary MMS header is sent as an MMS notification message (MMS message type mnotification-ind) via SMS to the mobile device together with a URL pointer to the location of the complete message.Once an MMS message file has been built and published via a web server, theMMS notification message can be sent by the gateway using the following URLformat:http://127.0.0.1:8800/?PhoneNumber=xxx&MMSURL=host/path/filename .mmsBefore sending the MMS notification message, the gateway will validate that the MMS message file is of the MIME type application/vnd.wap.mms-message, and is of the MMS message type mretrieve-conf.The MMSCOMP utility is provided to assist in the creation of MMS message files.NOWSMS的使用技巧========================================1. 查看NOWSMS日志信息在“管理工具”->“事件查看器”->“应用程序”中的日志信息,可以查看NOWSMS在启动和使用中的出错信息!如果发现“连接SMS Modem”出错,需要在SMSC中执行“Remove Service”,并重新添加"GSM Modem";(The gateway always logs when its services are started and stopped. Additionally errors are reported to the event log if a particular SMSC interface fails to initialize, and when a user account exceeds their defined message quota for sending messages.)2. 设置为Debug模式修改配置文件SMSGW.INI/MMSGW.INI,在[SMSGW]中加入Debug=Yes,这样调试信息就会写入到MMSC-yyyymmdd.LOG中,SMSDEBUG.LOG和SMSOUT-yyyymmdd.LOG中;3. 查询MMS发送情况如果在发送MMS时收到错误信息,先检查手机上MMSC的配置;然后可以查看Gateway目录下的MMSC-yyyymmdd.log;上行的MMS被存放在\MMSCDATA下的日期目录中常用术语========================================SMPP (Short Message Peer to Peer) 短消息点对点协议,网关与短消息中心之间使用SMPPCMPP (China Mobile Peer to Peer) 中国移动点对点协议,网关与SP之间使用CMPP协议OMA (Open Mobile Alliance) 开放移动联盟,OMA为移动行业提供公开标准,帮助创建符合用户需求,并能跨国家、运营商和移动终端运行的互操作性服务。

S S 信服务使用说明 M短

SMS短信服务使用说明1、主界面:连接中心服务器:标识有没有连接上中心管理软件连接短信服务器:标识有没有连接上短信服务器2、短信设置1、短信机IP地址,中心服务器IP地址,远程端口,本地端口按照NS20-SC设置程序里的参数填写2、同一个IP地址相同通道的告警信息按照定义的时间间隔发送3、自行为每个IP地址添加手机号码和定义报警开始时间和结束时间(红色区域是可以发送报警短信的时间段)4、刷新IP地址:中心服务器获取所有已经配置过的IP地址5、删除IP:将不用发送报警短信的IP地址从IP表中删掉6、配置报警计划:可以从周一到周日编排每天的报警时间段(禁止报警的时间段)7、双击IP:根据OMM的不同通道设置不同的短信发送使能8、双击电话号码:编辑该电话号码的资料信息(姓名、地点、职务等)3、串口设置配置前的准备工作短信服务器EIC-NS20是通过串口的读写来配置参数的,因此,用户可以用相应操作系统下的串口工具进行配置。

为了进行配置和测试,用户计算机至少留有一个闲置串口,还应安装网卡并配置好网络环境,如需连接多个短信服务器设备,则还需网络交换机或HUB。

1)如果用户计算机已安装网卡并配置好网络环境,则可以跳过本步骤;如果尚未安装网卡则应首先安装网卡并配置IP地址及子网掩码。

用户的计算机如果没有与其它计算机联网,则该机器的IP地址可任意配置:一般采用保留三类IP地址,即192.168.x.y(注:同一局域网中x均相同,y任意,但不能重复),子网掩码为255.255.255.0。

如该计算机已连入局域网中,请遵循网络管理员的安排;2)用户的网络环境配置完后,可通过交叉网线将客户机网卡的接口及短信服务器上的RJ45接口连接,或两者都用直连网线接在网络交换机或HUB上;3)用RS232电缆将短信服务器上的串口同PC机的串口相连(用于配置短信服务器的参数)连接起来;4)短信服务器接通电源后,电源指示灯PWR亮,说明电源正确接通;信号灯GSM有规律的闪烁,说明GSM模块和SIM卡工作正常;如果网络物理连接正确则连接灯LNK亮;当网络中有数据包收发时,活动灯ACT也开始闪亮。

如何发送国际短信

如何发送国际短信
如何发送国际短信?
简而言之,国际短信就是指国内三大通讯运营商(中国移动、中国联通、中国电信)的手机用户与中国大陆以外的国家、地区运营商的客户之间收发短信的业务,那么国际短信到底如何发送呢?下面就让中舜短信平台为大家讲解。

一、国际短信发送仅限于点对点发送,并不是全世界所有的通讯运营商和通讯网络都能达到某一地区,这就限制了大多地区的短信发送。

所以在进行国际短信发送之前,一定要对该地区做下相应的调查。

二、港澳台和国际的短信收费标准相同,唯一要注意的是显示开通的单双向问题。

单向:国内只能发送短信到该国家,无法正常接收短信。

双向:国内与该国能完成短信的发送和接收。

三、在用户开通国际漫游的情况下,当用户对国内、国外进行国际短信发送时,在发送号码处一定要按照国际字冠、国家代码、手机号码这样的顺讯才能完成国际短信的发送。

关于具体的国家代码可在网上自行查找。

四、移动用户只要处于国内就可以在不单独开通业务的情况下随时使用手机进行国际短信发送。

五、当户用户完成短信编辑输入正确的号码信息之后,点击短信发送就能将国际短信发送出去。

国际短信的发送流程和方法中舜短信平台就介绍到这里,当今经济全球化的趋势越来越明显,企业通过短信平台进行产品宣传也提高了销售额。

未来,国际短信将会更加贴近人们的生活。

mms文件传输流程

mms文件传输流程
MMS(Multimedia Messaging Service)是一种通过移动网络传输多媒体内容的通信服务。

MMS文件传输涉及多个步骤和参与者,下面我将从多个角度来介绍MMS文件传输的流程。

1. 创建消息,MMS文件传输的第一步是消息的创建。

用户通过手机或其他设备选择要发送的多媒体内容,例如照片、视频、音频或文字,并指定接收者的手机号码或电子邮件地址。

2. 编码和打包,一旦用户创建了消息并选择了要发送的内容,这些内容将被编码成适合在移动网络上传输的格式。

多媒体文件可能会被压缩以减小文件大小,以便更快地在网络上传输。

3. 发送消息,一旦消息被编码和打包,它将通过用户的设备连接到移动网络,并发送到用户的移动网络运营商的消息中心。

4. 消息中心路由,消息中心接收到消息后,将根据接收者的手机号码或电子邮件地址来确定消息应该被路由到哪个网络运营商的消息中心,如果接收者是在不同的运营商网络中,消息中心会进行相应的路由。

5. 传输到接收者设备,一旦消息被路由到接收者所在的网络运营商的消息中心,消息中心会尝试将消息传输到接收者的设备。

这可能涉及到使用SMS或数据连接来将消息传输到接收者的设备。

6. 接收和解码,接收者的设备接收到消息后,会进行解码和解压缩以还原原始的多媒体内容。

接收者可以在其设备上查看、播放或保存接收到的多媒体内容。

总的来说,MMS文件传输涉及消息的创建、编码和打包、通过消息中心的路由和传输到接收者设备,最终接收者设备进行解码和解压缩以获取原始的多媒体内容。

这个流程需要移动网络运营商的支持和协调,以确保消息能够顺利地从发送者传输到接收者。

SMS、EMS、MMS的联系与区别


SMS,Short Messaging Service短信业务,可以通过手机等移动设备发送文本型短信。SMS这个术语最早在80年代初期出现,但一直到了90年代初才开始进入商用市场,并且一直到1999年,该业务才在世界各国迅速蔓延,并有持续爆炸性的增长趋势。可刚进入21世纪,人们又提出EMS--Enhanced Message Service增强短信业务,除文本之外,它可提供简单的图片和声音的短信服务,在2001年6月,几家手机巨头联合起来要统一EMS的标准,并且要生产具有这种功能的手机,可是因为没有Nokia的支持,不久就不了了之。那么手机业的龙头老大-Nokia为什么不支持EMS呢?因为Nokia认为MMS时代将很快来临,没有必要再生出一个过渡性标准。
从技术上来看,MMS绝对不是像SMS那么简单的技术,说的简单一些,MMS是封装在WAP协议之上的高层应用程序(注意:这里仅仅是协议的封装,并没有出现WAP浏览器本身),利用这种高层应用程序可以实现包括图像、音频信息、视频信息、数据以及文本等多媒体信息在内的信息传送。业内人士有的把它看作是电子邮件的替代品,有的把它看作是明信片的电子版,当然更多的是看作多媒体化的SMS。就好像收音机到电视机的发展一样,多媒体短信与原有的普通短信比较,除了基本的文字信息以外,更配有丰富的彩色图片、声音、动画等多媒体的内容。通过MMS,手机可以收发多媒体短信,包括文本、声音、图像、视频等,MMS支持手机贺卡、手机图片、手机屏保、手机地图、商业卡片、卡通、交互式视频等多媒体业务。
EMS对现有的短信中心所要做的最大修改是运营商计费系统,毕竟EMS和SMS属于不同类别的业务,一条EMS短信的容量可能是S也比SMS大很多,故定价策略不应采取“一刀切”的方案。在这种情况下,短信中心就需要增加一些模块,记录相关的技术值并生成相应的呼叫详情记录。
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

原理
MMS (Multimedia Messaging Service) 消息的发送可以使用 SMS 和 WAP 技术的组合,当发送 MMS 消息后,移动设备首先会接收到一个 MMS 通知消息(利用 SMS), 然后会自动向 WAP 网管下载 MMS 的内容。

为了发送一个 MMS 消息,你首先必须创建 MMS 的消息文件。

MMS 的消息文件格式在 OMA 发布的< MMS Encapsulation Protocol specification〉中有,MMS 消息文件包含一个 MMS 消息的二进制头部,然后是一个multipart MIME 消息体,这个消息体按照 WAP 的 WSP 规范进行编码。

消息文件需要使用 application/vnd.wap.mms-message的 MIME 类型以及 m-retrieve-con 的 MMS 消息类型保存在 web 服务器上。

然后一个二进制的 MMS 头部的一个子集作为一个 MMS 通知消息通过 SMS 消息发送到移动设备上,内容里面会包含指向完整 MMS 消息文件的 URL.
具体消息构造
MMS 通知消息
MMS 基于 WAP 协议,所以从下至上(从外到里)需要经过 WDP, WSP 以及具体的Data。

作为一个例子,下面描述了一个包的构成。

更为详细的包的说明请见<MMS Encapsulation Protocol specification>
==== WDP =====
06 (WDP Header Length)
05 (port)
04 (length)
0B 84 (destination port)
23 F0 (source port)
在 WDP 层,以上内容可以写死,不需要变动。

==== WSP =======
push id = 94
PDU type = 06 (push)
Headerslength = 22 (34, content-type + headers)
ContentType= 61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E
77 61 70 2E 6D 6D 73 2D 6D 65 73 73 61 67 65 00
Headers= AF 84 ((0xAF - 0x80 = 0x2F, 0x84 - 0x80 = 0x04协议规定有些值必须加上 0x80)
在 WSP 层,以上内容也可以写死,不需要变动。

==== DATA =====
8C 82 (message-type(0x0C): 130 -> m-notification-ind)
98 34 33 33 33 36 30 45 46 00 (transaction-id, 433360EF)
8D 90 (MMS-Version, 10 -> v1.0)
89 06 80 31 38 36 30 00 (From, length=6, Quote(128) "1860" End(\0) )
96 28 6E 6F 20 73 75 62 6A 65 63 74 29 00 (Subject, "(no subject)")
8A 80 (Message-Class, Personal)
8E 02 75 30 (Message-Size, 30000)
88 05 81 03 09 3A 80 (Expiry, realative 093A80 seconds)
83 68 74 74 70 3A 2F 2F 77 61 70 2E 6D 6D 73 38 31 38 2E
63 6F 6D 2F 74 6A 2F 36 2E 61 73 70 00 (Content-Location, /tj/6.asp
在以上内容中, transaction-id 可以根据实际值来设定,以 0 来表示结尾。

From 字段的 length 值需要包含 0 结尾字节。

Subject 字段也以 0 表示结尾。

Message-Size 是表示 MMS 消息文件的大小, 02 表示长度字节,后面是长度,例如 0x7530 为 30000.
然后是制定 URL.
SMS UDH
再然后,因为需要通过 SMS 进行发送,所以还要在前面增加一个UDH
06 "User Data Header Length (6 bytes)
05 "UDH Item Element id (Port Numbers)
04 "UDH IE length (4 bytes)
0B 84 "destination port number
23 F0 "origin port number
如果所有这些加起来大于140个字节,那么就需要修改UDH头,分成多条短消息串联。

这个参见SMS 的封装规范。

也可以参考很多网站的文章和代码。

最后通过 SMS GSM Modem 的指令发送以上的 Binary SMS 出去。

Reference
/index.htm(NowSMS,可以下载 60 天的 trial 版本,可以详细看到一些包的结构)
OMA 上关于 MMS,WAP,SMS的规范文档。

相关文档
最新文档