bogdanc Active Member Licensed User Longtime User Feb 4, 2016 #1 Hi All! I have b4j app and another PC app. I would like to have some communication between these 2 app. Is there any idea how to get this with b4j.
Hi All! I have b4j app and another PC app. I would like to have some communication between these 2 app. Is there any idea how to get this with b4j.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2016 #2 What is this other pc app? Is this an app that you developed? Upvote 0
bogdanc Active Member Licensed User Longtime User Feb 4, 2016 #3 Erel said: What is this other pc app? Is this an app that you developed? Click to expand... Hi Erel! Yes I developed both app. I will give a quick overview. 1st : app b4j I'm using to collect some data from external web (with some measurements) 2nd: is a LabView which do some tcp communication, data base updates etc. No I am sharing data by text file. 1st app read the data save on hard drive as text file and by labview I'm reading this text file. I wish to have something without text file to get some interactions between. Upvote 0
Erel said: What is this other pc app? Is this an app that you developed? Click to expand... Hi Erel! Yes I developed both app. I will give a quick overview. 1st : app b4j I'm using to collect some data from external web (with some measurements) 2nd: is a LabView which do some tcp communication, data base updates etc. No I am sharing data by text file. 1st app read the data save on hard drive as text file and by labview I'm reading this text file. I wish to have something without text file to get some interactions between.
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2016 #4 The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes. Upvote 0
The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes.
bogdanc Active Member Licensed User Longtime User Feb 4, 2016 #5 Erel said: The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes. Click to expand... Just only one app is developed on B4J. Both apps are on same PC. Upvote 0
Erel said: The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes. Click to expand... Just only one app is developed on B4J. Both apps are on same PC.
bogdanc Active Member Licensed User Longtime User Feb 4, 2016 #6 Erel said: The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes. Click to expand... Erel any Tutorial of that? Upvote 0
Erel said: The simplest way to communicate between two processes is with UDP. If both apps are developed with B4X then you can use B4XSerializator to send or receive objects instead of raw bytes. Click to expand... Erel any Tutorial of that?
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2016 #7 There are many discussions related to UDP: https://www.b4x.com/android/forum/pages/results/?query=udp Upvote 0
There are many discussions related to UDP: https://www.b4x.com/android/forum/pages/results/?query=udp
bogdanc Active Member Licensed User Longtime User Feb 6, 2016 #8 Erel said: There are many discussions related to UDP: https://www.b4x.com/android/forum/pages/results/?query=udp Click to expand... Hi Erel! This is nice idea but may not work for me in case of firewall. Is there something else that would work like access to some memory location etc ? Upvote 0
Erel said: There are many discussions related to UDP: https://www.b4x.com/android/forum/pages/results/?query=udp Click to expand... Hi Erel! This is nice idea but may not work for me in case of firewall. Is there something else that would work like access to some memory location etc ?
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2016 #9 Firewalls are not relevant here as this is a "loopback" communication. Upvote 0
bogdanc Active Member Licensed User Longtime User Feb 7, 2016 #10 Erel said: Firewalls are not relevant here as this is a "loopback" communication. Click to expand... Another thing that I would prefer to not use a UDP that this app will work in a "busy environment" (many different devices , networks relations, streams etc). Upvote 0
Erel said: Firewalls are not relevant here as this is a "loopback" communication. Click to expand... Another thing that I would prefer to not use a UDP that this app will work in a "busy environment" (many different devices , networks relations, streams etc).
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2016 #11 This is also not relevant. The communication happens internally in the OS. Upvote 0