Yifan M240 Series User manual

M240 Seriesmodem UserManual
The usermanual issuitableforthe following models:
M240 SeriesCellularModem1xRS232/RS485,5xI/O
Model No. Description
M240-H 3G HSPA+/HSUPA/WCDMA/UMTSModem
M240-EV CDMA2000 EVDO Modem
M240-E EDGEModem
M240-G GSM/GPRSModem
Yifan Industry Limited
Add Room1603,No.79,WuShiPuRoad,HuLi District,
XiaMen,ChinaZip Code:361000
Tel +86 592-5222813
Fax:+86 592-6101492
http://www.yifanwireless.com
Documentation No. Product Version Page
M240 Series
User Manual
Product Name Total:

Copyright Notice
All contentsinthefilesareprotectedbycopyrightlaw,and all copyrightsarereservedby Yifan
IndustryLimited.Withoutwrittenpermission,all commercialuseofthefilesfromYifanare
forbidden,suchascopy,distribute,reproduce thefiles,etc., butnon-commercialpurpose,
downloadedorprintedbyindividual(all filesshall benotrevised,and thecopyrightand other
proprietorshipnoticeshall bereserved)arewelcome.

UserManual
YifanIndustryCo., Ltd. Page5of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
C
Co
on
nt
te
en
nt
ts
s
Chapter1 BriefIntroductionofProduct...........................................................................................6
1.1 General................................................................................................................................6
1.2 FeaturesandBenefits..........................................................................................................6
1.3 WorkingPrinciple...............................................................................................................7
1.4 Specifications......................................................................................................................8
Chapter2 InstallationIntroduction.................................................................................................11
2.1 General..............................................................................................................................11
2.2 EncasementList................................................................................................................11
2.3 Installation andCableConnection....................................................................................11
2.4 Power................................................................................................................................14
2.5 IndicatorLightsIntroduction............................................................................................14
Chapter3 Configuration.................................................................................................................15
3.1 ConfigurationConnection.................................................................................................15
3.2 ConfigurationIntroduction...............................................................................................15
3.3 RuntheconfigureTool: IPModemConfigure.exe...........................................................15
3.4 Re-powerIPMODEM......................................................................................................16
3.5 Configuration....................................................................................................................16
3.5.1 DataService CenterSettings..................................................................................16
3.5.2 IPMODEMSettings..............................................................................................19
3.5.3 OtherSettings.........................................................................................................24
3.5.4 ScheduledPowerON/OFF Setting........................................................................27
3.6 Functions...........................................................................................................................37
3.7 WorkStateSwitch.............................................................................................................38
Appendix.........................................................................................................................................39

UserManual
YifanIndustryCo., Ltd. Page6of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Chapter 1BriefIntroductionofProduct
1.1General
M240 seriesIPMODEMisakindofcellularterminaldevice thatprovidesdatatransferby
publiccellularnetwork.
Itadoptshigh-poweredindustrial32 bitsCPUand embeddedrealtimeoperatingsystem.It
supportsRS232 andRS485 (orRS422)portthatcanconvenientlyandtransparentlyconnectone
device toacellularnetwork,allowingyou toconnecttoyourexisting serialdeviceswithonly
basicconfiguration.Ithaslowpowerconsumptionstatesinwhichthepowerconsumptioncould
be1owerthan1mA@12VDC. IthascompatibledigitalI/Ochannel, ADC, inputpulsecounterand
pulsewaveoutputfunction.
IthasbeenwidelyusedonM2Mfields,suchasintelligenttransportation,smartgrid,
industrialautomation,telemetry,finance,POS,watersupply,environmentprotection,post,
weather, andsoon.
1.2Features andBenefits
DesignforIndustrialApplication
uHigh-poweredindustrialcellularmodule
uHigh-poweredindustrial32 bitsCPU
uSupportlowpowerconsumptionmode, including multi-sleepandtriggermodestoreduce the
powerdissipationfarthest
uEmbeddedRealTimeClock(RTC)circuit whichcanrealizetimingonline/offlinefunction
uHousing:iron,providingIP30 protection.
uPowerrange:DC5~35V
Stability andReliability
uSupporthardwareand softwareWDT
uSupportautorecoverymechanism, includingonlinedetect, autoredialwhenofflinetomake

UserManual
YifanIndustryCo., Ltd. Page7of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
it alwaysonline
uRS232/RS485/RS422 port: 15KVESDprotection
uSIM/UIMport: 15KVESDprotection
uPowerport: reverse-voltageandovervoltageprotection
uAntennaport: lightningprotection(optional)
StandardandConvenience
uAdoptterminalblockinterface, convenientforindustrialapplication
uSupportstandardRS232 andRS485(orRS422)portthatcanconnecttoserialdevicesdirectly
uTTLlogiclevelRS232 interface canbecustomized
uSupportintellectualmode, enterintocommunicationstateautomaticallywhenpowered
uProvidemanagementsoftwareforremotemanagement
uSupportseveralworkmodes
uConvenientconfigurationandmaintenance interface
High-performance
uSupportTCPserverand supportmultiTCPclientconnection(optional)
uSupportdoubledatacenters, onemainandanotherbackup
uSupply5 I/Ochannels, compatible2 pulsewaveoutputchannels, 2 analoginputsandone
pulseinputcounters.
uSupportmulti datacentersandit cansupport5 datacentersatthesametime
uSupportmulti onlinetriggerways, includingSMS, ring anddata. Supportlinkdisconnection
whentimeout
uSupportdynamicdomainname(DDNS)and IPaccess todatacenter
uDesignwithstandardTCP/IPprotocolstack
uSupportAPN/VPDN
1.3WorkingPrinciple
TheprinciplechartoftheIPMODEMisasfollowing:
Cellular
Module
MCU
Antenna
SIM/UIM
Interface
Indicator
Lights
SRAM&
FLASH
WDTModule
RTCModule
UserInterface
RS232/RS485/RS422
Module
PowerModule

UserManual
YifanIndustryCo., Ltd. Page8of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
1.4Specifications
CellularSpecification
StandardandBand Bandwidth TXpower RX
sensitivity
M240-GGSM/GPRSIPMODEM
EGSM900/GSM1800MHz,
GSM850/900/1800/1900MHz(optional)
ComplianttoGSMphase2/2+
GPRSclass10, class12(optional)
85.6Kbps GSM850/900
<33dBm
GSM1800/1900
<30dBm
<-107
dBm
M240-EEDGEIPMODEM
GSM850/900/1800/1900MHz
GPRS/EDGEClass12
236.8Kbps GSM850/900
<33dBm
GSM1800/1900
<30dBm
<-106
dBm
M240-HWCDMA&HSDPA&HSUPAIPMODEM
UMTS/WCDMA/HSDPA/HSUPA
850/1900/2100MHz,
850/900/1900/2100MHz(optional)
GSM850/900/1800/1900MHz
GPRS/EDGECLASS 12
HSUPA:5.76Mbps
(Uploadspeed)
HSDPA:7.2Mbps
(Downloadspeed)
UMTS:384Kbps (DL/UL)
<24dBm <-109
dBm
M240-EVCDMA20001XEVDOIPMODEM
CDMA2000 1XEVDO RevA
800MHz,800/1900MHz(optional)
450MHz(optional)
CDMA2000 1XRTT, IS-95 A/B
Downloadspeed:3.1Mbps
Uploadspeed:1.8Mbps
<23dBm <-104
dBm
HardwareSystem
Item Content
CPU Industrial32 bitsCPU
FLASH 512KB(Extendable)
SRAM 256KB(Extendable)
Interface Type
Item Content
Serial1 RS232 portand 1 RS485(orRS422)port, 15KVESDprotection

UserManual
YifanIndustryCo., Ltd. Page9of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Databits:5, 6 ,7, 8
Stop bits:1, 1.5, 2
Parity:none, even,odd, space,mark
Baud rate:110~230400 bps
Indicator "Power", "ACT", "Online"
Antenna Cellular:StandardSMAfemaleinterface, 50 ohm
GPS:StandardSMAfemaleinterface, 50 ohm
lightingprotection(optional)
SIM/UIM Standard3V/1.8Vusercardinterface, 15KVESDprotection
Power Terminalblockinterface, reverse-voltageandovervoltage
protection
PowerInput
Item Content
StandardPowerDC12V/0.5A
PowerRange DC5~35V
PowerConsumption
WorkingStates PowerConsumption
Communication50-90mA@12VDC;115-165mA@5VDC
Standby 25mA@12VDC;45mA@5VDC
Sleep 8mA@12VDC;18mA@5VDC
TimingPower
Off
0.6mA@12VDC;1mA@5VDC
PhysicalCharacteristics
Item Content
Housing Iron,providingIP30 protection
Dimensions 91x58.5x22 mm
Weight 210g
EnvironmentalLimits
Item Content
Operating
Temperature
-25~+65 C(-13~+149℉)
Extended-30~+75 C(-22~+167℉)
SIM/UIMPort
TerminalBlock
Antenna
Interface

UserManual
YifanIndustryCo., Ltd. Page11of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Chapter 2InstallationIntroduction
2.1General
TheIPMODEMmustbeinstalledcorrectlytomakeit workproperly.
Warning:Forbidtoinstall theIPMODEMwhenpowered!
2.2Encasement List
Name Quantity Remark
IPMODEMhost 1
CellularAntenna 1
Poweradapter 1
RS232 datacable 1 optional
RS485 datacable 1 optional
ManualCD 1
Certificationcard 1
Maintenancecard 1
Table2-1 EncasementList
2.3Installationand CableConnection
Dimension:(unit:mm)

UserManual
YifanIndustryCo., Ltd. Page12of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
58.5
35
28
28
22 8
25
Ф3
Ф5
4
Figure2-1 InstallationChart
InstallationofSIM/UIMcard:
Firstlypoweroff theIPMODEM,andpress theoutbuttonoftheSIM/UIMcardoutletwitha
needleobject.ThentheSIM/UIMcardsheathwillflickoutatonce.PutSIM/UIMcardintothe
cardsheath(Payattentiontoputthesidewhichhasmetalpointoutside),and insertcardsheath
backtotheSIM/UIMcardoutlet.
Warning: Forbidtoinstall SIM/UIMcardwhenpowered!
Installationofantenna:
ScrewtheSMAmalepinoftheantennatothefemaleSMAoutletoftheIPMODEMtightly.
Warning:Theantennamustbescrewedtightly, orthesignalqualityofantennawill beinfluenced!
UserInterface SignalDefinition
PinNumber
SignalName
Default Function ExtensibleFunction
1 PWR Powerinputanode
N/A
2 GND PowerGround N/A
3 GND PowerGround N/A
4 RX RS232 RX N/A
5 TX RS232 TX N/A
6 A RS485 anode ReservedcompatibleDTR
7 B RS485 cathode ReservedcompatibleDSR
8 IO1 GPIO ReservedcompatibleRTSand
RS232 RX(TTLlogiclevel)
9 IO2 GPIO ReservedcompatibleCTSand
RS232 TX(TTLlogiclevel)
10 IO3 GPIOReservedcompatibleDCD

UserManual
YifanIndustryCo., Ltd. Page13of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
11 IO4 GPIO ReservedcompatibleRI,ADC,
and pulseoutput
12 IO5 GPIOReservedcompatiblepulsewave
inputcounter,ADC,and pulse
output
Installationofcable:
M240 adoptsindustrialterminalblockinterface.Therecommendatorycableis28-16AWG.
Thedetail description ofstandardlayoutadapterandcommunicationcablesasisfollowing:
Adapter(RatingOutput12VDC/0.5A)
CableColor PowerOutputPolarity
Black&WhiteAlternate Anode
Black Cathode
RS232 Cable
CableColor Corresponding DB9-MPinNumber
Brown Pin2
Blue Pin3
Black Pin5
RS485 Cable
CableColor Signaldefinition
Red RS485(A)
Black RS485(B)

UserManual
YifanIndustryCo., Ltd. Page14of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Poweradapterandcommunicationcableconnectionchartasfollowing:
2.4Power
ThepowerrangeoftheIPMODEMisDC5~35V
Warning: Whenweuseotherpower,weshouldmakesurethatthepowercansupplypower
above4W.
Werecommend usertousethestandardDC12V/0.5Apoweradaptor.
2.5IndicatorLights Introduction
TheIPMODEMprovidesthreeindicatorlights: “Power”, “ACT”, “Online”.
Indicator
Light
State Introduction
ON IPMODEMispoweredonPower
OFF IPMODEMispoweredoff
BLINK DataiscommunicatingACT
OFF Nodata
ON IPMODEMhasloggedonnetworkOnline
OFF IPMODEMhasn’tloggedonnetwork
CommunicationInterface:RS232 CommunicationInterface:RS485
M240 Terminal
BlockInterface UserDevice
(DB9M) UserDevice
1
2
3
4
5
6
7
8
9
10
11
12
RX
GND
TX
A
B
IO1
IO2
IO3
IO4
PWR
GND
IO5
+Anode
-Cathode
A
B
M240 Terminal
BlockInterface
1
2
3
4
5
6
7
8
9
10
11
12
RX
GND
TX
A
B
IO1
IO2
IO3
IO4
PWR
GND
IO5
1
2
3
4
5
6
7
8
9
GND
TX
RX
+Anode
-Cathode
RX

UserManual
YifanIndustryCo., Ltd. Page15of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Chapter 3Configuration
3.1ConfigurationConnection
Beforeconfiguration,It’snecessarytoconnecttheIPMODEMwiththeconfigurePCbythe
shippedRS232 orRS232-485 conversioncableasfollowing.
3.2ConfigurationIntroduction
TherearetwowaystoconfiguretheIPMODEM:
Configuration softwaretool: Allthesettingsareconfiguredthrough theshippedsoftwaretool.
It’snecessarytohaveonePCtorunthistool.
ExtendedATcommand:All thesettingsareconfiguredthroughATcommand,soanydevice
withserialportcanconfigureit.BeforeconfigurationwithextendedATcommand,youshould
makeIPMODEMenterconfigurestate.ThestepshowtomakeIPMODEMenterconfigure
state, pleaserefertoappendix.
ThefollowingdescribeshowtoconfigureIPMODEMwiththeconfiguresoftwaretool.Atthe
sametime,it givesoutthecorresponding ATcommandofeachconfigurationitem.
3.3RuntheconfigureTool:IPModemConfigure.exe
The “SerialParameters”column showsthecurrentserialportsettings.ToconfigureIP
MODEM, pleasechoosethecorrectserialportwhichconnectstoIPMODEM, and thebaud-rate
is115200 withnoparity, thenopentheserialport. Ifthebuttontextis“Close”, it showstheserial
portnowhasbeenopened. Ifthetextis “Open”, youshouldopentheportfirst.Whentheport
opened, the “OutputInfo”column will display
“Port(COM1)HasOpened,PleaseRe-PowertheIPMODEM,

UserManual
YifanIndustryCo., Ltd. Page16of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Waiting IPMODEMEnterConfigureState...”
3.4Re-powerIPMODEM
AfterRe-powerIPMODEM,Theconfiguretoolwill makeit enterconfigurestate.Atthe
sametime,thesoftwarewill loadcurrentsettingsfromIPMODEMand displaysontheright
configurecolumns. It’snowreadytoconfigure.
3.5Configuration
3.5.1DataService CenterSettings
SettingsonthispagearetheparametersrelatedtoDataService Center(DSC).
◆DataCenterNumber
IPMODEMsupporttwoDataService Centermethodstotransmit data.
MainandBackup:IPMODEMalwaystriestoconnectwiththeMainDSC.Iffailstoconnect
withMainDSC, it will connectwithBackup DSCatonce

UserManual
YifanIndustryCo., Ltd. Page17of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
Note IfnoBackupDSCexists, pleaseconfiguretheBackupDSCsameasMainDSC.
MultiDataService Center:IPMODEMcanconnectwithatmostfiveDSCatthesametime.
All themultiDSCcanreceivethesameapplicationdata.
If theDataCenterNumberis0,thereisnoDSCworking.
If theDataCenterNumberis1, IPMODEMworkinMainandBackupDSCmethod.
When “DataCenterNumber”isgreaterthan1, IPMODEMworksin Multi DataService Center
method
GPS datatransmissionDSCisself-governed. Setting detailspleasereference thesection3.5.5.
ATcommand:
AT+SVRCNT=x
x:DataServiceCenternumber
Note:everyATcommandisterminatedwithaentercharacter.
◆MainCenterAddr+Port:
IPAddress andPortoftheMainDSC,It’sbettertosettheportgreaterthan1024.
ATcommandoftheMainDSCIPaddress ordomainname:
AT+IPAD=xxx
xxx:TheIPaddress ordomainname.
ATcommandoftheMainDSCport:
AT+PORT=xxx
xxx:Theportvalue
◆BackupCenterAddr+Port:
IPaddress and portoftheBackupDSC
ATcommandoftheBackup DSCIPaddress ordomain
AT+IPSEC=xxx
xxx:TheIPaddress ordomainname
ATcommandoftheBackup DSCport
AT+PTSEC=xxx
xxx:Theportvalue

UserManual
YifanIndustryCo., Ltd. Page18of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
◆Multi DSCConfiguration
When “DataCenterNumber”isgreaterthan1, thissettingisvalid.Forexample,settingthe
“DataCenterNumber”as3, MainCenter, 2ndCenter, 3rd Centerworkasthesethree DSC
ATCommandofthe2~5 DSCIPaddress ordomainname
AT+IPADn=xxx
nis1~4 correspondtocenter2~5
xxx:TheIPaddress ordomainname
ATCommandofthe2~5 DSCport
AT+PORTn=xxx
nis1~4 correspondtoportofcenter2~5
xxx:Theportvalue
Example:
SetIPaddress ofcenter3 as166.111.8.238, and port5001, theATcommand isasfollowing:
AT+IPAD2=166.111.8.238
AT+PORT2=5001
◆Mainand BackupCenterDNSServer
WhentheDSCInternetaccess usesdomainname, It’snecessarytosetDNSserverresolvingthe
DSCdomainname.WhentheDataCenterNumberis1, MainandBackupCenterDNSServeris
usedtoresolvetheMaincenterandBackup centercorrespondingly.
ATcommandofMainCenterDNSserver:
AT+DNSSVR=aaa.bbb.ccc.ddd
aaa.bbb.ccc.ddd:TheDNSserverIPaddress(mustbeIPaddress).
ATcommandofBackupCenterDNSserver:

UserManual
YifanIndustryCo., Ltd. Page19of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
AT+DNSSV2=aaa.bbb.ccc.ddd
aaa.bbb.ccc.ddd:theDNSserverIPaddress
◆Center2~5 DNSServer
WhentheIPMODEMworkinMulti DataService Centermethodandthecentersusedomain
name, 2~5 DNSserverisusedtoresolvecenter2~5 correspondingly.
ATcommandof2~5 DNSServer
AT+DNSSVRn=aaa.bbb.ccc.ddd
nis1~4 correspondtocenter2~5 DNSserver.
aaa.bbb.ccc.dddistheDNSserverIPaddress
3.5.2IPMODEMSettings
◆IPMODEMWorkkMode
Accordingtodifferentapplicationrequirements, thereareseveralprotocolworkmodetochoose.
PROT HeartbeatpacketwithTCPprotocol,DatatransmissionwithTCPprotocol,heartbeat
packetandapplicationdatatransmission areinthesameTCPconnection.
TRNS IPMODEMworkasacommon GPRSMODEM,ItcanbeusedinSMS,CSD,Dial-up
applications.
TTRN HeartbeatpacketwithUDPprotocol, DatatransmissionwithTCPprotocol
TLNT IPMODEMworkasatelnetclient
LONGHeartbeatpacketwithUDPprotocol, DatatransmissionwithTCPprotocol,Itcantransmit
atmost8192 bytesdataonetimethroughextraapplicationprotocol.
LNGT HeartbeatwithUDPprotocol,DatatransmissionwithTCPprotocol,Itcantransmit at
most8192 bytesdataonetimethroughextraapplicationprotocol.
TUDPHeartbeatwithUDPprotocol, DatatransmissionwithUDPprotocol, Heartbeatpacketand
applicationdataareinthesameUDPconnection.
TCST Usercansetcustomregisterandheartbeatstring,DatatransmissionwithTCPprotocol.
ATcommand:
AT+MODE=xxxx

UserManual
YifanIndustryCo., Ltd. Page20of41
Tel:+86 592 5222813 Fax:+86 592 6101492
Email: admin@yifanwireless.com , admin@yi-fan.com.cn
Website: www.yifanwireless.com
xxxx:oneoftheaboveworkmode
◆TriggerType
Normally,IPMODEMalwayskeepsonlineandalwaysbereadyfordatatransmission.Butin
somecircumstances,it’simportanttoreducewireless dataflow.Torealizethisfunction,the
softwarecanmakesIPMODEMintosleepstateinidletime.Whenthereisapplicationdatato
transmit,IPMODEMcanbetriggeredonlineready fordatatransmission.Therearetotalfive
methodstomakeIPMODEMonline:
AUTO:IPMODEMalwayskeepsonline
SMSD:send aspecialshortmessagetomakeIPMODEMonline
CTRL:makeIPMODEMonlinethroughaphonecall toIPMODEM
DATA:send specialserialdatatomakeIPMODEMonline
MIXD:thecombinationofSMSD,CTRL,DATA.IPMODEMwill beonlinewhenmeetoneof
thesethree triggermethods.
ATCommand:
AT+ACTI=xxxx
xxxx:oneoftheabovetriggermethods
◆Debug Level
Debug informationisusedtodebugsoftwarewhenthereissoftwareproblem.
0 ---no debuginformationoutput
1 ---simplepromptinformationoutput
2 ---detail debuginformationoutput
ATCommand:
AT+DEBUG=x
x :thedebuglevelvalue
Note:OnlythereissomeproblemtotheIPMODEM,It’snecessarytosetthisvalueas2, In
normalapplications, thisvalueshouldsetto0 or1, thedefault valueis1.
This manual suits for next models
4
Table of contents
Other Yifan Modem manuals