Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 01:56 08 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MM Link - remote control Maximite

Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5915
Posted: 08:11pm 08 Aug 2013
Copy link to clipboard 
Print this post

I am looking for willing testers.
I was having problems getting a reliable serial port working under Wine.
It links OK but data transfers were intermittent.

I also wanted to talk to Maximites remotely.

But most of all, I want to write code for Linux as well as Windows.

This is my first attempt.

MMlink is a serial to TCPIP link which allows TeraTerm to access a Maximite (or any other serial device) remotely.

You can also run TeraTerm under Wine on a Linux box and connect to the Linux version of MMlink on the same PC.

I would like to know if it runs on Linux "out of the box" without having to set permissions etc.
The first time it is run, a file "MMlink.inf" is created and you will probably have to edit this to get the correct serial port.

The attached ZIP has 3 files:
MMlink.txt - a basic help file
MMlink.exe - the Windows executable
MMlink - the Linux executable

2013-08-09_061047_MMlink.zip

The next step is to change MMedit so it can talk to TCPIP
I have successfully create a DLL so that I can send data with zero's in it (Needed for XMODEM)

And then I start on a complete rewrite of MMedit to get it multiplatform.

Jim

VK7JH
MMedit   MMBasic Help
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3669
Posted: 08:43pm 08 Aug 2013
Copy link to clipboard 
Print this post

You say TCP/IP so what cable(s) etc are needed between PC and 'mite? TCP/IP is commonly used over Ethernet but as I recall the mites do not have that.

John
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5915
Posted: 09:11pm 08 Aug 2013
Copy link to clipboard 
Print this post

MMlink is a serial to TCPIP converter.
The Maximite connects to a PC as usual (USB or serial)
MMlink lets you run a terminal program on another computer to access the Maximite.

If you already have a ethernet access to your Maximite via ethernet to serial converters or serial to WIFI etc, this program is not needed.

Jim
VK7JH
MMedit   MMBasic Help
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3669
Posted: 04:30am 09 Aug 2013
Copy link to clipboard 
Print this post

Where is TCP/IP used?

There is:
mite (serial) ---- serial-to-USB ---- USB port on PC

I see no TCP/IP

John
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:23am 09 Aug 2013
Copy link to clipboard 
Print this post

mite (serial) ---- serial-to-USB ---- USB port on PC --- TCP/IP on PC

So anywhere from a network (even from internet if you setup your router) you can connect to a mite.
Edited by TZAdvantage 2013-08-10
Microblocks. Build with logic.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3669
Posted: 07:17am 09 Aug 2013
Copy link to clipboard 
Print this post

Oh. But I can remote login to the PC (if it isn't the one I'm already on) so there's no need for any extra software, is there?

John
 
mbramwel

Regular Member

Joined: 10/07/2013
Location: Canada
Posts: 42
Posted: 10:10am 09 Aug 2013
Copy link to clipboard 
Print this post

The program listens to inbound tcp/ip (TELNET) connection on port 6832

Once established, anything you type is sent to the gateway PC via the network which then sends the data via the serial port to the maximite.

In Cisco terminology, he has created a single port *terminal server* or also known as an "TCP/IP to Serial" gateway.

TJ: Does that sum it up nicely?


TJ: What language did you use? Visual Studio?Edited by mbramwel 2013-08-10
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3669
Posted: 11:41am 09 Aug 2013
Copy link to clipboard 
Print this post

But what's the point when there are standard programs that do it all already?

John
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5915
Posted: 11:57am 09 Aug 2013
Copy link to clipboard 
Print this post

You are correct John, with remote access to your PC, there is no need for my software.
That is how I normally control the laptop in the shed.

However, with a slow network, normal remote access is a pain.
I can use telnet on my phone to do work while waiting for the fish and chips.....

This is a simple way to get Linux - Windows working (in either direction).

The whole aim of the exercise is to learn a new programming language so I can produce software for Linux and Windows and maybe that other funny fruity one.

I have decided to give PureBasic a try and so far, I like it.

It's a long way of but a new MMedit should have code folding, multiple tabs and the option to make a portable installation.
Portable means you can run it on any PC from a USB stick and this is where having a TCPIP link to a real Maximite 'back home' will be convenient.

It's 10 years since I have done anything with Linux and then it was all command line stuff so I need to find out how modern GUI Linux in all the various flavours works.

Jim
VK7JH
MMedit   MMBasic Help
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024