none
Issue in WiFi CSP on windows 10 phone RRS feed

  • Question

  • Hi, 

    I am trying out the WiFi CSP [https://msdn.microsoft.com/en-us/library/windows/hardware/dn904981(v=vs.85).aspx#] on a windows 10 phone which I am managing with the help of my custom MDM server.

    However, I seem to be having some problem.

    According to link [https://msdn.microsoft.com/en-us/library/windows/hardware/dn904981(v=vs.85).aspx#] I am sending a WPA2-PSK network profile [https://msdn.microsoft.com/en-us/library/windows/desktop/aa370032(v=vs.85).aspx]

    OUTGOING SYNCML

    <?xml version="1.0" encoding="UTF-8"?>
    <SyncML xmlns="SYNCML:SYNCML1.2">
       <SyncHdr>
          <VerDTD>1.2</VerDTD>
          <VerProto>DM/1.2</VerProto>
          <SessionID>2</SessionID>
          <MsgID>1</MsgID>
          <Target>
             <LocURI>urn:uuid:CE10BE4B-C289-5900-94FD-30ADE423E7B7</LocURI>
          </Target>
          <Source>
             <LocURI>https://dhruvesh.agreeyamobility.net/api/v1/oma-dm/rs/syncml</LocURI>
          </Source>
          <Cred>
             <Meta>
                <Format xmlns="syncml:metinf">b64</Format>
                <Type xmlns="syncml:metinf">syncml:auth-md5</Type>
             </Meta>
             <Data>jmWbonrSA6/37ziySdXG7A==</Data>
          </Cred>
       </SyncHdr>
       <SyncBody>
          <Status>
             <CmdID>1</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>0</CmdRef>
             <Cmd>SyncHdr</Cmd>
             <TargetRef>urn:uuid:CE10BE4B-C289-5900-94FD-30ADE423E7B7</TargetRef>
             <Data>212</Data>
          </Status>
          <Status>
             <CmdID>2</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>2</CmdRef>
             <Cmd>Alert</Cmd>
             <Data>200</Data>
          </Status>
          <Status>
             <CmdID>3</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>3</CmdRef>
             <Cmd>Alert</Cmd>
             <Data>200</Data>
          </Status>
          <Status>
             <CmdID>4</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>4</CmdRef>
             <Cmd>Replace</Cmd>
             <Data>200</Data>
          </Status>
          <Atomic>
             <CmdID>5</CmdID>
             <Add>
                <CmdID>6</CmdID>
                <Item>
                   <Target>
                      <LocURI>./Vendor/MSFT/WiFi/Profile/AgreeYa/WlanXml</LocURI>
                   </Target>
                   <Data>&lt;?xmlversion=&quot;1.0&quot;encoding=&quot;UTF-8&quot;?&gt;&lt;WLANProfilexmlns=&quot;http://www.microsoft.com/networking/WLAN/profile/v1&quot;&gt;&lt;name&gt;AgreeYa&lt;/name&gt;&lt;SSIDConfig&gt;&lt;SSID&gt;&lt;name&gt;AgreeYa&lt;/name&gt;&lt;/SSID&gt;&lt;/SSIDConfig&gt;&lt;connectionType&gt;ESS&lt;/connectionType&gt;&lt;connectionMode&gt;auto&lt;/connectionMode&gt;&lt;autoSwitch&gt;false&lt;/autoSwitch&gt;&lt;MSM&gt;&lt;security&gt;&lt;authEncryption&gt;&lt;authentication&gt;WPA2PSK&lt;/authentication&gt;&lt;encryption&gt;AES&lt;/encryption&gt;&lt;useOneX&gt;false&lt;/useOneX&gt;&lt;/authEncryption&gt;&lt;sharedKey&gt;&lt;keyType&gt;passPhrase&lt;/keyType&gt;&lt;protected&gt;false&lt;/protected&gt;&lt;keyMaterial&gt;qwer!@#$&lt;/keyMaterial&gt;&lt;/sharedKey&gt;&lt;/security&gt;&lt;/MSM&gt;&lt;/WLANProfile&gt;</Data>
                   <Meta>
                      <Format xmlns="syncml:metinf">chr</Format>
                   </Meta>
                </Item>
             </Add>
          </Atomic>
          <Final />
       </SyncBody>
    </SyncML>

    INCOMING SYNCML from Wndows 10 phone

    <?xml version="1.0" encoding="UTF-8"?>
    <SyncML xmlns="SYNCML:SYNCML1.2">
       <SyncHdr>
          <VerDTD>1.2</VerDTD>
          <VerProto>DM/1.2</VerProto>
          <SessionID>2</SessionID>
          <MsgID>2</MsgID>
          <Target>
             <LocURI>https://dhruvesh.agreeyamobility.net/api/v1/oma-dm/rs/syncml</LocURI>
          </Target>
          <Source>
             <LocURI>urn:uuid:CE10BE4B-C289-5900-94FD-30ADE423E7B7</LocURI>
          </Source>
       </SyncHdr>
       <SyncBody>
          <Status>
             <CmdID>1</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>0</CmdRef>
             <Cmd>SyncHdr</Cmd>
             <Chal>
                <Meta>
                   <Format xmlns="syncml:metinf">b64</Format>
                   <Type xmlns="syncml:metinf">syncml:auth-md5</Type>
                   <NextNonce xmlns="syncml:metinf">FpiTSMuP/0IcjVXOHOBZ293BQYnmYpcJXdwwQEeMkVU=</NextNonce>
                </Meta>
             </Chal>
             <Data>212</Data>
          </Status>
          <Status>
             <CmdID>2</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>5</CmdRef>
             <Cmd>Atomic</Cmd>
             <Data>507</Data>
          </Status>
          <Status>
             <CmdID>3</CmdID>
             <MsgRef>1</MsgRef>
             <CmdRef>6</CmdRef>
             <Cmd>Add</Cmd>
             <Data>500</Data>
          </Status>
          <Final />
       </SyncBody>
    </SyncML>

    As you can see, I got 507 from device for the <Atomic> tag and 500 for the <Add> tag..

    Could someone please help out urgently ?

    I am stuck here :)

    Tuesday, May 24, 2016 7:16 AM

All replies

  • The purpose of this forum is to support the Open Specifications documentation. You can read about the Microsoft Open Specifications program at https://msdn.microsoft.com/en-us/openspecifications/default

    The library of Open Specification documents is located at https://msdn.microsoft.com/library/dd208104.aspx

    It doesn’t appear that you are implementing one of the protocols cited.
    I would suggest posting your message to the Phone Apps Devs/Windows Phone Development forum
    http://social.msdn.microsoft.com/Forums/wpapps/en-US/home?category=wpapps

    Bryan S. Burgin Senior Escalation Engineer Microsoft Protocol Open Specifications Team

    Tuesday, May 24, 2016 4:30 PM
    Moderator