SCAN_GET_RESULTS_MSG57vvv.com

57vvv.com  时间:2021-04-09  阅读:()
2011MicrochipTechnologyInc.
PreliminaryDS70671AMCW1001ADataSheetTCP/IPSocketCommunicationsInterfacewithGPIODS70671A-page2Preliminary2011MicrochipTechnologyInc.
Informationcontainedinthispublicationregardingdeviceapplicationsandthelikeisprovidedonlyforyourconvenienceandmaybesupersededbyupdates.
Itisyourresponsibilitytoensurethatyourapplicationmeetswithyourspecifications.
MICROCHIPMAKESNOREPRESENTATIONSORWARRANTIESOFANYKINDWHETHEREXPRESSORIMPLIED,WRITTENORORAL,STATUTORYOROTHERWISE,RELATEDTOTHEINFORMATION,INCLUDINGBUTNOTLIMITEDTOITSCONDITION,QUALITY,PERFORMANCE,MERCHANTABILITYORFITNESSFORPURPOSE.
Microchipdisclaimsallliabilityarisingfromthisinformationanditsuse.
UseofMicrochipdevicesinlifesupportand/orsafetyapplicationsisentirelyatthebuyer'srisk,andthebuyeragreestodefend,indemnifyandholdharmlessMicrochipfromanyandalldamages,claims,suits,orexpensesresultingfromsuchuse.
Nolicensesareconveyed,implicitlyorotherwise,underanyMicrochipintellectualpropertyrights.
TrademarksTheMicrochipnameandlogo,theMicrochiplogo,dsPIC,KEELOQ,KEELOQlogo,MPLAB,PIC,PICmicro,PICSTART,PIC32logo,rfPICandUNI/OareregisteredtrademarksofMicrochipTechnologyIncorporatedintheU.
S.
A.
andothercountries.
FilterLab,Hampshire,HI-TECHC,LinearActiveThermistor,MXDEV,MXLAB,SEEVALandTheEmbeddedControlSolutionsCompanyareregisteredtrademarksofMicrochipTechnologyIncorporatedintheU.
S.
A.
Analog-for-the-DigitalAge,ApplicationMaestro,chipKIT,chipKITlogo,CodeGuard,dsPICDEM,dsPICDEM.
net,dsPICworks,dsSPEAK,ECAN,ECONOMONITOR,FanSense,HI-TIDE,In-CircuitSerialProgramming,ICSP,Mindi,MiWi,MPASM,MPLABCertifiedlogo,MPLIB,MPLINK,mTouch,OmniscientCodeGeneration,PICC,PICC-18,PICDEM,PICDEM.
net,PICkit,PICtail,REALICE,rfLAB,SelectMode,TotalEndurance,TSHARC,UniWinDriver,WiperLockandZENAaretrademarksofMicrochipTechnologyIncorporatedintheU.
S.
A.
andothercountries.
SQTPisaservicemarkofMicrochipTechnologyIncorporatedintheU.
S.
A.
Allothertrademarksmentionedhereinarepropertyoftheirrespectivecompanies.
2011,MicrochipTechnologyIncorporated,PrintedintheU.
S.
A.
,AllRightsReserved.
Printedonrecycledpaper.
ISBN:978-1-61341-681-5NotethefollowingdetailsofthecodeprotectionfeatureonMicrochipdevices:MicrochipproductsmeetthespecificationcontainedintheirparticularMicrochipDataSheet.
Microchipbelievesthatitsfamilyofproductsisoneofthemostsecurefamiliesofitskindonthemarkettoday,whenusedintheintendedmannerandundernormalconditions.
Therearedishonestandpossiblyillegalmethodsusedtobreachthecodeprotectionfeature.
Allofthesemethods,toourknowledge,requireusingtheMicrochipproductsinamanneroutsidetheoperatingspecificationscontainedinMicrochip'sDataSheets.
Mostlikely,thepersondoingsoisengagedintheftofintellectualproperty.
Microchipiswillingtoworkwiththecustomerwhoisconcernedabouttheintegrityoftheircode.
NeitherMicrochipnoranyothersemiconductormanufacturercanguaranteethesecurityoftheircode.
Codeprotectiondoesnotmeanthatweareguaranteeingtheproductas"unbreakable.
"Codeprotectionisconstantlyevolving.
WeatMicrochiparecommittedtocontinuouslyimprovingthecodeprotectionfeaturesofourproducts.
AttemptstobreakMicrochip'scodeprotectionfeaturemaybeaviolationoftheDigitalMillenniumCopyrightAct.
Ifsuchactsallowunauthorizedaccesstoyoursoftwareorothercopyrightedwork,youmayhavearighttosueforreliefunderthatAct.
MicrochipreceivedISO/TS-16949:2009certificationforitsworldwideheadquarters,designandwaferfabricationfacilitiesinChandlerandTempe,Arizona;Gresham,OregonanddesigncentersinCaliforniaandIndia.
TheCompany'squalitysystemprocessesandproceduresareforitsPICMCUsanddsPICDSCs,KEELOQcodehoppingdevices,SerialEEPROMs,microperipherals,nonvolatilememoryandanalogproducts.
Inaddition,Microchip'squalitysystemforthedesignandmanufactureofdevelopmentsystemsisISO9001:2000certified.
2011MicrochipTechnologyInc.
PreliminaryDS70671A-page3MCW1001AKeyFeatures:SupportsBSDlikesocketbasedconnectionsBuilt-inWi-Ficonnectionmanagementmessages-Simplifiesfinding,connectingandmaintainingaWi-FiconnectionEasy-to-usemessaginginterfaceNoexternalmemoryrequiredConnectsthroughUniversalAsynchronousReceiver/Transmitter(UART)OperatesseamlesslywiththeMRF24WB0MA/MB802.
11modulesEasyintegrationintoafinalproduct-Acceleratesproductdevelopment,providesquickertimetomarketDesignedforusewithanymicroprocessorhostingaUARTport8general-purposedigitalI/OSmallsize:28SSOPOperational:Singleoperatingvoltage:2.
7V–3.
6V(3.
3Vtypical)Temperaturerange:-40°Cto+85°CindustrialUARTinterface,upto230KbaudLow-currentconsumption:-10mAoperationalcurrentApplications:UsingMRF24WB0MmodulewithstandardUARTinterfaceUsingcustomstackswithMicrochipmicrocontrollersMarkets:UtilityandSmartEnergy-Thermostats-SmartMeters-WhiteGoods-HVACConsumerElectronics-HomesecurityIndustrialControls-Chemicalsensors-HVAC-Securitysystems-M2McommunicationRemoteDeviceManagement-Automotive-CodeupdateRetail-POSTerminalsMedical,Fitness,andHealthcare-Glucosemeters-Fitnessequipment-PatientassettrackingTCP/IPSocketCommunicationsInterfacewithGPIOMCW1001ADS70671A-page4Preliminary2011MicrochipTechnologyInc.
PinDiagram11098765432232425262728141312111920212216171815RESETVSSVDDWINTOSC2OSC1VSSNCGPIO7GPIO6GPIO5URTSUCTSWWPGPIO4VCAPGPIO3GPIO2GPIO1GPIO0WSD0UTXURXWSCKWHIBWRSTWCSWSDIMCW1001ASSOP2011MicrochipTechnologyInc.
PreliminaryDS70671A-page5MCW1001ATableofContents1.
0DeviceOverview72.
0ExternalConnections153.
0UniversalAsynchronousReceiver(UART)194.
0NetworkConfiguration.
215.
0TransmittingAndReceivingPackets.
236.
0MessagingAPI257.
0ElectricalCharacteristics.
518.
0PackagingInformation.
57AppendixA:Revisionhistory61TheMicrochipWebSite.
63CustomerChangeNotificationService63CustomerSupport.
63ReaderResponse64ProductIdentificationSystem65TOOURVALUEDCUSTOMERSItisourintentiontoprovideourvaluedcustomerswiththebestdocumentationpossibletoensuresuccessfuluseofyourMicrochipproducts.
Tothisend,wewillcontinuetoimproveourpublicationstobettersuityourneeds.
Ourpublicationswillberefinedandenhancedasnewvolumesandupdatesareintroduced.
Ifyouhaveanyquestionsorcommentsregardingthispublication,pleasecontacttheMarketingCommunicationsDepartmentviaE-mailatdocerrors@microchip.
comorfaxtheReaderResponseForminthebackofthisdatasheetto(480)792-4150.
Wewelcomeyourfeedback.
MostCurrentDataSheetToobtainthemostup-to-dateversionofthisdatasheet,pleaseregisteratourWorldwideWebsiteat:http://www.
microchip.
comYoucandeterminetheversionofadatasheetbyexaminingitsliteraturenumberfoundonthebottomoutsidecornerofanypage.
Thelastcharacteroftheliteraturenumberistheversionnumber,(e.
g.
,DS30000AisversionAofdocumentDS30000).
ErrataAnerratasheet,describingminoroperationaldifferencesfromthedatasheetandrecommendedworkarounds,mayexistforcurrentdevices.
Asdevice/documentationissuesbecomeknowntous,wewillpublishanerratasheet.
Theerratawillspecifytherevisionofsiliconandrevisionofdocumenttowhichitapplies.
Todetermineifanerratasheetexistsforaparticulardevice,pleasecheckwithoneofthefollowing:Microchip'sWorldwideWebsite;http://www.
microchip.
comYourlocalMicrochipsalesoffice(seelastpage)Whencontactingasalesoffice,pleasespecifywhichdevice,revisionofsiliconanddatasheet(includeliteraturenumber)youareusing.
CustomerNotificationSystemRegisteronourwebsiteatwww.
microchip.
comtoreceivethemostcurrentinformationonallofourproducts.
MCW1001ADS70671A-page6Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page7MCW1001A1.
0DEVICEOVERVIEWTheMCW1001AisacompanionchiptotheMRF24WB0802.
11module.
ItprovidessimplesocketbasedmethodofsendingandreceivingdatafromtheMRF24WB0802.
11module.
TheMCW1001Ahasanon-boardTCP/IPstackand802.
11connectionmanagertosimplifytheconnectionbetweenawirelessnetworkandtheTCP/IPstackmanagement.
Aftertheinitialconfigurationisset,theMCW1001AcanaccesstheMRF24WB0802.
11moduletoconnecttoanetworkandsend/receiveserialdataoverasimpleUARTinterface.
Figure1-1illustratesageneralblockdiagramoftheMCW1001Adevice.
Figure1-2illustratesapplicationschematic.
Figure1-3illustratesapplicationblockdiagram.
Table1-1liststhefunctionsofthevariouspinsshowninthepindiagram.
Table1-2liststheUARTAPIsummaryFIGURE1-1:BLOCKDIAGRAMUARTControllerBaudGeneratorControlWi-FiTCP/IPStackMRF24WMB0DriverVSSResetOscillatorVoltageRegulatorGPIO1UTXURTSURXUCTSGPI0[0-7]VSSVDDOSC2OSC1RESETWWPWCSWSCKWSDOWSDIWINTWRSTWHIBManagerConnectionMCW1001ADS70671A-page8Preliminary2011MicrochipTechnologyInc.
TABLE1-1:PINOUTDESCRIPTIONPinNumberPinNameTypeDescription1RESETIActive-lowResettothedevice.
2GPIO0I/OGeneral-purposeI/O3GPIO1I/OGeneral-purposeI/O4GPIO2I/OGeneral-purposeI/O5GPIO3I/OGeneral-purposeI/O6VCAPIExternalfiltercapacitorconnectionforinternalregulator7GPIO4I/OGeneral-purposeI/O8VSSPGround9OSC1IOscillatorinput10OSC2OOscillatoroutput11WCSOSPISlaveselectoutputtoMRF24WB0M12WRSTOExternalResetoutputcontroltoMRF24WB0M13WHIBOHIBERNATEmodeenableoutputtoMRF24WB0M14WSCKOSPIclockoutputtoMRF24WB0M15WSDIISPIdatainputfromMRF24WB0M16WSDOOSPIdataoutputtoMRF24WB0M17UTXOUSARTasynchronoustransmit18URXIUSARTasynchronousreceive19VSSPGround20VDDPPower21WINTIExternalinterruptfromMRF24WMB022WWPOExternalwriteprotectcontroltoMRF24WB0M23UCTSIUSARTasynchronouscleartosend(optional)24URTSOUSARTasynchronousrequesttosend(optional)25GPIO5I/OGeneral-purposeI/O26GPIO6I/OGeneral-purposeI/O27GPIO7I/OGeneral-purposeI/O28NCNCNoConnectLegend:Pintypeabbreviation:P=PowerinputI=InputO=OutputNC=NoConnectNote:SignalsofType"I:Constant"musteitherbeconstantlydrivenbythehostorhaveapull-uporpull-down(incasethehostislikelytotri-statethesignalduringpowerdownmodes).
Theconstantdriveisusedtoensuredefinedoperationofthepartandtominimizeleakagecurrentduringlow-poweroperation.
2011MicrochipTechnologyInc.
PreliminaryDS70671A-page9MCW1001AFIGURE1-2:EXAMPLEAPPLICATIONSCHEMATIC2011MicrochipTechnologyInc.
PreliminaryDS70671A-page10MCW1001AFIGURE1-3:APPLICATIONBLOCKDIAGRAM2011MicrochipTechnologyInc.
PreliminaryDS70671A-page11MCW1001ATABLE1-2:UARTAPISUMMARYMessageID(Dec)MessageID(Hex)MessageTypeDestinationAPIMessageNameDescriptionControlMessages1700xAACommandMCW1001ARESET_MSGPower-onreset230x17CommandMCW1001AGET_VERSION_MSGRetrieveVersionInfo1720xACCommandMCW1001AGPIO_MSGGPIOSet/Read500x32ResponseHostCPUGPIO_RESPONSE_MSGGPIOSetorReadResultNetworkConfigurationMessages410x29CommandMCW1001ASET_IP_ADDRESS_MSGSetIPaddressandDHCPstate420x2ACommandMCW1001ASET_NETWORK_MASK_MSGSetNetworkMask440x2CCommandMCW1001ASET_GATEWAY_IP_ADDRESS_MSGSetGatewayAddress480x30CommandMCW1001AGET_NETWORK_STATUSRetrieveNetworkStatusInfo480x30ResponseHostCPUNETWORK_STATUS_RESPONSE_MSGNetworkStatusInformation490x31CommandMCW1001ASET_MACADDRESS_MSGSetMACAddress1730xADCommandMCW1001ASET_ARP_TIME_MSGSetARPRepeatTimeWi-FiGeneralConfigurationMessages550x37CommandMCW1001ASET_CP_NETWORK_MODE_MSGSetmodeforConnectionProfile570x39CommandMCW1001ASET_CP_SSID_MSGSetSSIDforConnectionProfile560x38CommandMCW1001ASET_REGIONAL_DOMAIN_MSGSetGeographicalRegionforChannelList580x3ACommandMCW1001ASET_CHANNEL_LIST_MSGSet802.
11channellist590x3BCommandMCW1001ASET_LIST_RETRY_COUNT_MSGSetconnectionretrycountWi-FiPowerManagementMessages1020x66CommandMCW1001ASET_POWER_MODE_MSGSetmodeforMRF24PowerConsumptionWi-FiSecurityConfigurationMessages650x41CommandMCW1001ASET_CP_SECURITY_OPEN_MSGSetOpenSecurityforConnectionProfile660x42CommandMCW1001ASET_CP_SECURITY_WEP40_MSGSetWEP40SecurityforConnectionProfile670x43CommandMCW1001ASET_CP_SECURITY_WEP104_MSGSetWEP104SecurityforConnectionProfile680x44CommandMCW1001ASET_CP_SECURITY_WPA_MSGSetWPASecurityforConnectionProfile710x47CommandMCW1001AGET_CP_WPAKEY_MSGRetrieveCalculatedWPAKey490x31ResponseHostCPUWPAKEY_RESPONSE_MSGCalculatedWPAKeyResponseWi-FiScanningMessages800x50CommandMCW1001ASCAN_START_MSGInitiateScanfor802.
11networks810x51CommandMCW1001ASCAN_GET_RESULTS_MSGRetrieveScanresults220x16ResponseHostCPUSCAN_RESULT_MSGScanResultInformationMCW1001ADS70671A-page12Preliminary2011MicrochipTechnologyInc.
Wi-FiConnectionMessages900x5ACommandMCW1001AWIFI_CONNECT_MSGConnecttospecifiedConnectionProfilenetwork910x5BCommandMCW1001AWIFI_DISCONNECT_MSGDisconnectfrom802.
11networkICMP(Ping)Messages1210x79CommandMCW1001APING_SEND_MSGSendPingtoICMPHostSocketMessages1100x6ECommandMCW1001ASOCKET_CREATE_MSGCreateBSDSocketforTCPorUDP230x17ResponseHostCPUSOCKET_CREATE_RESPONSE_MSGSocketCreationresult1110x6FCommandMCW1001ASOCKET_CLOSE_MSGCloseBSDSocket1120x70CommandMCW1001ASOCKET_BIND_MSGBindSocketHandletospecifiedport240x18ResponseHostCPUSOCKET_BIND_RESPONSE_MSGBindresult1130x71CommandMCW1001ASOCKET_CONNECT_MSGConnecttoremoteBSDsocket250x19ResponseHostCPUSOCKET_CONNECT_RESPONSE_MSGConnectionresult1140x72CommandMCW1001ASOCKET_LISTEN_MSGCreatechildsocketstolistenforclients260x1AResponseHostCPUSOCKET_LISTEN_RESPONSE_MSGListenresult1150x73CommandMCW1001ASOCKET_ACCEPT_MSGAcceptclientrequestforsocketconnection270x1BResponseHostCPUSOCKET_ACCEPT_RESPONSE_MSGAcceptresult1160x74CommandMCW1001ASOCKET_SEND_MSGSendDatausingspecifiedsocket280x1CResponseHostCPUSOCKET_SEND_RESPONSE_MSGSendresult1170x75CommandMCW1001ASOCKET_RECV_MSGReceiveDatafromspecifiedsocket290x1DResponseHostCPUSOCKET_RECV_RESPONSE_MSGReceiveresult1180x76CommandMCW1001ASOCKET_SEND_TO_MSGSendDatausingspecifiedsocketanddestination300x1EResponseHostCPUSOCKET_SEND_TO_RESPONSE_MSGSendToresult1190x77CommandMCW1001ASOCKET_RECV_FROM_MSGReceiveDatafromspecifiedsocketandorigin310x1FResponseHostCPUSOCKET_RECV_FROM_RESPONSE_MSGReceiveFromresult1220x7ACommandMCW1001ASOCKET_ALLOCATE_MSGAllocateSocketBuffers320x20ResponseHostCPUSOCKET_ALLOCATE_RESPONSE_MSGSocketAllocationresultTABLE1-2:UARTAPISUMMARYMessageID(Dec)MessageID(Hex)MessageTypeDestinationAPIMessageNameDescription2011MicrochipTechnologyInc.
PreliminaryDS70671A-page13MCW1001AAsynchronousEventMessagesSentFromMCW1001AtoHost10x1Event16HostCPUEVENT_MSG–IPAddressAssignedNewIPaddressassignedindication10x1Event8HostCPUEVENT_MSG–Wi-FiConnectionStatusChangedConnectionStatuschangedindication10x1Event9HostCPUEVENT_MSG–Wi-FiScanResultsReadyScancompleteindication10x1Event26HostCPUEVENT_MSG–PingResponseEventPingresponsefromICMPserverresultindication10x1Event255HostCPUEVENT_MSG–ErrorEventErrorindicationcontainingerrorinformation10x1Event27HostCPUEVENT_MSG–StartupEventVersionInformationandResetReasonTABLE1-2:UARTAPISUMMARYMessageID(Dec)MessageID(Hex)MessageTypeDestinationAPIMessageNameDescriptionMCW1001ADS70671A-page14Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page15MCW1001A2.
0EXTERNALCONNECTIONS2.
1OscillatorMCW1001Adevicesaredesignedtooperatefromafixed8MHzcrystalclockinput,asshowninFigure2-1.
FIGURE2-1:CRYSTALOSCILLATOROPERATION2.
2VDDANDVSSPINS2.
2.
1DECOUPLINGCAPACITORSTheuseofdecouplingcapacitorsonallpowersupplypins,suchasVDD,VSS,arerequired.
Considerthefollowingcriteriawhenusingdecouplingcapacitors:Valueandtypeofcapacitor:A0.
1μF(100nF)and10–20Vcapacitorisrecommended.
Thecapacitorshouldbealow-ESRdevicewitharesonancefrequencyintherangeof200MHzandhigher.
Ceramiccapacitorsarealsorecommended.
Placementontheprintedcircuitboard:Thedecouplingcapacitorsshouldbeplacedasclosetothepinsaspossible.
Itisrecommendedtoplacethecapacitorsonthesamesideoftheboardasthedevice.
Ifspaceisconstricted,thecapacitorcanbeplacedonanotherlayerofthePCBusingavia;however,ensurethatthetracelengthfromthepintothecapacitorisnotgreaterthan0.
25inch(6mm).
Handlinghighfrequencynoise:Iftheboardisexperiencinghighfrequencynoise(upwardoftensofMHz),addasecondceramictypecapaci-torinparalleltotheabovedescribeddecouplingcapacitor.
Thevalueofthesecondcapacitorcanbeintherangeof0.
01μFto0.
001μF.
Placethissecondcapacitornexttoeachprimarydecouplingcapacitor.
Inhigh-speedcircuitdesigns,considerimplementingadecadepairofcapacitancesasclosetothepowerandgroundpinsaspossible(e.
g.
,0.
1μFinparallelwith0.
001μF).
Maximizingperformance:Ontheboardlayoutfromthepowersupplycircuit,runthepowerandreturntracestothedevicepins.
Thisensuresthatthedecouplingcapacitorsarefirstinthepowerchain.
Itisequallyimportanttokeepthetracelengthbetweenthecapacitorandthepowerpinstoaminimum,therebyreducingPCBtraceinduc-tance.
2.
2.
2TANKCAPACITORSOnPCBboardswithpowertracesrunninglongerthansixinchesinlength,itissuggestedtouseatankcapac-itorforintegratedcircuits,includingmicrocontrollers,tosupplyalocalpowersource.
Thevalueofthetankcapacitorshouldbedeterminedbasedonthetraceresistancethatconnectsthepowersupplysourcetothedevice,andthemaximumcurrentdrawnbythedeviceintheapplication.
Inotherwords,selectthetankcapacitorsothatitmeetstheacceptablevoltagesagatthedevice.
Typicalvaluesrangefrom4.
7μFto47μF.
2.
2.
3VOLTAGEREGULATORPINS(VCAP)Alow-ESR(–Designedtodrivehighercurrentloads,suchasLED's.
GPIO–Designedforsmallloads,typicallyindicationonly.
Table2-2summarizestheoutputcapabilities.
Formoreinformation,refertotheSection7.
0,ElectricalCharacteristics.
TABLE2-2:OUTPUTDRIVELEVELS:2.
5.
3INTERFACINGTOA+5VSYSTEMThoughtheVDDMAXoftheMCW1001Ais3.
6V,thisdeviceisstillcapableofinterfacingwith5Vsystems,eveniftheVIHofthetargetsystemisabove3.
6V.
Thisisaccomplishedbyaddingapull-upresistortotheGPIOpin,seeFigure2-2.
Toproduceahighoutput,theGPIOpinmustbeconfiguredasaninput,andtoproducealowoutput,theGPIOpinmustbeconfiguredasanoutputandsetlow.
OnlyGPIOpinsthataretolerantofvoltagesupto5.
5Vcanbeusedforthistypeofinterface.
FIGURE2-2:+5VSYSTEMHARDWAREINTERFACEPinToleratedInputDescriptionGPIOVDDOnlyVDDinputlevelsaretolerated.
GPIO5.
5VToleratesinputlevelsaboveVDDandusefulformoststandardlogic.
PinDriveDescriptionGPIOMediumIntendedforindication.
GPIOHighSuitablefordirectLEDdrivelevels.
GPIO1+5VDevice+5VMCW1001AMCW1001ADS70671A-page18Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page19MCW1001A3.
0UNIVERSALASYNCHRONOUSRECEIVER(UART)TheMCW1001AUARTinterfaceconsistsoftheUTXandURXdatasignalsandtheURTS/UCTSflowcontrolpins.
TheUARTisconfigurableforseveralbaudrates.
TheavailabledataformatsandbaudratesarelistedinTable3-1.
3.
1InitialConfigurationFromReset,theUARTisconfiguredfor115200baud,8bits,noparity,and2stopbits.
Thereceiverdoesnotrequire2stopbits,buttheMCW1001Awillalwaystransmitserialdatawith2stopbits.
Itisrecommendedthatthehostuse2stopbitstoimprovesynchronizationwithlongpackets.
3.
2AutobaudRateTheautobaudfeatureoftheMCW1001Arequiresthattheinitialbytesentfromthehostbe0x55.
FromReset,autobaudisenabled,andthefirstbytesentwillsettherate.
Thistypicallyrequiresnospecialconsiderationasthefirstcharacterofeverywell-formedpacketcontains0x55.
Becausethereceiptofthischaractercannotbeguaranteed,therearetwomeansofresettingbacktotheinitializationpoint.
ThefirstisanactiveReset(pullURTSlowandreturnhigh),andthesecondisanauto-retry.
Ifavalidfully-formedmessageisnotreceived(indicatingasynchronizedbaudrate)within1safterthefirstbytethatsetthebaudrate,WiComm-Socketwillreinitializetheautobaudprocedureandwaitforthenext0x55inputtosetthebaudrate.
3.
3RoundingErrorsTheprimarybaudratesetting(withtheroundingerrors)isshowninTable3-1.
Ifbaudratesotherthantheonesshowninthetableareused,theerrorpercentagecanbecalculatedusingEquation3-1tofindtheactualbaudrate.
3.
4HardwareFlowControlHardwareflowcontrolusestheURTSandUCTSpinsasahandshakebetweentwodevices.
TheURTSpinofonedeviceistypicallyconnectedtotheUCTSoftheotherdevice.
URTSisanactive-lowoutputthatnotifiestheotherdevicewhenitisreadytoreceivedatabydrivingthepinlow.
TheMCW1001Atrippointforde-assertingURTS(high)is499characters.
Thisisonecharactershortof"bufferfull".
UCTSisanactive-lowinputthatnotifiestheMCW1001Awhenitisreadytosenddata.
TheMCW1001AwillcheckUCTSjustbeforeloadingandsendingUARTdata.
Ifthepinisassertedduringatransfer,thetransferwillcontinueasshowninFigure3-1.
3.
5FlowControlDisabledHardwarehandshakingmaybecircumventedbyphysicallytyingtheUCTSinputlow(active)insteadofallowingittobedrivenbytheURTSsignalfromthehost.
Inthiscase,theURTSoutputshouldbeleftunconnected,andallowedtofreelychangestate.
FIGURE3-1:URTS/UCTSCONNECTIONSEXAMPLEEQUATION3-1:SOLVINGFORACTUALBAUDRATEURTSURTSUCTSUCTSIamreadytoreceiveI'lltransmitifokayIamreadytoreceiveI'lltransmitifokayMCUMCW1001AActualRate12MHzintx()-=Where:x12MHzDesiredBaud-=MCW1001ADS70671A-page20Preliminary2011MicrochipTechnologyInc.
TABLE3-1:UARTPRIMARYBAUDRATESDesiredRateActualRateAutoBaudCalculatedDivisor(x)%Error300300400000.
00%12001200100000.
00%2400240050000.
00%4800480025000.
00%9600960012500.
00%19200192006250.
00%3840038339313-0.
16%57600576922080.
16%1152001153851040.
16%230400230769520.
16%2011MicrochipTechnologyInc.
PreliminaryDS70671A-page21MCW1001A4.
0NETWORKCONFIGURATIONConfiguringtheMCW1001Atomakeaconnectionataminimumrequiressettingthenetworktype,choosingthenetworknameandsettingupthesecurityparameters.
ItispossibletostoreconnectioninformationfortwodifferentConnectionProfiles(CP)intheMCW1001A.
Afterthisinformationisprovided,thenetworkconnectionprocesscanbeinitiatedbyreferencingonlytheprofilenumber(1or2).
4.
1Configuring802.
11LinkTherearetwotypesofnetworks.
Themostcommonnetworkisinfrastructureinwhichanaccesspoint(AP)isthecommonpointlinkingall802.
11devices.
Theaccesspointkeepstrackofwho'sonthelocalnetworkanddirectsIPpackets.
Inmanycases,theAPisalsoarouterandwillforwardpacketsfromthelocalnetworktoothernetworksandtotheInternet.
ItisalsocommonfortheAPtoberunningaDHCPserverwhichtracksandassignsIPaddresses.
Thesecondtypeisadhoc,whichisconsideredapoint-to-pointnetworkinthateach802.
11deviceislinkeddirectlytoeveryother802.
11deviceontheadhocnetwork.
Thereisnoaccesspoint.
All802.
11devicesontheadhocnetworkparticipateinkeepingthenetworkaliveandeachkeepstrackoftheotheractivedevicesonthenetworkbysendingandreceivingbeaconandprobepackets.
Inmostcases,IPaddressesareassignedthroughAutoIP,althoughoneofthe802.
11devicescanbeconfiguredasaDHCPserver.
Bydefault,theMCW1001AwilloperateasaDHCPserverforoneadhocclientthatmayjoinanetworkcreatedbytheMCW1001A,buttheIPaddressoftheMCW1001AcanbesettoastaticvaluethroughtheAPI.
TheMCW1001Ahandlesconnectionmanagementinternallyunderthedirectionofthehost.
Thefollowingexampleillustratesatypicalconnectionprocess:EXAMPLE4-1:CREATINGAN802.
11LINKThefollowingistheproceduretocreatean802.
11link:1.
Powerupsystemandde-asserttheRESETsignaltotheMCW1001A.
2.
HostwillreceiveanasynchronousResetmessagefromMCW1001AusingthedefaultUARTconfiguration.
3.
HostsetsdesirednetworkconfigurationthroughtheAPI(mayincludescanningfortheavailablenetworkconnectionsandchoosingbasedonthescanresults).
4.
HostIssuesConnectcommand.
5.
TheMCW1001AthenhandlesconnectiontothenetworkandsendsasynchronousEventmes-sagewhenconnectionstatuschanges.
4.
2VerifyingtheNetworkLinkToverifyanetworklinkisestablished,theMCW1001AcanoperateasanICMPhostand/orclient.
Totesttheoperationasahost,issueaPingfromanotherdeviceonthenetworktotheIPaddressobtainedorsetfortheMCW1001A.
TheMCW1001AwillrespondtothePingifthenetworkisfunctional.
Totesttheoperationasaclient,usetheMCW1001AAPItoissueaPingtoadeviceonthenetworkthathasbeenpreviouslyverifiedtooperateasanICMPserver.
Inbothcases,verifythattheIPsubnetmaskandgatewayareconfiguredthroughtheMCW1001AAPI.
4.
3NetworkStackConfigurationTheMCW1001AhaslimitedresourcesintermsofRAMavailabletobuffersocketdataandmaintaininformationaboutsocketconnections.
SupportexistsforTCPandUDPsockets,butamaximumof8instancesofeachareallowed.
UDPdataisnotbufferedbyMCW1001A.
WhenthehostMCUinitiatesanAPIUDPSend,thedatasentovertheserialportisimmediatelysenttothenetwork.
Similarly,whenevertheMCW1001AreceivesUDPsocketdatafromthenetwork,thatdataispassedasynchronouslytothehostifthehosthasissuedaRecvFromorRECVSocketcommandforthesocketreceivingthedata.
BylimitingtheUDPsocketinstancesto8,theRAMrequiredtomaintaininformationabouttheUDPsocketsislimited.
TCPdatamustbebufferedbyMCW1001Ainboththedirections.
ATCPsocketmaybeeitheraServer(respondstoremoteclientrequests)oraClient(requestsdatafromremoteServers).
8192bytesofRAMhavebeenallocatedforTCPsocketdatabuffers.
AsitisimpracticaltodecideinadvancewhattheallocationofthisRAMintermsofhowmanysocketsareavailableorhowlargethebuffersforthesocketsare.
TheMCW1001AusesasocketallocationtechniquethatallowstheavailableRAMtobeconfiguredbythehostpriortothecreatingofsockets.
Bydefault,8TCPsocketsexist,eachwitha512bytetransmitandreceivebuffer.
Twosocketsareclientsockets,andremainingsixareserversockets.
ThenumberofTCPsocketscanbereducedtolessthanorequalto8,andtheamountofRAMforthesendandreceivebufferscanbeadjustedfortheclientandserversockettypesallowingthe8192bytestobeallocatedtoTCPsocketsinaslargeas1500byteblocks.
Allserversocketsmustbethesamesize,andallclientsocketsmustbethesamesize.
Note:AnasynchronouseventwillbesenttothehostifthestatusoftheconnectionmaintainedbyMCW1001Achanges.
MCW1001ADS70671A-page22Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page23MCW1001A5.
0TRANSMITTINGANDRECEIVINGPACKETS5.
1TCPTCPisastandardtransportlayerprotocoldescribedinRequestforComments(RFC)793.
Itprovidesreliablestream-basedconnectionsoverunreliablenetworks,andformsthefoundationforHTTP,SMTP,andmanyotherprotocolstandards.
ConnectionsmadeoverTCPguaranteedatatransferattheexpenseofthroughput.
Connectionsaremadethroughathree-wayhandshakeprocess,ensuringaone-to-oneconnection.
Remotenodesadvertisehowmuchdatatheyarereadytoreceive,andalldatatransmittedmustbeacknowledged.
Ifaremotenodefailstoacknowledgethereceiptofdata,itisautomaticallyretransmitted.
Thisensuresthatnetworkerrorssuchaslost,corrupted,orout-of-orderpacketsareautomaticallycorrected.
Toaccomplishthis,TCPmustoperateinabuffer.
Oncethetransmitbufferisfull,nomoredatacanbesentuntiltheremotenodehasacknowledgedreceipt.
Likewise,theremotenodecannottransmitmoredatauntilthelocaldevicehasacknowledgedreceiptandthatspaceisavailableinthebuffer.
ThefollowingexampleillustrateshowtouseTCPpackets:EXAMPLE5-1:USINGTCPPACKETSTheMCW1001ATCPsocketscanbeconfiguredasserversorclients.
TheprocedurefortransferringTCPpacketdataineachconfigurationdiffersslightly.
5.
1.
1MCW1001ATCPSERVEREXAMPLE:1.
CreateaTCPsocketwithcalltosocket().
Thiswillreturnan8-bitsockethandletobeusedwhenlaterreferencingthissocket.
2.
Bindthesockettothelistenportwithcalltobind().
ThebindAPIspecifiesthe16-bitlocalportnumberthattheclientwillattemptaconnectionon.
3.
Preparethesockettolistenforaconnectionwithcalltolisten().
Thelistenprocessopensthespecifiednumberoflisteningsocketsthatbecomethechildrensocketsoftheboundparent.
Theywillalllistentotheportspecifiedinthebindprocess,buttheymayacceptconnectionsfromdifferentclients(differentIPaddresses,differentremoteportnumbers).
Ifthenumberofsocketsspecifiedisnotavailable,thelistenprocesswillreturnthenumberofsocketsitwasnotabletoallocate.
4.
Acceptincomingconnectionthroughacalltoaccept().
Acceptisnon-blockingfortheMCW1001AandacceptingaconnectionfromaclientmustbedonethroughpollingthesocketwiththeAcceptAPI.
5.
Communicatewiththeremotehostusingsend()andrecv().
6.
Closethesocketwithcalltoclose().
5.
1.
2MCW1001ATCPCLIENTEXAMPLE:1.
CreateaTCPsocketwithcalltosocket().
2.
Optionallyapplyalocalportnumberwithacalltobind().
Otherwise,apseudo-randomlocalportnumberwillbeassigned.
3.
Connecttotheserverwithcalltoconnect(),passingsockaddr,IPaddress.
4.
Communicatewiththeremotehostusingsend()andrecv().
5.
Closethesocketwithcalltoclose().
MCW1001ADS70671A-page24Preliminary2011MicrochipTechnologyInc.
5.
2UDPUDPisastandardtransportlayerprotocoldescribedinRequestforComments(RFC)768.
Itprovidesfastbutunreliabledata-grambasedtransfersovernetworks,andformsthefoundationSNTP,SNMP,DNS,andmanyotherprotocolstandards.
ConnectionsoverUDPshouldbethoughtofasdata-grambasedtransfers.
Eachpacketisaseparateentity,theapplicationshouldexpectsomepacketstoarriveout-of-orderorevenfailtoreachthedestinationnode.
ThisisincontrasttoTCP,inwhichtheconnectionisthoughtofasastreamandnetworkerrorsareautomaticallycorrected.
Thesetradeoffsinreliabilityaremadeforanincreaseinthroughput.
Ingeneral,UDPtransfersoperatetwotothreetimesfasterthanthosemadeoverTCP.
AsUDPispacket-oriented,eachpacketmustbedealtwithinitsentiretybyyourapplicationbeforereturningtothemainstackloop.
Whenapacketisreceived,yourapplicationwillbecalledtohandleit.
Thispacketwillnolongerbeavailablethenexttimeyourapplicationiscalled.
Therefor,youmusteitherperformallnecessaryprocessingorcopythedataelsewherebeforereturning.
Whentransmittingapacket,yourapplicationmustbuildandtransmitthecompletepacketinonecycle.
ThefollowingexampleillustrateshowtousetheTCPpackets.
EXAMPLE5-2:USINGUDPPACKETSTheMCW1001AUDPsocketsrequirelessconfigurationthantheTCPcounterparts.
SendingpacketsusingUDPsocketscanbeaccomplishedbycreatingthesocketandissuingaSendto()commandspecifyingthedestinationaddressandportnumber.
ReceivingpacketsonaUDPsocketrequiresanextrabindsteptosetthelocalportnumber.
5.
2.
1MCW1001AUDPSERVEREXAMPLE:1.
CreateaUDPsocketwithacalltosocketspecifyingtheUDPsockettype.
Ifsuccessful,an8-bitsockethandlewillbereturned.
2.
Bindthesockettoalocalportnumberwithacalltobind()3.
Receivedatausingthissocketwithacalltorecvfrom()4.
OptionallyreplytotheclientwithacalltoSendto()specifyingthereturnedaddressandportnumberreturnedintherecvfrom()call.
5.
2.
2MCW1001AUDPCLIENTEXAMPLE:1.
CreatetheUDPsocketwithacalltosocketspecifyingtheUDPsockettype.
Ifsuccessful,an8bitsockethandlewillbereturned.
2.
TransmitdatatoaremoteUDPserverwithacalltoSendto()specifyingtheremoteIPaddressandportnumber.
3.
Optionallyreceivedatafromtheserverusingthissocketwithacalltorecvfrom().
2011MicrochipTechnologyInc.
PreliminaryDS70671A-page25MCW1001A6.
0MESSAGINGAPITheAPIbetweenthehostprocessorandtheMCW1001Acanbedividedintotwologicalgroupsofcommands.
Thefirstsetofcommandsdealwith802.
11connectionmanagement,whilethesecondsetdealswiththeBSDSocketInterface.
InadditiontocommandssentfromthehosttotheMCW1001A,severalasynchronousmessagescanbetransmitteddirectlyfromtheMCW1001Atothehostlike:IPaddressassigned802.
11connectionstatuschanged802.
11scanresultsreadyPingresponseeventErrorEvent(includingResetcondition)ThesizeofthetransmitandreceivebuffersfortheserialAPIarelimitedforMCW1001A.
While,itispossibleforthehosttoreceiveamessagefromtheMCW1001Aaslargeas1536bytes,itispossibleonlytotransmitmessagestotheMCW1001Ain500bytepackets.
6.
1OverviewTheWiComm-SocketSerialinterfacesupportsUARTcommunicationwithahostsystemusingnoparity,8databits,and2stopbits(N,8,2).
Bydefault,thebaudrateis115200BPS,butautobaudmaybeusedtoadjustthisrate.
TherateatwhichthehostsendsthefirstcharactertoWiComm-Socket(0x55)determinesthedatarate.
Theallowedvaluesarebetween300baudand230400baud.
6.
2WiComm-SocketPacketFormatFigure6-1showsthepacketformatforallserialmessagesexchangedbetweenthehostandWiComm-Socket.
FIGURE6-1:HOSTCPUPACKETFORMATHeader0–Always0x55Header1–Always0xAAMsgType–16-bitfieldcontainingthemessagetypeMsgDataLength–16-bitfieldcontainingthenumberofdatabytesthatfollow(canbe0)MsgData–MessagedatabytesTrailer–Alwaysonebyteequalto0x45Fromtheperspectiveofthehost,WiComm-Sockethasalittle-endianinterface.
All16and32-bitmessagefieldsarerepresentedinanlittle-endianformat.
WhereanIPaddressisspecified,16bytesareallocatedforfuturecompatibilitywithIPv6.
However,forthecurrentimplementationofWiComm-Socket,IPv4isusedexclusively,andthefirst(leftmost)4bytesofthe16bytefieldrefertotheIPv4address.
Header0(1)Header1(1)MsgType(2)MsgDataLength(2)MsgData(0thruN)Trailer(1)MCW1001ADS70671A-page26Preliminary2011MicrochipTechnologyInc.
6.
3WiComm-SocketControlMessagesMessagesdescribedinthissectionareusedtomanageWicomm-Socketinareasunrelatedtowirelessnetworking.
6.
3.
1RESET_MSG(170COMMAND)WiComm-SocketcanberesettotheinitializationvectorbyissuingtheRESET_MSG.
Becasuethereisnointernalnon-volatilememory,allconfigurationparameterswillberesettodefaultvalues.
AsingleACK_MSGwillconfirmreceiptofthiscommandpriortothereset.
Uponasuccessfulreset,WiComm-SocketwillissueanEVENT_MSG-StartupEvent.
ResponseMessage:ACK_MSG6.
3.
2GET_VERSION_MSG(23COMMAND)Inresponsetothiscommand,Wicomm-SocketwillissuetheEVENT-MSG–StartupEventwhichcontainsversioninfor-mation.
ResponseMessage:ACK_MSGfollowedbyasynchronousEVENT_MSG–StartupEvent6.
3.
3GPIO_MSG(172COMMAND)WiComm-Socketcanbedirectedtowrite/readto/fromGPIOpinsbythehost.
RefertothecomponentdiagramforGPIOindexnumbersthatcorrespondtoparticularpackagepins.
Usingthisindex,thehostmayusethiscommandtoforcetheI/Opintosourcecurrentasanoutputineitherahighorlowlogicstate,orthehostmayreadthepinstatebyusing"ReadInput"astheGPIOoperation.
AGPIOresponsewillbeissuedtoallowWiComm-Sockettoreportthecurrentstateoftheselectedpin.
ResponseMessage:GPIO_RESPONSE_MSG6.
3.
4GPIO_RESPONSE_MSG(50RESPONSE)InresponsetoaGPIO_MSG,WiComm-SocketwillreturnthecurrentstateoftheparticularI/Opin.
Thismessagecon-tainstheindexofthepinthathasbeenoperatedon,andtheresultoftheoperation.
ResponseMessage:GPIO_RESPONSE_MSGMsgByteIndexDescription0:5Header;MessageType=170,DataLength=060x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=23,DataLength=060x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=172,DataLength=26GPIOIndex7GPIOOperation-0=SetOutputLow,1=SetOutputHigh,2=ReadInput80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=50,DataLength=26GPIOIndex7GPIOResult–0=OutputLow1=OutputHigh2=InputLow3=InputHigh255=InvalidIndex80x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page27MCW1001A6.
4NetworkConfigurationMessagesTheNetworkconfigurationmessagesareusedtoconfigurethebasicnetworksettings.
Thedefaultnetworkconfigurationmessagesare:UseDHCPtoassignIPaddressDHCPname'W'+last6digitsofMACaddressNoGatewayIPaddressneededNoDNSIPaddressneededNetmask=255.
255.
255.
0Themessagesdescribedinthissectionareusedtochangethedefaultnetworkconfiguration.
6.
4.
1SET_IP_ADDRESS_MSG(41COMMAND)BydefaultWiComm-SocketusesDHCPtogetanIPaddress.
ThismessagecanconfigureWiComm-SockettouseastaticIPaddressorswitchbacktousingDHCP.
WiComm-SocketalwaysrespondstothismessagewithanACK_MSG.
Inaddition,ifusingDHCP,anEVENT_MSGcontainingtheIPaddresswillbesenttothehostCPUasynchronouslywhenWiComm-SocketisassignedanIPaddressbyanAP.
ResponseMessage:ACK_MSG6.
4.
2SET_NETWORK_MASK_MSG(42COMMAND)BydefaultWiComm-Socketwilluseanetworkmaskof255.
255.
255.
0tosetthenetworkmaskconfiguration.
ResponseMessage:ACK_MSG6.
4.
3SET_GATEWAY_IP_ADDRESS_MSG(44COMMAND)BydefaultWiComm-SockethasaGatewayIPaddressof0.
0.
0.
0(signifyingthatthereisnoGateway)tosetthenetworkmassconfiguration.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=41,DataLength=186Reserved7StaticIPaddressflag:0–UseDHCPtoassignIPaddress(default)1–UsestaticIPaddressIfusingstaticIPaddressthensetthenextdatafieldtothestaticIPaddress.
Otherwise,settheIPaddressbytesto0.
8:23StaticIPaddress240x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=42,DataLength=166:21NetworkMask(e.
g.
255.
255.
0.
0)220x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=44,DataLength=166:21GatewayIPaddress.
IftheGatewayIPaddressissetto0.
0.
0.
0thenWiComm-Socketwillnotuseagateway.
220x45(FrameTrailer)MCW1001ADS70671A-page28Preliminary2011MicrochipTechnologyInc.
6.
4.
4GET_NETWORK_STATUS(48COMMAND)ThisfunctionqueriesWiComm-Socketforthecurrentnetworkstatus(seenetworkstatusresponsemsg).
ResponseMessage:Network_Status_Response_Msg6.
4.
5NETWORK_STATUS_RESPONSE_MSG(48RESPONSE)ThismessagesentbyWiComm-Socketdescribesthespecifiednetworkinterfaceconfigurationandwhetheritiscurrentlyconnected.
6.
4.
6SET_MACADDRESS_MSG(49COMMAND)SpecifiestheMACAddress.
Thiscommandshouldonlybeusedatinitialization.
ResponseMessage:ACK_MSG6.
4.
7SET_ARP_TIME_MSG(173COMMAND)ThismessageallowstheautomaticorgratuitousARPtimingtobecustomized.
Bydefault,whenconnected,WiComm-SocketwillissueanARPat5secondintervals.
ByusingthisAPI,theARPperiodcanbeadjustedupto65535seconds.
Aspecialcaseof0turnsofftheautomaticARPfunction.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=48,DataLength=060x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=48,DataLength=566Reserved7:12MACAddress(6bytes)13:28IPAddress(16bytes)29:44NetworkMask(16bytes)45:60GatewayAddress(16bytes)61NetworkStatus–0=NotConnectedStaticIP1=ConnectedStaticIP2=NotConnectedDHCP3=ConnectedDHCP620x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=48,DataLength=66:11MACAddress(6bytes)120x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=173,DataLength=26:7ARPperiodinseconds80x45(frametrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page29MCW1001A6.
5Wi-FiGeneralConfigurationMessagesTwoCPscanbedefinedandstoredonWiComm-SocketFLASH.
ACPconsistsofthefollowingelements:Networkmode–(default:Infrastructure)SSID–(default:"WiCommSocketAP")ChannelList–(defaultforinfrastructure:channels1,6,11)and(defaultforadhoc:channel6)Securitymode–(default:Open)ThemessagesdescribedinthissectionconfigurethefirstthreeelementsoftheCP.
TheSecuritymodeconfigurationchangeisdescribedinSection6.
6,Wi-FiSecurityConfigurationMessages.
6.
5.
1SET_CP_NETWORK_MODE_MSG(55COMMAND)Thismessageisusedtoidentifytheprofileeitherasaninfrastructureorasadhocnetwork.
ResponseMessage:ACK_MSG6.
5.
2SET_CP_SSID_MSG(57COMMAND)ThedefaultSSIDis'WiCommSocketAP".
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=55,DataLength=26ConnectionProfileIDRange:1or27Networkmode:1–Infrastructure(default)2–adhoc80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=57,DataLength=equaltoSSIDLength+26ConnectionProfileIDRange:1or27SSIDLength(1to32characters)81stcharacterofSSID92ndcharacterofSSID10:NRemainingcharactersofSSIDN+10x45(FrameTrailer)MCW1001ADS70671A-page30Preliminary2011MicrochipTechnologyInc.
6.
5.
3SET_REGIONAL_DOMAIN_MSG(56COMMAND)ThismessagesetstheregionaldomainandareapplicabletoallCPs.
ResponseMessage:ACK_MSG6.
5.
4SET_CHANNEL_LIST_MSG(58COMMAND)ThismessagesetsthechannellistthatwillbescannedifthespecifiedCPisactivated.
Thedefaultchannellistis1,6,and11forinfrastructureandchannel6foradhocandareapplicabletoallCPs.
ResponseMessage:ACK_MSG6.
5.
5SET_LIST_RETRY_COUNT_MSG(59COMMAND)Thismessagesetstheconnectionmanagerretrycount.
ThereareseparatevaluesforInfrastructureandadhocbecauseadhocbehaviormayrequireterminatingtheconnectionretriesafteracertainnumberinordertoestablishanewnetwork.
Usingavalueof0representsnoretriesfortheconnectionifthefirstattemptfails,andusingavalueof255representsretryingthenetworkconnectionforever.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=56,DataLength=16CountryCode0:FCC(default)1:IC2:ETSI3:SPAIN4:FRANCE5:JAPANA6:JAPANB7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=58,DataLength=Numberofchannelsinlist+26NumberofchannelsinlistNumberofchannelstoscaninthelistthatfollows.
Maximumof11channelsaresupported.
7Reserved81stchannelnumberinlist92ndchannelnumberinlist10:NRemainingchannelnumbersinlistN+10x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=59,DataLength=26InfrastructureModeRetryConnectionCount(defaultis255=forever)7adhocModeRetryConnectionCount(defaultis5)80x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page31MCW1001A6.
6Wi-FiSecurityConfigurationMessagesThissectionincludesmessagesrequiredtosetaCPtoaspecifiedsecuritylevel.
Thedefaultsecuritylevelisopensecurity.
Themessagesinthissectionaremutuallyexclusive–everymessageinthisgroupthatissenttoWiComm-SocketoverridestheprevioussecuritysettingsforthatCP.
6.
6.
1SET_CP_SECURITY_OPEN_MSG(65COMMAND)ThisistheWiComm-SocketdefaultforaCP.
ResponseMessage:ACK_MSG6.
6.
2SET_CP_SECURITY_WEP40_MSG(66COMMAND)ThismessageisusedtoconfiguretheWEP40key.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=65,DataLength=26ConnectionProfileID:Range:1or27Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=66,DataLength=246ConnectionProfileID:-Range:1or27Keymode:-OpenKey=0-SharedKey=18DefaultWEPKeyIndexSpecifieswhichofthe4keysdefinedinsecuritykeystousewhenconnecting.
Range:0–3(normally0)9—10:29SecuritykeysFour5bytekeysarewrittentothisblock300x45(FrameTrailer)MCW1001ADS70671A-page32Preliminary2011MicrochipTechnologyInc.
6.
6.
3SET_CP_SECURITY_WEP104_MSG(67COMMAND)ThismessageisusedtoconfiguretheWEP104key.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=67,DataLength=566ConnectionProfileID:Range:1or27Keymode:-OpenKey=0-SharedKey=18DefaultWEPKeyIndexSpecifieswhichofthe4keysdefinedinsecuritykeystousewhenconnecting.
Range:0–3(normally0)9Reserved10-61SecuritykeysFour13bytekeysarewrittentothisblock620x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page33MCW1001A6.
6.
4SET_CP_SECURITY_WPA_MSG(68Command)ThismessageisusedtoconfigureWiComm-SockettouseeitherWPAorWPA2wirelesssecurity.
ResponseMessage:ACK_MSG6.
6.
5GET_CP_WPAKEY_MSG(71COMMAND)MessagesentfromtheHosttoWiComm-SockettodeterminethecalculatedPSKkey.
AfteraconnectionhasbeenestablishedwithaWPApassphrase,thiscommandcanbeusedtoreadthe32bytecalculatedkeyfromWiComm-Socket.
TheHostcanthenstorethiskeyforuseatalatertimeinsecuritymodes3,5or7toavoidthe30secondkeycalculationstepdescribedaboveinfutureconnections.
ResponseMessage:WPAKEY_RESPONSE_MSGMsgByteIndexDescription0:5Header;MessageType=68,DataLength=SecuritykeyLength+46ConnectionProfileID:Range:1or27SecurityTypeValueDescription3UseWPAsecurity.
BinaryPre-sharedKey(PSK)keywillbeprovidedinsecuritykey4UseWPAsecurity.
ASCIIWPApassphrasewillbeprovidedinsecuritykeyandwhileconnectingtheMRF24WB0MwillcalculatethePSKkey(whichcantakeupto30seconds)5UseWPA-2security.
BinaryWPA-2keywillbeprovidedinsecurityKey6UseWPA-2security.
ASCIIWPA-2passphrasewillbeprovidedinsecurityKey,andwhileconnecting,theMRF24WB0MwillcalculatethePSKkey(whichcantakeupto30seconds).
7Sameas(3)and(5),exceptWiComm-SocketconnectstotheAPusinghighestlevelsecuritythattheAPsupports(WPAorWPA2).
8Sameas(4)and(6),exceptconnectionmanagerconnectstotheAPusinghighestlevelsecuritytheAPsupports(WPAorWPA2).
Note:WhenusinganASCIIpassphraseinsteadofabinarykey,WiComm-Socket,whenconnecting,willtakeapproximately30(TBD)secondstocalculatethebinarykey.
8Reserved9SecuritykeyLengthNumberofbytesinsecuritykeyfield(1–64)10:N+9SecuritykeyEitherthebinarykeybytesorthepassphrasebytes.
ThelengthofthisfieldmustbeequaltosecuritykeylengthN+100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=71,DataLength=26ConnectionProfileID:Range:1or27Reserved80x45(FrameTrailer)MCW1001ADS70671A-page34Preliminary2011MicrochipTechnologyInc.
6.
6.
6WPAKEY_RESPONSE_MSG(49RESPONSE)Thisresponsecontainsthe32bytesecuritykeycalculatedfromtheSSIDandpassphrasebyWiComm-Socket.
ThisvalueisonlyvalidifaconnectionbasedonthesuppliedpassphrasehasbeenmadeinoneoftheWPAsecuritymodes.
MsgByteIndexDescription0:5Header;MessageType=49,DataLength=326:37SecurityKey(32bytes)380x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page35MCW1001A6.
7Wi-FiScanningMessages6.
7.
1SCAN_START_MSG(80COMMAND)ThismessagedirectsWiComm-Sockettoscanforaccesspoints(APs)usingthesettingsfromthespecifiedCP.
TheimmediateresponsetothismessageistheACK_MSG.
AftertheFTPoperationhascompletedtheEVENT_MSG–Wi-FiScanResultsReadywillbesenttothehostCPU.
ThescanresultscanthenberetrievedthroughtheSCAN_GET_RESULTS_MSG.
NotethatScanmayonlybeperformedinthedisconnectedstate,andwhenascanisinprocess,theonlycommandWiComm-Socketwillacceptistherebootcommand.
ResponseMessage:ACK_MSG6.
7.
2SCAN_GET_RESULTS_MSG(81COMMAND)Thismessageisusedtoretrievethescanresultsfromthemostrecentscan.
ItcanbecalledaftertheEVENT_MSG–Wi-FiScanResultsReadyisreceived.
ResponseMessage:SCAN_RESULT_MSGMsgByteIndexDescription0:5Header;MessageType=80,DataLength=26ConnectionProfileID:-Range:1or2[selectdefinedCP]-0xFF[scaneverything]IfusingadefinedCP,thenthecriteriawithinthatCPwillbeusedforthescan(forexample:scanforthatCP'sSSIDusingtheCP'schannellist).
IftheCPisinfrastructurethenonlyscanresultsfrominfrastructurenetworksarereported.
IftheCPisadhocthenonlyscanresultsfromadhocnetworksarereported.
Ifthefieldissetto0xFFthenWiComm-Socketwillscanallchannelswithinitsregionaldomainandreportallresultsininfrastructureandadhocnetworks.
7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=81,DataLength=26ListIndexTheindexwithintheWiComm-SocketscanlistThevalidrangeis:0NumberofScanresults–1(fromtheEVENT_MSG–Wi-FiScanResultsReady)7Reserved80x45(FrameTrailer)MCW1001ADS70671A-page36Preliminary2011MicrochipTechnologyInc.
6.
7.
3SCAN_RESULT_MSG(22RESPONSE)ThismessageissentinresponsetotheSCAN_GET_RESULTS_MSG.
MsgByteIndexDescription0:5Header;MessageType=22,DataLength=576:11BSSID12SSIDLengthNumberofvalidSSIDcharactersthatfollow13:44SSID45APconfiguration(8bits)Thisbyteisdefinedasfollows:76543210WPA2WPAPreamblePrivacyResResResIEIE1ifAPbroadcastingoneormoreinformationelements,otherwise0ResReservedPrivacy0:APisopen(nosecurity)1:APusingsecurity;ifneitherWPAorWPA2issetthensecurityisWEP.
Preamble0:APtransmittingwithshortpreamble1:APtransmittingwithlongpreambleWPAOnlyvalidifPrivacyis1.
0:APdoesnotsupportWPA1:APsupportsWPAWPA2OnlyvalidifPrivacyis1.
0:APdoesnotsupportWPA21:APsupportsWPA246:47BeaconPeriodNetworkbeaconinterval48:49ATIMWindowOnlyvalidifBSSTypeisadhoc50:57BasicRates,each1byte,inthefollowingformat:Bit7:0:Rateisnotpartofthe"basicratesset"1:Rateispartofthe"basicratesset"Bits6:0:Multipleof500kbpsgivingthesupportedrate.
Forexample,avalueof2(2x500kbps)indicatesthat1Mbpsisasupportedrate.
Avalueof4inthisfieldindicatesa2Mbpsrate(4x500kbps).
58RSSIofreceivedbeaconorproberesponse59BasicRateListLengthNumberofbasicratesthatarevalidinabovebasicratelist60DTIMperiod(1byte)PartofTIMelement61BSSType(1byte)1:Infrastructure2:adhoc62Channelnumber(1byte)630x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page37MCW1001A6.
8Wi-FiConnectionMessagesThemessagesinthissectionareusedtoinitiatetheconnectiontoaWi-Finetwork,ortodisconnectanexistingcon-nection.
6.
8.
1Wi-Fi_CONNECT_MSG(90COMMAND)ThismessagedirectsWiComm-SockettoinitiateaWi-FiconnectionprocessasdefinedinthespecifiedCP.
WiComm-SocketwillsendanACK_MSGinresponsetothismessage.
Aftertheconnectionsucceedsorfails,anEVENT_MSGwillasynchronouslybesentfromWiComm-SockettotheCPUhost.
ResponseMessage:ACK_MSG6.
8.
2Wi-Fi_DISCONNECT_MSG(91COMMAND)ThismessagewillcauseWiComm-SockettocloseitsexistingWi-Ficonnection.
WiCom-SocketwillsendanACK_MSGinresponsetothismessage.
AftertheconnectionhasbeenclosedanEVENT_MSGwillbesenttonotifythehostCPU.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=90,DataLength=26ConnectionProfileIDtoconnecttoRange:1or27Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=91,DataLength=060x45(FrameTrailer)MCW1001ADS70671A-page38Preliminary2011MicrochipTechnologyInc.
6.
9Wi-FiPowerManagementMessagesThemessagesinthissectionareusedtosetthepowermodeforWiComm-Socket.
NotethatPSPOLLmodesareonlyapplicabletoInfrastructurenetworks.
6.
9.
1SET_POWER_SAVE_MODE_MSG(102COMMAND)ThismessagesetsPowerSavemodeforWiComm-Socket.
Optionsincludefullpower,anAPpollingmodewithselfsetwakeuptimes,anAPpollingmethodusingtheDTIMperiodsetbytheAP,andaHibernate(radiomoduleoff)mode.
Bydefault,PowerSavemodeofthemoduleis4(PowerSavemodeOff).
IMPORTANT:1)HibernatemodecanonlybeexitedthroughaWiCommReset.
ThiscanbeperformedthroughtheAPI,orbyusingthephysicalresetpin.
Afterexitingreset,thedevicemustbereinitializedincludinganyconnectionprofileinformationtoreestablishaconnection.
2)WhenusingthePowerSavemodeof3,theselfsetwakeupperiodisusedonlyafteritisnegotiatedwiththeAP.
InpracticeitissuggestedthattheDTIMlistenintervalbesetwhiledisconnectedsothatitisappliedduringtheconnectionprocess.
TheAPmaychoosenottoallowassociationwiththeradioiftheDTIMlistenintervalistoolong.
ResponseMessage:ACK_MSGMsgByteIndexDescription0:5Header;MessageType=102,DataLength=46PowerSavemode:1–PowerSavemodeHibernate(radiomoduleoff)2–PowerSavemodePSPOLLwithAPsuggestedDTIMperiod3–PowerSavemodePSPOLLwithselfsetwakeupperiod4–PowerSavemodeOff-Modulefullypowered7Reserved8:9DTIMListenIntervalinPSPOLLmode(self-setwakeuptimeinPowerSavemode3).
Actualtimeisthisintervalmultipliedby100msec,e.
g.
10=1second.
100x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page39MCW1001A6.
10ICMP(Ping)Messages6.
10.
1PING_SEND_MSG(121COMMAND)Thismessagesendsapingtoaremotehost.
TheimmediateresponsetothismessageisanACK_MSG.
WhenWiComm-Socketreceivesapingresponse,ortimesoutwaitingforapingresponse,itwillsendtheEVENT_MSG–PingResponseEvent(seeSection6.
12.
2.
4,EVENT_MSG–PingResponseEvent(1-26Async)tothehost.
InthecurrentversionofWiComm-Socket,thetime-outvalueisfixedat4seconds.
ResponseMessage:ACK_MSG(followedlaterbyEVENT_MSG–PingResponseEvent)MsgByteIndexDescription0:5Header;MessageType=121,DataLength=166:21RemoteIPAddresstoping220x45(FrameTrailer)MCW1001ADS70671A-page40Preliminary2011MicrochipTechnologyInc.
6.
11SocketMessages6.
11.
1SOCKET_CREATE_MSG(110COMMAND)ThismessageattemptstocreateaTCPorUDPsocket.
ResponseMessage:SOCKET_CREATE_RESPONSE_MSG6.
11.
2SOCKET_CREATE_RESPONSE_MSG(23RESPONSE)Thismessageindicatestheresultoftheattemptedsocketcreatedbyreturninga"handle"tothesocket.
Ifasocketisnotcreated,WiComm-Socketwillreturn0xFEasthehandleor0xFFifthesockettypewasunknown(not0or1inabovemessage).
6.
11.
3SOCKET_CLOSE_MSG(111COMMAND)ThismessageattemptstocloseapreviouslycreatedTCPorUDPsocket.
ResponseMessage:ACK_MSG(maygenerateanasynchronousErrorEventifsocketclosefailed)MsgByteIndexDescription0:5Header;MessageType=110,DataLength=26SocketType:0–UDP1–TCP7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=23,DataLength=26SocketHandle:0–253–ValidSockethandle254–InvalidSocket255–UnknownSocketType7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=111,DataLength=26SocketHandle7Reserved80x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page41MCW1001A6.
11.
4SOCKET_BIND_MSG(112Command)TheBindcommandassociatesalocalIPaddressandportwithasocket.
Thisinformationallowsthesockettoadvertiseitspresence.
AsWiComm-SocketisalwaysassociatedwithonlyonelocalIPaddress,itisnotrequiredtosupplythelocalIPaddressintheBindcommand.
IftheobjectofthebindprocessisaUDPsocket,WiComm-SocketwillattempttoopentheUDPporttoremoteconnections.
Inthismode,theUDPsocketcanfunctionasaservertoacceptclientmessageswhichcanbesubsequentlyreadfromthesocket.
IfthisopenprocessfortheUDPportfails,thebindresponsewillreturnunsuccessful.
ItisnotrequiredtobindaUDPsocketifitsonlypurposeistotransmitasaclient,orifitwilltransmitbeforereceivingfromaremoteconnection.
Ifthelocalportnumberisspecifiedaszero,WiComm-Socketwillassignanon-zerovaluetotheportbeginningwith1024.
ResponseMessage:SOCKET_BIND_RESPONSE_MSG6.
11.
5SOCKET_BIND_RESPONSE_MSG(24Response)Thismessageindicatestheresultoftheattemptedsocketbindaseithersuccessful(0)ornot(0xFF).
6.
11.
6SOCKET_CONNECT_MSG(113Command)ForTCPsockets,theConnectcommandattemptstoestablishaconnectionbetweentwosockets.
ForUDPsockets,theConnectcommandspecifiesthepeerorremoteendpointforthesocket.
Thesocketparameterspecifiesthelocalsockettobeused,andtheremoteaddressandportspecifythepeerorremotesockettoconnect.
TheConnectcommandwillperformanimplicitbindforUDPsocketsifnotdonepreviously.
TheConnectcommandisnon-blockingandwillreturnimmediatelywitharesultofeitherSuccess(0),ConnectionInProcess(0xFE),orError(0xFF).
ResponseMessage:SOCKET_CONNECT_RESPONSE_MSGMsgByteIndexDescription0:5Header;MessageType=112,DataLength=46:7LocalPortNumbertobeassociatedwiththissocket8SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)9Reserved100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=24,DataLength=46:7LocalPortNumberboundto8BindResult:0–Success1-255–UnsuccessfulBind9Reserved100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=113,DataLength=206SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Reserved8:9RemotePortNumbertoconnectto10:25RemoteIPaddress–forIPv4thefirst4bytesaretheIPaddress260x45(FrameTrailer)MCW1001ADS70671A-page42Preliminary2011MicrochipTechnologyInc.
6.
11.
7SOCKET_CONNECT_RESPONSE_MSG(25Response)Thismessageindicatestheresultoftheattemptedsocketconnect.
6.
11.
8SOCKET_LISTEN_MSG(114Command)ForTCPsockets,theListencommandmakesthesocketpassive.
Afterthesocketbecomespassive,itcannotbeusedtoinitiateconnectionrequeststoremoteservers(connectcannotbeusedonalisteningsocket).
ForUDPsockets,thisfunctionhasnomeaning.
ThesockethandleparameterspecifiesthelocalsockettobeusedforlisteningthathasbeenpreviouslycreatedandboundwiththeSOCKET_CREATE_MSGandtheSOCKET_BIND_MSG.
Thebacklogparameterspecifiesthenumberofconnectionstomakeavailabletoremoteclients.
EachoftheseusesalimitednumberofWiComm-Socketserversocket.
Thereturnvaluewillindicatehowmanyserversocketswereactuallyallocatedbyreturningthemodifiedbacklogcount.
Forinstance,ifasocketissetintoListenmodewithabacklogparameterof5,andthebacklogreturnvalueintheresponseis3,therewere2serversocketsallocated.
Thiscommandmaybeissuedtoasocketthatisalreadylistening,andifitispossibleformoresocketstobeopenedbasedonthecurrentsocketbacklog,theallocationswillbeperformed.
ResponseMessage:SOCKET_LISTEN_RESPONSE_MSG6.
11.
9SOCKET_LISTEN_RESPONSE_MSG(26RESPONSE)ThismessageindicatestheresultoftheattemptedsocketListencommand.
MsgByteIndexDescription0:5Header;MessageType=25,DataLength=26Socketconnectresult:0–Success254–Socketconnectinprocess255–Socketconnectfailed7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=114,DataLength=26SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Serversocketcount(backlog)80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=26,DataLength=26Socketconnectresult:0–Success254–Socketconnectinprocess255–Socketconnectfailed7NewUnassignedbacklogcount80x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page43MCW1001A6.
11.
10SOCKET_ACCEPT_MSG(115COMMAND)ForTCPsockets,theAcceptcommandwillindicateaconnectedserversocketbyreturningthelocalserversocketnum-berofaremoteclientconnection.
ResponseMessage:SOCKET_ACCEPT_RESPONSE_MSG6.
11.
11SOCKET_ACCEPT_RESPONSE_MSG(27RESPONSE)ThismessageindicatestheresultoftheattemptedsocketAcceptcommand.
6.
11.
12SOCKET_SEND_MSG(116COMMAND)TheSendcommandsendsdataonthetargetsocket.
Theremoteconnectionisnotdefinedinthecalltothisfunction,butinsteaditreliesonthesockethavingbeenconnectedpriortothesend.
InthecaseofamemorylimitedWiComm-Socket,thehostmayneedtolimitthesizeofthedatasentineachcommand.
AfacilitywillbeprovidedtoallowmessagestobefragmentedbythehostandreassembledinWiComm-Sockettocreateacompletepacket.
ResponseMessage:SOCKET_SEND_RESPONSE_MSG6.
11.
13SOCKET_SEND_RESPONSE_MSG(28RESPONSE)ThismessageindicatestheresultoftheattemptedsocketSendtocommand.
MsgByteIndexDescription0:5Header;MessageType=115,DataLength=26SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Reserved80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=27,DataLength=46SocketHandlevaluereturned-Ifthevalueis0xFF,theconnectionisnotvalid7Reserved8:9RemotePortNumber10:25RemoteIPaddress–forIPv4thefirst4bytesaretheIPaddress260x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=116,DataLength=4+NDataBytes6SocketHandle(previouslycreatedwithSOCKET_CREATE_MSGandconnected)7Reserved8:9Databytecount(N)10:N+9NbytesofdatatobesentN+100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=28,DataLength=26:7Socketbytecountsent80x45(FrameTrailer)MCW1001ADS70671A-page44Preliminary2011MicrochipTechnologyInc.
6.
11.
14SOCKET_RECV_MSG(117COMMAND)TheRecvcommandattemptstoreaddatafromanopensocket.
InthisversionofWiComm-Socket,theRecvcommandisalwaysnon-blocking,butUDPreceiveddataisnotbufferedinWiComm-Socket.
Ifdataisavailabletobereadfromthesocket,theamountofdataavailablewillbereturned(nottoexceedthespecifiedbuffersizeinthecall).
Ifnodataisavailable,theRECVresponsewillreturn0asthereceivedcount.
Asaresultofnon-bufferedapproachtoUDPreceivebuffers,WiComm-SocketusesanasynchronousSOCKET_RECV_FROM_RESPONSE_MSGtoreportanydatareceivedonaboundUDPlistenersocket.
Inthisway,theSOCKET_RECV_MSGisnottypicallyusedtopollforUDPsocketreceiveddataandbydesign,acalltothisfunctiononaUDPsocketwillreturn0bytesread.
ResponseMessage:SOCKET_RECV_RESPONSE_MSG6.
11.
15SOCKET_RECV_RESPONSE_MSG(29RESPONSE)Thismessageindicatestheresultoftheattemptedsocketreceivemessage.
6.
11.
16SOCKET_SEND_TO_MSG(118COMMAND)TheSendtocommandsendsdataonthetargetsocket.
UnlikethesocketSendcommand,theremoteconnectionisdefinedinthecalltothisfunction.
Byspecifyingtheremoteaddressandport,theconnectioncanbecreatedifitdoesnotexist.
InthecaseofamemorylimitedWiComm-Socket,thehostmayneedtolimitthesizeofthedatasentineachcommand.
AfacilitywillbeprovidedtoallowmessagestobefragmentedbythehostandreassembledinWiComm-Sockettocreateacompletepacket.
ResponseMessage:SOCKET_SEND_TO_RESPONSE_MSGMsgByteIndexDescription0:5Header;MessageType=117,DataLength=46SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Reserved8:9Amountofdatatoberead100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=29,DataLength=4+NDataBytes6SocketHandle(usedwhendatawasread)7Reserved8:9Bytecountreceived(N)10:N+9NbytesofdatareadN+100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=118,DataLength=22+NDataBytes6SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Reserved8:9RemotePortNumbertosendthedatato10:25RemoteIPaddress–forIPv4thefirst4bytesaretheIPaddress26:27Databytecount(N)28:N+27NbytesofdatatobesentN+280x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page45MCW1001A6.
11.
17SOCKET_SEND_TO_RESPONSE_MSG(30RESPONSE)ThismessageindicatestheresultoftheattemptedsocketSendtocommand.
Ifsuccessful,thenumberofbytestrans-ferredwillbereturned.
Ifunsuccessful,anACK_MSGwillbereturnedwithasubsequentasynchronousErroreventmes-sage.
6.
11.
18SOCKET_RECV_FROM_MSG(119COMMAND)TheRecvFromcommandattemptstoreaddatafromanopensocket.
ItisnormallyusedwithUDPsocketsasthereturnvaluesincludethesourceaddressofthereceiveddata.
InthisversionofWiComm-Socket,theRecvFromcommandisalwaysnon-blocking,butUDPreceiveddataisnotbufferedinWiComm-Socket.
Ifdataisavailabletobereadfromthesocket,theamountofdataavailablewillbereturned(nottoexceedthespecifiedbuffersizeinthecall).
Ifnodataisavailable,theRecvFromresponsewillreturn0asthereceivedcount.
Asaresultofthenon-bufferedapproachtoUDPreceivebuffers,WiComm-SocketusesanasynchronousSOCKET_RECV_FROM_RESPONSE_MSGtoreportanydatareceivedonaboundUDPlistenersocket.
Inthisway,theSOCKET_RECV_FROM_MSGisnottypicallyusedtopollforUDPsocketreceiveddataandbydesign,acalltothisfunctiononaUDPsocketwillreturn0bytesread.
ResponseMessage:SOCKET_RECV_FROM_RESPONSE_MSG6.
11.
19SOCKET_RECV_FROM_RESPONSE_MSG(31RESPONSE)ThismessageindicatestheresultoftheattemptedsocketRecvFromcommand.
Thenumberofbytestransferredwillbereturned(canbezero).
MsgByteIndexDescription0:5Header;MessageType=30,DataLength=26:7Bytecountsent80x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=119,DataLength=46SocketHandle(previouslycreatedwithSOCKET_CREATE_MSG)7Reserved8:9Amountofdatatoberead100x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=31,DataLength=22+NDataBytes6SocketHandle(usedwhendatawasread)7Reserved8:9Portnumberofsender10:25IPAddressofsender26:27Bytecountreceived(N)28:N+27NbytesofdatareadN+280x45(FrameTrailer)MCW1001ADS70671A-page46Preliminary2011MicrochipTechnologyInc.
6.
11.
20SOCKET_ALLOCATE_MSG(122COMMAND)WiComm-SockethasalimitedamountofbufferspaceavailableforTCPsockets.
ThecurrenttotalmemoryspaceavailabletoallTCPsocketsis8192bytes.
EachTCPsocketcanbeusedinaclientorserverconfiguration,andeverysocketmusthaveareceivebufferandatransmitbuffer.
Bydefault,thereare8TCPsocketsdefined.
6ofthemarepredefinedasserversockets,and2ofthemarepredefinedasclientsockets.
Theavailable8Kofmemoryissplitevenlybetweenthe8socketsandsplitevenlyagainbetweenthetransmitandreceivebufferssothateverybufferisallocatedatotalof512bytes.
Thehostmaycustomizetheallocationofsocketmemory,nottoexceed8totalTCPsockets.
However,theallocationmustbethesameforallserversocketsandallclientsockets.
TheSOCKET_ALLOCATE_MSGallowsthesizeofthetransmitandreceivebufferstobesetforserversocketsandclientsockets,andthecountforeachsockettypetobedefined.
Thetotalsocketcount(server+client)mustnotexceed8,andthetotalbufferallocationmustnotexceed8192bytes.
ThiscommandshouldbeexecutedshortlyafterinitializationpriortoestablishingaWi-FiconnectionasitwillreinitializetheTCPstack.
ResponseMessage:SOCKET_ALLOCATE_RESPONSE_MSG6.
11.
21SOCKET_ALLOCATE_RESPONSE_MSG(32RESPONSE)Thismessageindicatestheresultoftheattemptedsocketallocationcommand.
Ifsuccessful,theresultfieldreturnedwillbe0.
Iftheresultis0xFF,themaximumnumberofsocketswasexceeded,andiftheresultis0xFE,thetotalbufferallocationsizewasexceeded.
MsgByteIndexDescription0:5Header;MessageType=122,DataLength=106TCPServerSocketCount7TCPClientSocketCount8:9TCPServerSocketReceiveBufferSize(bytes)10:11TCPServerSocketTransmitBufferSize(bytes)12:13TCPClientSocketReceiveBufferSize(bytes)14:15TCPClientSocketTransmitBufferSize(bytes)160x45(FrameTrailer)MsgByteIndexDescription0:5Header;MessageType=32,DataLength=26Result(seedescription)7AllocatedSocketCount80x45(FrameTrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page47MCW1001A6.
12MessagesSentFromWiComm-SockettoHostMessagesaresentfromtheWiComm-Sockettothehosttorespondtomessagesfromthehost,ortoindicateanasynchronousevent.
Allmessagesfromthehostareacknowledged.
Thiscanbedoneeitherwithaspecificmessage(ACK_MSG)orwithaPIGGYBACKACKifdataisgoingtobesentbytheWiComm-Socketinresponsetothehostmessage.
AllmessagessentfromWiComm-SockettothehostcontainaPIGGYBACKACKbit.
Themostsignificantbitofthe16bitmessagetypefieldisreservedforthePIGGYBACKACK.
IfareplyissentfromWiComm-Socketinresponsetoamessagesentbythehost,thePIGGYBACKACKbitwillbeset(i.
e.
messagetype0x8000)inthemessagetypetoindicatethatthepreviousmessagewasreceivedcorrectly.
6.
12.
1ACK_MSG(0RESPONSE)Thismessageisanacknowledgetothemessagesentfromthehost.
6.
12.
2EVENT_MSGTheEVENT_MSGissenttothehostCPUasynchronouslywheneveraneventhasoccurredthatthehostCPUneedstobeawareof.
6.
12.
2.
1EVENT_MSG–IPAddressAssigned(1-16Async)ThiseventmessagesignifiesthattheDHCPclienthasbeenassignedanIPaddress.
MsgByteIndexDescription0:5Header;MessageType=0,DataLength=0MsgByteIndexDescription0:5Header;MessageType=1,DataLength=66EventType:IPAssignedEvent=167Reserved81stoctetofIPaddress92ndoctetofIPaddress103rdoctetofIPaddress114thoctetofIPaddress120x45(frametrailer)MCW1001ADS70671A-page48Preliminary2011MicrochipTechnologyInc.
6.
12.
2.
2EVENT_MSG–Wi-FiConnectionStatusChanged(1-8Async)ThiseventmessagesignifiesachangeintheWi-Ficonnectionstatus.
6.
12.
2.
3EVENT_MSG–Wi-FiScanResultsReady(1-9Async)Thiseventmessagesignifiesthatthescanresultsareready.
MsgByteIndexDescription0:5Header;MessageType=1,DataLength=46EventType:Wi-FiConnectionStatusEvent=87EventStatus:1:Connectionattemptsucceeded2:Connectionattemptfailed3:Connectiontemporarilylost,WiComm-Socketisretrying4:Connectionreestablished,WiComm-Socketreestablishedthelink5:Connectionpermanentlylost,retriesexhausted8EventData(notalwaysused)IfStatusequalsTheOptionalDatasignifies1Optionaldatafieldnotused2ReasonthatconnectionfailedJoinfailure2Authenticationfailure3Associationfailure4WEPhandshakefailure5PSKcalculationfailure6PSKhandshakefailure7adhocjoinfailure8Securitymismatchfailure9NosuitableAPfoundfailure10Retryforevernotsupportedfailure113ReasonthatconnectionwastemporarilylostBeacontimeout1DeauthReceivedDE2Disassociatereceived34Optionaldatafieldnotused5Reasonthatconnectionwaspermanentlylost:Sameaswhenstatusequals39Reserved100x45(frametrailer)MsgByteIndexDescription0:5Header;MessageType=1,DataLength=26EventType:Wi-FiScanResultsReadyEvent=97NumberofScanResultsThenumberofScanResults80x45(frametrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page49MCW1001A6.
12.
2.
4EVENT_MSG–PingResponseEvent(1-26Async)Thiseventmessageissenttothehostwheneitherapingresponseisreceived,orWiComm-Sockethastimed-outwait-ingforapingresponse.
SeeSection6.
10.
1,PING_SEND_MSG(121Command)6.
12.
2.
5EVENT_MSG–ErrorEvent(1-255Async)Thiseventissenttothehosttoreportanerrorcondition.
MsgByteIndexDescription0:5Header;MessageType=1,DataLength=46EventType:PingResponseEvent=267PingResponseStatus:0–validpingresponsewasreceived1–pingresponsetimeout8:9Responsetimeinmilliseconds100x45(frametrailer)MsgByteIndexDescription0:5Header;MessageType=1,DataLength=86EventType:ErrorEvent=2557Reserved8:9ErrorType:60–Baudrategeneratorerror61–InvalidConnectionProfileID62–Wi-Fialreadyconnectederror63–Wi-Fialreadydisconnectederror64–Closesocketfailederror65–SocketSendtoTimeoutError(ARPrequestTimedOut)66–ScanIndexOutofRangeError67–ICMPPingFloodError68–ICMPPingInUseError69–SocketRecvFromFailed71–SerialTransmitBufferAllocationError72–GeneralAssertError73–InvalidPowersaveModeError74–Busy(HibernateMode)Error75–Busy(ScanMode)Error10:13ErrorData:Errordetailsifapplicable140x45(frametrailer)MCW1001ADS70671A-page50Preliminary2011MicrochipTechnologyInc.
6.
12.
3EVENT_MSG–STARTUPEVENT(1-27ASYNC)ThiseventissenttothehosttoindicatethatWiComm-Sockethasstarted.
MsgByteIndexDescription0:5Header;MessageType=1,DataLength=66EventType:StartupEvent=277StartupConditionBitMask:0x01–PowerOnReset0x02–BrownOutReset0x04–IdleReset0x08–SleepReset0x10–WatchdogReset0x40–SoftwareReset0x80–ExternalResete.
g.
0x11=PoweronandWatchdogReset8:9WiComm-SocketVersion10:11RadioVersion120x45(frametrailer)2011MicrochipTechnologyInc.
PreliminaryDS70671A-page51MCW1001A7.
0ELECTRICALCHARACTERISTICSThissectionprovidesanoverviewoftheMCW1001Aelectricalcharacteristics.
Additionalinformationwillbeprovidedinfuturerevisionsofthisdocumentasitbecomesavailable.
AbsolutemaximumratingsfortheMCW1001Adevicesarelistedbelow.
Exposuretothesemaximumratingconditionsforextendedperiodsmayaffectdevicereliability.
Functionaloperationofthedeviceattheseoranyotherconditions,abovetheparametersindicatedintheoperationlistingsofthisspecification,isnotimplied.
AbsoluteMaximumRatings()Ambienttemperatureunderbias.
40°Cto+125°CStoragetemperature65°Cto+150°CVoltageonRESETwithrespecttoVSS0.
3Vto6.
0VVoltageonallotherpinswithrespecttoVSS0.
3Vto(VDD+0.
3V)VoltageonVDDwithrespecttoVSS.
0.
3Vto4.
0VTotalpowerdissipation(Note1)1.
0WMaximumcurrentoutofVSSpin300mAMaximumcurrentintoVDDpin250mAMaximumoutputcurrentsunkbyGPIO[5:7]pin25mAMaximumoutputcurrentsourcedbyGPIO[5:7]pins25mAMaximumoutputcurrentsunkbyGPIO[4:0]pins8mAMaximumoutputcurrentsourcedbyallGPIO[0:4]pins.
8mANote1:Powerdissipationiscalculatedasfollows:PDIS=VDDx{IDD–ΣIOH}+Σ{(VDD–VOH)xIOH}+Σ(VOLxIOL).
NOTICE:Stressesabovethoselistedunder"AbsoluteMaximumRatings"maycausepermanentdamagetothedevice.
Thisisastressratingonlyandfunctionaloperationofthedeviceatthoseoranyotherconditionsabovethoseindicatedintheoperationlistingsofthisspecificationisnotimplied.
Exposureabovemaximumratingcondi-tionsforextendedperiodsmayaffectdevicereliability.
MCW1001ADS70671A-page52Preliminary2011MicrochipTechnologyInc.
7.
1DCCharacteristicsTABLE7-1:DCTEMPERATUREANDVOLTAGESPECIFICATIONSDCCHARACTERISTICSOperatingConditions(unlessotherwiseindicated):3.
0V≤VDD≤5.
5Vat-40°C≤TA≤+85°C(I-Temp)Param.
No.
CharacteristicsSymbolMin.
TypicalMax.
UnitsConditionsD001SupplyvoltageVDD2.
15—3.
6V—VDDstartvoltagetoensureinternalPower-onresetsignalVPOR——0.
7V—D003VDDRiseratetoensurePower-onresetSVDD0.
05——V/msDesignguidanceonlynottestedD004SupplycurrentIDDVDD=3.
0V——1012mAFOSC=12MHz(330nFonVUSB)VDD=5.
0V——1315mAInputLow-VoltageD031SchmittTrigger(GPIO)VIL——0.
2VDDV3.
0V≤VDD≤5.
5VTTL(UCTSpin)——0.
84.
5V≤VDD≤5.
5VInputHigh-VoltageD041SchmittTrigger(GPIO)VIH0.
8VDD—VDDV3.
0V≤VDD≤5.
5VTTL(URTSpin)2.
0—VDD4.
5V≤VDD≤5.
5VInputLeakagecurrentD060GPIO,UCTSIIL—±50±100nAVSS≤VPIN≤VDD,pinatHi-ZURTS—±50±200OSC1—±50±100OutputLow-VoltageD080GPIOVOL——0.
6VIOL=8.
0mA,VDD=0.
5V——0.
6IOL=-6.
0mA,VDD=3.
3VOutputHigh-VoltageD090GPIOVOHVDD-0.
7——VIOL=-3.
5mA,VDD=5.
0VVDD-0.
7——IOL=-3.
0mA,VDD=3.
3VCapacitanceLoadingSpecsonOutputPinsD101OSC2COSC2——15pFNote1D102GPIOCIO——50pFNote1Note1:Thisparameterischaracterized,butnottested.
2011MicrochipTechnologyInc.
PreliminaryDS70671A-page53MCW1001A7.
2ACCharacteristics7.
2.
1TIMINGCONDITIONSTheoperatingtemperatureandvoltagespecifiedinTable7-3applytoalltimingspecificationsunlessother-wisenoted.
Figure7-1specifiestheloadconditionsforthetimingspecifications.
TABLE7-3:TEMPERATUREANDVOLTAGESPECIFICATIONS–ACFIGURE7-1:LOADCONDITIONSFORDEVICETIMINGSPECIFICATIONSTABLE7-2:INTERNALVOLTAGEREGULATORSPECIFICATIONSOperatingConditions:-40°C6623@1RWHV3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0%6&%DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV5()5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\1RWH)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDWKWWSZZZPLFURFKLSFRPSDFNDJLQJ8QLWV0,//,0(7(56'LPHQVLRQ/LPLWV0,11200$;1XPEHURI3LQV13LWFKH%6&2YHUDOO+HLJKW$±±0ROGHG3DFNDJH7KLFNQHVV$6WDQGRII$±±2YHUDOO:LGWK(0ROGHG3DFNDJH:LGWK(2YHUDOO/HQJWK')RRW/HQJWK/)RRWSULQW/5()/HDG7KLFNQHVVF±)RRW$QJOHI/HDG:LGWKE±LL1cA2A1AEE1DN12NOTE1beφ0LFURFKLS7HFKQRORJ\'UDZLQJ&%2011MicrochipTechnologyInc.
PreliminaryDS70671A-page59MCW1001ANote:Forthemostcurrentpackagedrawings,pleaseseetheMicrochipPackagingSpecificationlocatedathttp://www.
microchip.
com/packagingMCW1001ADS70671A-page60Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page61MCW1001AAPPENDIXA:REVISIONHISTORYRevisionA(October2011)Thisistheinitialreleaseofthedocument.
MCW1001ADS70671A-page62Preliminary2011MicrochipTechnologyInc.
NOTES:2011MicrochipTechnologyInc.
PreliminaryDS70671A-page63MCW1001ATHEMICROCHIPWEBSITEMicrochipprovidesonlinesupportviaourWWWsiteatwww.
microchip.
com.
Thiswebsiteisusedasameanstomakefilesandinformationeasilyavailabletocustomers.
AccessiblebyusingyourfavoriteInternetbrowser,thewebsitecontainsthefollowinginformation:ProductSupport–Datasheetsanderrata,applicationnotesandsampleprograms,designresources,user'sguidesandhardwaresupportdocuments,latestsoftwarereleasesandarchivedsoftwareGeneralTechnicalSupport–FrequentlyAskedQuestions(FAQ),technicalsupportrequests,onlinediscussiongroups,MicrochipconsultantprogrammemberlistingBusinessofMicrochip–Productselectorandorderingguides,latestMicrochippressreleases,listingofseminarsandevents,listingsofMicrochipsalesoffices,distributorsandfactoryrepresentativesCUSTOMERCHANGENOTIFICATIONSERVICEMicrochip'scustomernotificationservicehelpskeepcustomerscurrentonMicrochipproducts.
Subscriberswillreceivee-mailnotificationwhenevertherearechanges,updates,revisionsorerratarelatedtoaspecifiedproductfamilyordevelopmenttoolofinterest.
Toregister,accesstheMicrochipwebsiteatwww.
microchip.
com.
Under"Support",clickon"CustomerChangeNotification"andfollowtheregistrationinstructions.
CUSTOMERSUPPORTUsersofMicrochipproductscanreceiveassistancethroughseveralchannels:DistributororRepresentativeLocalSalesOfficeFieldApplicationEngineer(FAE)TechnicalSupportDevelopmentSystemsInformationLineCustomersshouldcontacttheirdistributor,representativeorfieldapplicationengineer(FAE)forsupport.
Localsalesofficesarealsoavailabletohelpcustomers.
Alistingofsalesofficesandlocationsisincludedinthebackofthisdocument.
Technicalsupportisavailablethroughthewebsiteat:http://microchip.
com/supportMCW1001ADS70671A-page64Preliminary2011MicrochipTechnologyInc.
READERRESPONSEItisourintentiontoprovideyouwiththebestdocumentationpossibletoensuresuccessfuluseofyourMicrochipproduct.
Ifyouwishtoprovideyourcommentsonorganization,clarity,subjectmatter,andwaysinwhichourdocumentationcanbetterserveyou,pleaseFAXyourcommentstotheTechnicalPublicationsManagerat(480)792-4150.
Pleaselistthefollowinginformation,andusethisoutlinetoprovideuswithyourcommentsaboutthisdocument.
TO:TechnicalPublicationsManagerRE:ReaderResponseTotalPagesSent________From:NameCompanyAddressCity/State/ZIP/CountryTelephone:Application(optional):WouldyoulikeareplyYNDevice:LiteratureNumber:Questions:FAX:DS70671AMCW1001A1.
Whatarethebestfeaturesofthisdocument2.
Howdoesthisdocumentmeetyourhardwareandsoftwaredevelopmentneeds3.
DoyoufindtheorganizationofthisdocumenteasytofollowIfnot,why4.
Whatadditionstothedocumentdoyouthinkwouldenhancethestructureandsubject5.
Whatdeletionsfromthedocumentcouldbemadewithoutaffectingtheoverallusefulness6.
Isthereanyincorrectormisleadinginformation(whatandwhere)7.
Howwouldyouimprovethisdocument2011MicrochipTechnologyInc.
PreliminaryDS70671A-page65MCW1001APRODUCTIDENTIFICATIONSYSTEMToorderorobtaininformation,e.
g.
,onpricingordelivery,refertothefactoryorthelistedsalesoffice.
PARTNO.
X/XXPackageTemperatureRangeDeviceDeviceMCW1001ATCP/IPSockettoUARTTemperatureRangeI=-40°Cto+85°C(Industrial)PackageSS=PlasticShrinkSmallOutline-5.
30mmbody(SS)28-LeadExamples:a)MCW1001A-I/SS100:=Industrialtemperature,28LDSSOPPackage.
DS70671A-page66Preliminary2011MicrochipTechnologyInc.
AMERICASCorporateOffice2355WestChandlerBlvd.
Chandler,AZ85224-6199Tel:480-792-7200Fax:480-792-7277TechnicalSupport:http://www.
microchip.
com/supportWebAddress:www.
microchip.
comAtlantaDuluth,GATel:678-957-9614Fax:678-957-1455BostonWestborough,MATel:774-760-0087Fax:774-760-0088ChicagoItasca,ILTel:630-285-0071Fax:630-285-0075ClevelandIndependence,OHTel:216-447-0464Fax:216-447-0643DallasAddison,TXTel:972-818-7423Fax:972-818-2924DetroitFarmingtonHills,MITel:248-538-2250Fax:248-538-2260IndianapolisNoblesville,INTel:317-773-8323Fax:317-773-5453LosAngelesMissionViejo,CATel:949-462-9523Fax:949-462-9608SantaClaraSantaClara,CATel:408-961-6444Fax:408-961-6445TorontoMississauga,Ontario,CanadaTel:905-673-0699Fax:905-673-6509ASIA/PACIFICAsiaPacificOfficeSuites3707-14,37thFloorTower6,TheGatewayHarbourCity,KowloonHongKongTel:852-2401-1200Fax:852-2401-3431Australia-SydneyTel:61-2-9868-6733Fax:61-2-9868-6755China-BeijingTel:86-10-8569-7000Fax:86-10-8528-2104China-ChengduTel:86-28-8665-5511Fax:86-28-8665-7889China-ChongqingTel:86-23-8980-9588Fax:86-23-8980-9500China-HangzhouTel:86-571-2819-3187Fax:86-571-2819-3189China-HongKongSARTel:852-2401-1200Fax:852-2401-3431China-NanjingTel:86-25-8473-2460Fax:86-25-8473-2470China-QingdaoTel:86-532-8502-7355Fax:86-532-8502-7205China-ShanghaiTel:86-21-5407-5533Fax:86-21-5407-5066China-ShenyangTel:86-24-2334-2829Fax:86-24-2334-2393China-ShenzhenTel:86-755-8203-2660Fax:86-755-8203-1760China-WuhanTel:86-27-5980-5300Fax:86-27-5980-5118China-XianTel:86-29-8833-7252Fax:86-29-8833-7256China-XiamenTel:86-592-2388138Fax:86-592-2388130China-ZhuhaiTel:86-756-3210040Fax:86-756-3210049ASIA/PACIFICIndia-BangaloreTel:91-80-3090-4444Fax:91-80-3090-4123India-NewDelhiTel:91-11-4160-8631Fax:91-11-4160-8632India-PuneTel:91-20-2566-1512Fax:91-20-2566-1513Japan-YokohamaTel:81-45-471-6166Fax:81-45-471-6122Korea-DaeguTel:82-53-744-4301Fax:82-53-744-4302Korea-SeoulTel:82-2-554-7200Fax:82-2-558-5932or82-2-558-5934Malaysia-KualaLumpurTel:60-3-6201-9857Fax:60-3-6201-9859Malaysia-PenangTel:60-4-227-8870Fax:60-4-227-4068Philippines-ManilaTel:63-2-634-9065Fax:63-2-634-9069SingaporeTel:65-6334-8870Fax:65-6334-8850Taiwan-HsinChuTel:886-3-5778-366Fax:886-3-5770-955Taiwan-KaohsiungTel:886-7-536-4818Fax:886-7-330-9305Taiwan-TaipeiTel:886-2-2500-6610Fax:886-2-2508-0102Thailand-BangkokTel:66-2-694-1351Fax:66-2-694-1350EUROPEAustria-WelsTel:43-7242-2244-39Fax:43-7242-2244-393Denmark-CopenhagenTel:45-4450-2828Fax:45-4485-2829France-ParisTel:33-1-69-53-63-20Fax:33-1-69-30-90-79Germany-MunichTel:49-89-627-144-0Fax:49-89-627-144-44Italy-MilanTel:39-0331-742611Fax:39-0331-466781Netherlands-DrunenTel:31-416-690399Fax:31-416-690340Spain-MadridTel:34-91-708-08-90Fax:34-91-708-08-91UK-WokinghamTel:44-118-921-5869Fax:44-118-921-5820WorldwideSalesandService08/02/11MouserElectronicsAuthorizedDistributorClicktoViewPricing,Inventory,Delivery&LifecycleInformation:Microchip:MCW1001AT-I/SSMCW1001A-I/SS

Hostodo(年付12美元),美西斯波坎机房Linux VPS主机66折

Hostodo 商家是比较小众的国外VPS主机商,这不看到商家有推送促销优惠在美国西岸的斯波坎机房还有少部分库存准备通过低价格促销,年付低至12美元Linux VPS主机,且如果是1GB内存方案的可以享受六六折优惠,均是采用KVM架构,且可以支付宝付款。第一、商家优惠码优惠码:spokanessd 1GB+内存方案才可以用到优惠码,其他都是固定的优惠低至年12美元。第二、商家促销这里,我们可以看到...

ManSora:英国CN2 VPS,1核/1GB内存/10GB SSD/1TB流量/100Mbps/KVM,$18.2/月

mansora怎么样?mansora是一家国人商家,主要提供沪韩IEPL、沪日IEPL、深港IEPL等专线VPS。现在新推出了英国CN2 KVM VPS,线路为AS4809 AS9929,可解锁 Netflix,并有永久8折优惠。英国CN2 VPS,$18.2/月/1GB内存/10GB SSD空间/1TB流量/100Mbps端口/KVM,有需要的可以关注一下。点击进入:mansora官方网站地址m...

Hostigger不限流量VPS年20美元

Hostigger 主机商在前面的文章中也有介绍过几次,这个商家运营时间是有一些年份,只不过在我们圈内好像之前出现的次数不多。最近这段时间商家有提供不限流量的VPS主机,逐渐的慢慢被人认识到。在前面的介绍到他们提供的机房还是比较多的,比如土耳其、美国等。今天看到Hostigger 商家居然改动挺大的,原来蛮好的域名居然这次连带官方域名都更换掉去掉一个G(Hostiger )。估摸着这个域名也是之前...

57vvv.com为你推荐
sherylsandberg谷歌怎么看自己的详细资料微信回应封杀钉钉微信违规操作被封了,百度商城百度商城里抽奖全是假的22zizi.com福利彩双色球22号开奖号www.7160.com电影网站有那些陈嘉垣反黑阿欣是谁演的 扮演者介绍psbc.com95580是什么诈骗信息不点网址就安全吧!www.e12.com.cn有什么好的高中学习网?www.zjs.com.cn我的信用卡已经申请成功了,显示正在寄卡,怎么查询寄卡信息?www.884tt.com刚才找了个下电影的网站www.ttgame8.com,不过好多电影怎么都不能用QQ旋风或者是迅雷下在呢?
域名升级访问 Oray域名注册服务商 上海vps 快速域名备案 新网域名管理 过期域名抢注 星星海 kvmla hostmonster 嘟牛 免费全能空间 免费网站申请 卡巴斯基试用版 php空间购买 服务器合租 江苏双线服务器 便宜空间 hdchina 美国asp空间 restart 更多