11-08-2022 08:39 PM
Hello!
Is it possible to communicate LabView (PC) and Java (MOBILE) aside from TCP/IP?
Thank you~
11-08-2022 10:30 PM
Do you have other protocols in mind?
11-08-2022 10:47 PM
Hello @santo_13
I am looking for other protocol other than TCP/IP. I am also thinking of using a USB cable so that I can use it offline.
11-09-2022 04:57 AM
Besides TCP/IP there is no easy solution. Depending on your mobile you might be able to use ADB (Android Debug Bridge) to do things. Not sure what iPhones would need, most likely it is "in the best interest of the user" super proprietary, like most things Apple.
But ADB is also a specific protocol that needs a correct protocol implementation on top of an USB bus. And writing that in LabVIEW is not going to be easy at all. In fact I'm pretty sure nobody did that yet aside from feeble trials. Interfacing the ADB user library API could be the next best thing, but that requires interfacing to DLLs with low level C programming knowledge required. Maybe there is also a .Net solution for it, however probably not from Google!
11-09-2022 10:20 AM
Files, RabbitMQ(?) and similar, i assume.
11-09-2022 05:35 PM
Thank you for your suggestions @rolfk and @Yamaeda. I would study about that.
I am also thinking of simply creating a .txt file and calling that file to be able to control LabView.
11-10-2022 02:36 AM
@blippi wrote:
Thank you for your suggestions @rolfk and @Yamaeda. I would study about that.
I am also thinking of simply creating a .txt file and calling that file to be able to control LabView.
That’s likely going over TCP/IP too. 😀
A mobile phone typically doesn’t have direct access to your PCs file system and the PC on the other hand doesn’t have direct access to the phones file system.
The PTP transfer that usually allows you to access the pictures (only) on the phone, doesn’t integrate in the PCs file system but only is a feature of the shell extension in the Windows Explorer. Other applications on the PC can’t access that unless they do their own PTP or Windows Still Image interface.
You could let the application store the file in a cloud storage location and access a mapped cloud storage location on your PC. That’s TCP/IP for sure too behind the scenes.
11-11-2022 01:11 AM
Yes Sir that's right. Wondering if that would be the same if Mobile is connected into PC via USB cable then write another program to access the .txt file (not sure what languange to use yet ) then after moving the file into the PC device, access file in Labview, Quiet long tho [:-/]
thanks for your reply Sir [:>]
11-11-2022 01:33 PM
Might I suggest that the best question should not be "How do I do this without TCP/IP" so that you can do it offline, but rather "How do I make a Java program running on mobile connect via TCP/IP over a USB link", so that you can use TCP/IP after all, unless you have another reason for wanting to not do this besides wanting to be able to run over a USB link from PC to phone.
11-13-2022 05:29 PM
Yes Sir, I want to do this offline