简体   繁体   English

在诺基亚上添加 NAPDEF

[英]Adding NAPDEF on Nokia

I am trying to add a new access point on a Nokia S60 device, but I am a little bitt puzzled on how to do it.我正在尝试在诺基亚 S60 设备上添加一个新的接入点,但我对如何做有点困惑。 According to the spec a node should be added at the following root:根据规范,应在以下根目录添加节点:

./AP/<X> 

Whenever I try to add a node I get a status code 404 meaning that it could not be found.每当我尝试添加一个节点时,我都会得到一个状态码 404,这意味着它无法找到。 If I try to create an AP that already exists instead I get a status code 418 - it already exists.如果我尝试创建一个已经存在的 AP,我会得到一个状态代码 418 - 它已经存在。

The generated xml looks like this:生成的 xml 如下所示:

<Add>
  <CmdID>17</CmdID>
  <Item>
    <Target>
      <LocURI>./AP/testAP</LocURI>
    </Target>
    <Meta>
      <Format>node</Format>
      <Type>syncml:metinf</Type>
    </Meta>
  </Item>
</Add>

Using funambol I have also queried the whole./AP tree and there exists a lot of access point already, all with names like APId00X.使用 funambol 我还查询了整个./AP 树,并且已经存在很多接入点,所有接入点的名称都类似于 APId00X。

I have tried using other names for my AP on the form APId00X with no luck either.我尝试在 APId00X 表格上为我的 AP 使用其他名称,但也没有运气。

Does anyone know what it takes to create an AP on a S60 device?有谁知道在 S60 设备上创建 AP 需要什么?

It's not exactly an answer to your question but you might want to run some Symbian C++ code on the device to add the access point, if you can't find a way to do it successfully with OMA-DM.这不完全是您问题的答案,但如果您找不到使用 OMA-DM 成功完成此操作的方法,您可能希望在设备上运行一些 Symbian C++ 代码来添加接入点。

If that works better, you may still be able to work around the problem by using OMA-DM to install the.sis file containing your code, run it and uninstall it.如果效果更好,您仍然可以通过使用 OMA-DM 安装包含您的代码、运行并卸载它的 .sis 文件来解决该问题。

It's ugly but there is a higher probability that Nokia actually tests each steps before releasing phones.这很丑陋,但诺基亚在发布手机之前实际测试每个步骤的可能性更高。

Got the answer in a post at Nokia Forum.在诺基亚论坛的帖子中得到了答案。

When trying to add an access point using a command./AP/, it will fail with error 404 if some of the mandatory nodes are missing. 尝试使用命令./AP/ 添加接入点时,如果缺少某些必需节点,它将失败并出现错误 404。

So when adding an AP, it works fine as long as you remember to add all mandatory fields.因此,在添加 AP 时,只要您记得添加所有必填字段,它就可以正常工作。 I'm not sure about which ones are the mandatory fields.我不确定哪些是必填字段。 I have succefully created an AP without Bearer, but I have not experimented with this.我已经成功创建了一个没有 Bearer 的 AP,但我没有对此进行过实验。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM