luke2012 Well-Known Member Licensed User Longtime User Oct 30, 2014 #1 Hi @Erel, I have a couple of questions about WiFi Direct library & tutorial (http://www.b4x.com/android/forum/threads/wifidirect-library.30410/) : 1) I wish to implement a scenario where I have a server device and one or more client devices : is it possible to set a predefined "server" (group owner) where the "client" devices can connect ? 2) Within this scenario, I wish to implement a data collection (like "Data collection" solution) where "client" devices can read/write objects (like read only catalog entry and write order entry). In this scenario wich is the best approach about data management : a) use a centralized db stored on "server" device where "client" devices access over WiFi Direct in order to read/write objects b) use a centralized db stored on "server" and a local "cache" db in the "client" devices in order to read/write objects and allow the client app to works also without a "server" connection (using cached data in local db) ? Last edited: Oct 30, 2014
Hi @Erel, I have a couple of questions about WiFi Direct library & tutorial (http://www.b4x.com/android/forum/threads/wifidirect-library.30410/) : 1) I wish to implement a scenario where I have a server device and one or more client devices : is it possible to set a predefined "server" (group owner) where the "client" devices can connect ? 2) Within this scenario, I wish to implement a data collection (like "Data collection" solution) where "client" devices can read/write objects (like read only catalog entry and write order entry). In this scenario wich is the best approach about data management : a) use a centralized db stored on "server" device where "client" devices access over WiFi Direct in order to read/write objects b) use a centralized db stored on "server" and a local "cache" db in the "client" devices in order to read/write objects and allow the client app to works also without a "server" connection (using cached data in local db) ?
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2014 #2 Must you use wifi direct? It is less suited for connecting multiple devices. Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Oct 31, 2014 #3 Erel said: Must you use wifi direct? It is less suited for connecting multiple devices. Click to expand... I thinking about Wifi Direct because it's smarter (for users) than other solution like setup a PC server environment. So Wifi Direct no way ? Which solution do you advice me about this? Thanks Upvote 0
Erel said: Must you use wifi direct? It is less suited for connecting multiple devices. Click to expand... I thinking about Wifi Direct because it's smarter (for users) than other solution like setup a PC server environment. So Wifi Direct no way ? Which solution do you advice me about this? Thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 2, 2014 #4 Most devices doesn't support wifi direct feature. Bluetooth will probably work better if the range is close enough. Upvote 0
Most devices doesn't support wifi direct feature. Bluetooth will probably work better if the range is close enough.
luke2012 Well-Known Member Licensed User Longtime User Nov 3, 2014 #5 Erel said: Most devices doesn't support wifi direct feature. Bluetooth will probably work better if the range is close enough. Click to expand... OK @Erel. I have to check if the range is enough. But assuming that is enough, the choice is between bluetooth and "B4J [Server] Data Collection Solution". Right ? I known that using Data collection solution I have a framework that allow to send objects from clients to server. I'm asking me if bluetooth have the same possibility. Probably implementing AsyncStream Object over bluetooth (http://www.b4x.com/android/forum/th...d-and-receive-objects-instead-of-bytes.30543/) ? Last edited: Nov 3, 2014 Upvote 0
Erel said: Most devices doesn't support wifi direct feature. Bluetooth will probably work better if the range is close enough. Click to expand... OK @Erel. I have to check if the range is enough. But assuming that is enough, the choice is between bluetooth and "B4J [Server] Data Collection Solution". Right ? I known that using Data collection solution I have a framework that allow to send objects from clients to server. I'm asking me if bluetooth have the same possibility. Probably implementing AsyncStream Object over bluetooth (http://www.b4x.com/android/forum/th...d-and-receive-objects-instead-of-bytes.30543/) ?
Erel B4X founder Staff member Licensed User Longtime User Nov 3, 2014 #6 If the devices are connected to the same router then you can use the standard Network library. A B4J server is 10x more powerful than any solution created with Bluetooth or raw sockets. Upvote 0
If the devices are connected to the same router then you can use the standard Network library. A B4J server is 10x more powerful than any solution created with Bluetooth or raw sockets.
luke2012 Well-Known Member Licensed User Longtime User Nov 4, 2014 #7 Erel said: If the devices are connected to the same router then you can use the standard Network library. A B4J server is 10x more powerful than any solution created with Bluetooth or raw sockets. Click to expand... I agree with you @Erel. I'm wish to adopt B4J Server as platform to implement a order taking solution. In this scenario is the "B4J [Server] - Data Collection Solution" the correct solution ? Upvote 0
Erel said: If the devices are connected to the same router then you can use the standard Network library. A B4J server is 10x more powerful than any solution created with Bluetooth or raw sockets. Click to expand... I agree with you @Erel. I'm wish to adopt B4J Server as platform to implement a order taking solution. In this scenario is the "B4J [Server] - Data Collection Solution" the correct solution ?
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2014 #8 It depends on your requirements. This project should be a good start. Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Nov 6, 2014 #9 Erel said: It depends on your requirements. This project should be a good start. Click to expand... @Erel, in a few words, I have 3 main roles : 1) Order submitter : access catalog items (read only) and create orders 2) Order receiver : read / update the orders submitted 3) Catalog & Order Administrator : read / update / create catalog items and read / update / create Orders In this scenario, wich is the best approach using B4A app as client and B4J server ? 1) Implement a single app using "Conditional Compilation & Build Configurations" to handle each role 2) Implement a specific app for each role (in this case 3 different apps). Thanks Last edited: Nov 10, 2014 Upvote 0
Erel said: It depends on your requirements. This project should be a good start. Click to expand... @Erel, in a few words, I have 3 main roles : 1) Order submitter : access catalog items (read only) and create orders 2) Order receiver : read / update the orders submitted 3) Catalog & Order Administrator : read / update / create catalog items and read / update / create Orders In this scenario, wich is the best approach using B4A app as client and B4J server ? 1) Implement a single app using "Conditional Compilation & Build Configurations" to handle each role 2) Implement a specific app for each role (in this case 3 different apps). Thanks