简体   繁体   English

在Android上通过WiFi连接到嵌入式设备

[英]Connecting to an Embedded Device over WiFi on Android

Working on a project where I have to interact directly with an Embedded device to set it up. 在一个项目中,我必须直接与嵌入式设备进行交互以进行设置。

I've completed the iOS version of the APP, but now I'm on to the Android side of things. 我已经完成了APP的iOS版本,但现在我要谈谈Android方面的事情。 The embedded device goes into Access Point (AP) mode and I can see it in the list of WiFi networks available to Join when I bring up the WiFi settings screen on Android. 嵌入式设备进入了接入点(AP)模式,当我在Android上打开WiFi设置屏幕时,可以在可供加入的WiFi网络列表中看到它。

But if I try to connect to it, the connection shows up at the bottom of the list with a little ? 但是,如果我尝试连接到该连接,则该连接会在列表的底部显示一点? mark symbol next to it and the word Disabled underneath it. 旁边的标记符号和其下方的“禁用”字样。

I interact with the embedded device by sending http post and get commands. 我通过发送http post和获取命令来与嵌入式设备进行交互。 This is 100% working on iOS, but I have no clue as to why Android won't let me establish the connection to the embedded device. 这是100%在iOS上运行的方法,但是我不知道为什么Android不允许我建立与嵌入式设备的连接。

I understand this isn't a programming question per se, but I'm not seeing this addressed anywhere. 我知道这本身不是编程问题,但我看不到任何地方都可以解决。

Ok this question is not programming type question . 好的,这个问题不是编程类型的问题。 as my experience may be this wifi network are not support WPS connection or if support WPS network and your device are connected but internet are not sharing you can simple restart you phone than try to connect again may be you problem are solve 根据我的经验,此wifi网络可能不支持WPS连接,或者如果支持WPS网络并且您的设备已连接但互联网不共享,则可以简单地重新启动电话,而不是尝试重新连接,这可能是您解决了问题

There was an error on the embedded programming side in regards to defining the name and connectivity of the network. 在定义网络的名称和连接性方面,嵌入式编程方面存在错误。 This was not an Android issue. 这不是Android的问题。 Thanks everyone. 感谢大家。

The WiFi chipset was a Bluegiga chipset. WiFi芯片组是Bluegiga芯片组。 When the embedded device was setting up the SSID for AP mode, the embedded processor was including a null string character to terminate the string. 当嵌入式设备为AP模式设置SSID时,嵌入式处理器包含一个空字符串字符以终止该字符串。 iOS seemed to be ok with it, but Android would not connect. iOS似乎可以,但Android无法连接。 Once the embedded programmer changed the way he was setting the SSID, the problem cleared up. 嵌入式程序员更改了他设置SSID的方式后,问题就解决了。

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

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