简体   繁体   English

Unity3D-在移动应用程序和桌面应用程序之间传输数据

[英]Unity3D - Transfer Data between a Mobile and a Desktop Application

I have a desktop application to store various data in a database (up to 10k datasets). 我有一个桌面应用程序,用于在数据库中存储各种数据(最多10k数据集)。 Then i have multiple mobile devices (Android and Apple) to collect data by user-input (up to 2k datasets). 然后,我有多个移动设备(Android和Apple)通过用户输入(最多2k数据集)收集数据。

Assuming a not existing wlan or internet connection: what is the best way to transfer or synchronize data between Desktop - Mobile and vice versa ? 假设现有的无线局域网或Internet连接不存在:在台式机与移动设备之间进行数据传输或同步的最佳方法是什么? I would try to copy the db-file to the mobile device and update the mobile-db via script comparation (slow..). 我会尝试将数据库文件复制到移动设备,并通过脚本比较(慢..)来更新移动数据库。 A) How to access usb-connected mobile storage via desktop-app? A)如何通过桌面应用访问USB连接的移动存储? B) How to find, read and write those files on mobile? B)如何在手机上查找,读取和写入这些文件?

Assuming i have wlan if i come home with mobile and dont wanna mess with usb. 假设我有无线局域网,如果我带着手机回家,不想与USB混为一谈。 C) Transfer data via multiplayer-communication-stuff? C)通过多人交流资料传输数据? Like the two running apps communicate via chat-like system. 就像两个正在运行的应用程序通过类似聊天的系统进行通信一样。 One dataset per message; 每封邮件一个数据集; then parsed to desktop-db. 然后解析为desktop-db。 ... seems also slow. ...似乎也很慢。

Best solution would be.. both ^^ the user should be able to choose. 最好的解决方案是..用户都应该能够选择。 What do u folks think ? 你们怎么看? :) :)

如果您可以通过手机束缚热点,请将您的PC连接到该网络,并在应用程序之间使用套接字或http请求。

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

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