Are there any TCP/IP stack implementations on top of Bluetooth for Java, more specificaly for Android?

こ雲淡風輕ζ 提交于 2019-12-31 03:54:17

问题


What I need to do is pair with a Bluetooth enabled device which hosts some webservices and browse for DNS-SD services.

Then I have to pick one of those discovered services and make some http requests over https or other secure method.

I already did this trough WiFi, but for some reasons there's a need to do the same trough Bluetooth.

I did some research yesterday but I haven't found what I need. I'm not sure how to approach this.

Any input on this is welcomed. Thanks!


回答1:


Most implementations of bluetooth implement sockets on top of RFCOMM or L2CAP, but these are not standard sockets.

I've never used it, but I believe that the Bluetooth network encapsulation protocol (BNEP) allows for the use of standard TCP/IP networking over Bluetooth. Android does not implement this and I don't think it is widely supported elsewhere.



来源:https://stackoverflow.com/questions/17856255/are-there-any-tcp-ip-stack-implementations-on-top-of-bluetooth-for-java-more-sp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!