LB Booster
« Linking applications over wifi »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:29am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Linking applications over wifi  (Read 181 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Linking applications over wifi
« Thread started on: Dec 11th, 2017, 05:31am »

Hi All,

I have made an application that uses a "master" and a "slave" program. It's a Windows based Tablet that acts as a remote for a program running on a PC. Currently, the programs communicate over a serial RF link (home made).

Is there a way in LB/LBB to have this serial RF link working over à local wifi instead?
User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Linking applications over wifi
« Reply #1 on: Dec 11th, 2017, 08:24am »

on Dec 11th, 2017, 05:31am, flotulopex wrote:
Is there a way in LB/LBB to have this serial RF link working over à local wifi instead?

If you adapt the programs to communicate using sockets, it will work whatever the connection medium. For testing you can run the 'master' and 'slave' program on the same PC, but they should then work equally well if connected over a Local Area Network (e.g. WiFi) or even on opposite sides of the world via the internet!

The only likely modification needed, compared with when the programs are running on the same PC, is to ensure that any timeouts are long enough to allow for potential connection and communication delays.

There's a good resource of example programs for socket programming in Liberty BASIC at the Bay Six forum.

Richard.
User IP Logged

flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Linking applications over wifi
« Reply #2 on: Dec 11th, 2017, 3:33pm »

Thanks Richard.

Do you refer to, i.e., this thread: http://www.b6sw.com/forum/viewtopic.php?t=623&highlight=wifi+socket

If "yes", .......looks scary shocked

May I kindly suggest you (this is part of my "british like" humor) to create two simple commands in LBB called "SendWifi" and "ReceiveWiFi" to avoid tons of programming? grin

Dreaming, oh oh oh dreaming..... wink
User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Linking applications over wifi
« Reply #3 on: Dec 11th, 2017, 5:13pm »

on Dec 11th, 2017, 3:33pm, flotulopex wrote:
May I kindly suggest you (this is part of my "british like" humor) to create two simple commands in LBB called "SendWifi" and "ReceiveWiFi"

The 'right' way to tackle this is to create a library. One of the advantages of LBB is built-in support for the 'include directive (LB Workshop provides something similar for LB 4) which allows you to 'pull in' a set of pre-written and pre-tested functions. This gives you the best of both worlds: the ease of not having to write the code yourself but without the necessity of the 'core' language having to be modified.

Of course if a suitable library does not yet exist (as in this case, probably) then somebody has to write it. Unfortunately that's not going to be me, because I'm too busy (and anyway there's already such a library for BBC BASIC so I'd use that in preference). But once you, or somebody else, has done the work it can be made available for others to use.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls