简体   繁体   English

使用蓝牙接收文件-从移动设备到PC

[英]Using Bluetooth to RECEIVE file - From Mobile to PC

I took me several time and days to research and try some codes applicable to my problem but unfortunately I wasn't able to see codes that pair and receive files (text, images etc..NOT audio or video in particular) from a mobile device. 我花了几天和几天的时间研究和尝试一些适用于我的问题的代码,但不幸的是,我看不到能配对和接收来自移动设备的文件(文本,图像等。尤其是音频或视频)的代码。 。

Most of the examples found are for SENDING only (From PC to Mobile). 找到的大多数示例仅用于发送 (从PC到移动设备)。

I have bluetooth device (USB) physically attached to my PC. 我的PC上物理连接了蓝牙设备(USB)。

Summary: 摘要:

All I need is a sample code that automatically detect/pair when a device is trying to send the file (like in Kodak kiosk but not limited to images only). 我需要的是一个示例代码,当设备尝试发送文件时(例如在Kodak信息亭中,但不仅限于图像),该代码可以自动检测/配对。

I also wanted to understand and study the code. 我也想了解和研究代码。

Perhaps use my 32feet.NET library and its ObexListener class see eg http://32feet.codeplex.com/wikipage?title=Server-side&referringTitle=OBEX 也许使用我的32feet.NET库及其ObexListener类,请参见例如http://32feet.codeplex.com/wikipage?title=Server-side&referringTitle=OBEX

For more advanced scenarios use Andy Hume's Brecham.Obex library and his server sample application. 对于更高级的方案,请使用Andy Hume的Brecham.Obex库及其服务器示例应用程序。 See http://inthehand.co.uk/files/folders/objectexchange/entry9942.aspx 参见http://inthehand.co.uk/files/folders/objectexchange/entry9942.aspx

Which Bluetooth stack does your PC have installed? 您的电脑安装了哪个蓝牙堆栈? Microsoft, Widcomm, BlueSoleil...? 微软,Widcomm,BlueSoleil ...? See eg http://32feet.codeplex.com/wikipage?title=Supported%20Hardware%20and%20Software On Widcomm for instance the build-in OBEX server would have to be disabled to allow your server to get all the incoming connections... 例如,请参阅http://32feet.codeplex.com/wikipage?title=Supported%20Hardware%20and%20Software在Widcomm上,必须禁用内置OBEX服务器,以允许您的服务器获得所有传入的连接。 。

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

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