Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:11 02 Aug 2025 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 : Yet another WAN MM test please...

     Page 2 of 3    
Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:20am 27 Feb 2018
Copy link to clipboard 
Print this post

Just cycled power now, and 107 is OPEN - I can talk to the MM from my LAN fine.
If you were to try now, it would probably work for you.....

Gone back to CONNECT status again, and all connections are being refused.
How long was that?

I have posted a question on the forums over there, but I am not overly impressed.
I think it is time to try a Lantronics Xport module as recommended by another member or two...Edited by Grogster 2018-02-28
Smoke makes things work. When the smoke gets out, it stops!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:24am 27 Feb 2018
Copy link to clipboard 
Print this post

In 'normal' tcp connections it is one port that listens to incoming connections and then another port is used to actually make the connection.
This leaves the incoming port in listen mode all the time ready for new connections.
There can be a counter how many connections are allowed.
Another way is to use the same port that is listening to connect to the incoming request. When the connection is finished it has to be set into listening mode again, otherwise it will never be able to respond to a new incoming request.

I am not sure what status 'OPEN' en 'CONNECT' means in your specific case. They are not really described as such in those situations.

Check here for a description of all the states.


Just tried it and it works. I connected multiple times.Edited by MicroBlocks 2018-02-28
Microblocks. Build with logic.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:35am 27 Feb 2018
Copy link to clipboard 
Print this post

Just got in OK and could LIST (didn't edit, sorry).

telnet grogster.ddns.net 5005
Trying 203.94.40.66...
Connected to grogster.ddns.net.

> list
list
'
'; Connected from Greg, in Victoria

(program listing)

JohnEdited by JohnS 2018-02-28
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:37am 27 Feb 2018
Copy link to clipboard 
Print this post

Gone back to CONNECT status again, and all connections are being refused.
How long was that?

I have posted a question on the forums over there, but I am not overly impressed.
I think it is time to try a Lantronics Xport module as recommended by another member or two...
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:42am 27 Feb 2018
Copy link to clipboard 
Print this post

Just tried again and was OK.

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:45am 27 Feb 2018
Copy link to clipboard 
Print this post

AHHHHHHHH - I think I know what is going on here.

OPEN means the module is available for connections.
CONNECT means someone else has opened the connection and is using it.

Still does not explain why connections seem to be refused if I wait a while - I suppose that someone could be connected at that time.....

I might be jumping the gun a little here blaming the module - perhaps.
I could totally believe that if the module HAD an active connection to somewhere, it would refuse connection attempts for others.

MB might be right I think, and I might need to set the auto-disconnect option IN THIS CASE AND FOR THIS EXPERIMENT, so as to allow more people to connect.

With NO auto-disconnect, I suppose what is happening, is that the first person to connect is allowed, but then when they are finished, the connection is NOT dropped(exactly as I have told the module), and thus: everyone else is refused cos the now unused connection is still being maintained - even if the other end disconnected.

Am I making any sense?
Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:49am 27 Feb 2018
Copy link to clipboard 
Print this post

  MicroBlocks said   Keeping a connection alive is not what you want.
This will prevent new connections to be made as the connection is still open.
Remember there is no constant communication between the two parties. If one stays open all the time even while the other is already disconnected it will stay open forever with that setting.
Auto-close is what you want.


Now I have read that a few times, this makes perfect sense, and must be what is happening. I will set a ten-minute auto-disconnect time and continue the experiment.
You will be kicked out of the connection after ten mins, in other words.

EDIT: Done. 300 seconds on the 'Inactivity timer'. 5 Mins. Every five mins, the connection should be dropped if there is no activity. That should allow more people in during the test.Edited by Grogster 2018-02-28
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 08:57am 27 Feb 2018
Copy link to clipboard 
Print this post

I'm connected right now.

Want me to leave it connected for 10 mins or disconnect before then?

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:00am 27 Feb 2018
Copy link to clipboard 
Print this post

Hi

I see that the 107 config tool now says CONNECT - that would be you then!
Feel free to EDIT and leave a message, then F1 save while you are there.

Once you have done that, please leave your connection active, but don't do anything.
I want to see if the inactivity timer gives your connection the push after five mins of no activity - I think that it will now I understand how that works!
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:02am 27 Feb 2018
Copy link to clipboard 
Print this post

Yep, it'll be me :)

I'm in telnet and F1 isn't going to work I suspect... do you happen to recall an alternative to exit EDIT?

John
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:05am 27 Feb 2018
Copy link to clipboard 
Print this post

Already got:

Connection closed by foreign host.

Looks like less than 10mins.

JohnEdited by JohnS 2018-02-28
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:06am 27 Feb 2018
Copy link to clipboard 
Print this post

No, sorry. There probably is a CTRL+ key combination, but I don't know of the top of my head.

Status is now OPEN, so provided you have not disconnected at your end, the 107 module here has kicked your connection off.

MicroBlocks was SO right.....I need to pay more attention to his posts!
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:07am 27 Feb 2018
Copy link to clipboard 
Print this post

Yep was kicked off. Our posts overlapped.

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:08am 27 Feb 2018
Copy link to clipboard 
Print this post

Would it be fair to say you had not typed anything to the module for five mins, or did it feel like you were given the boot sooner then that?

EDIT: I will leave this setup running overnight(my time), so others feel free to play around. Time to rest the little grey cells now. Edited by Grogster 2018-02-28
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:20am 27 Feb 2018
Copy link to clipboard 
Print this post

Probably hadn't for 5 mins. Probably had within 10, though.

Sorry I didn't time anything carefully, just glanced at the time.

I can try it again if you want - just tell me where to leave a delay of how long.

John [wondering if Glenn's OK with chat via web forum posts]
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:26am 27 Feb 2018
Copy link to clipboard 
Print this post

No, I think that must have been right.

I will stop the 'Chat' now, as I need sleep. Thanks very much for your help though.

@ Glenn - sorry for that, if that was pushing the rules.
Smoke makes things work. When the smoke gets out, it stops!
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:30am 27 Feb 2018
Copy link to clipboard 
Print this post

No worries & you're welcome. I'm glad I happened to be able to help.

John
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 11:44am 27 Feb 2018
Copy link to clipboard 
Print this post

can connect now fine, and the connection appears to be timing out ok after 5 minutes of inactivity (although i'm receiving no disconnect signal). but within the editor corruption of traffic seems to be occurring - escape sequences are getting mangled for instance, and have seen the odd character turn up in the right-most column.

just did a comparison with tassyjim's setup, and it is not displaying this corruption issue.


cheers,
rob :-)
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 03:38pm 27 Feb 2018
Copy link to clipboard 
Print this post

I managed to connect but did not seem to have a good session.

Tried connecting with both teraterm and MMEDit.

I think it is on my sides telnet configuration and MMEdit is not the latest versiob.

I tried to add some print comments, but could not list them to check.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 09:35pm 27 Feb 2018
Copy link to clipboard 
Print this post

The EDIT corruption is interesting. If I connect via my LAN here, I can use the editor just fine. No corrupted characters etc, and everything works exactly as it should. This suggests that as I am talking to it from my LAN, that the 107 module is NOT corrupting the ESC sequences, or my LAN connection would corrupt too. Interesting....

Here is a transcript of activity:


list all

'
'list
' CLS
' CLS
List







' B[
clBBs
P'
Print "hello world"
Print "hello NZ"
CLS
; Connected from Greg, in Victoria
List


; Hello from Qld




GET / HTTP/1.1gee:a phplqtdca1tzilla/5.0(iPad; CPU OS 9_3_5 like Mac OS X) Appl
GET / HTTP/1.1gee:a phplqtdca-x:ezilla/5.0(iPad; CPU OS 9_3_5 like Mac OS X) Ap





Const TILT=2,LED=3

SetPin TILT,DIN
SetPin LED,DOUT


Do
If Pin(TILT) Then Pin(LED)=1
If Pin(TILT)=0 Then Pin(LED)=0
Loop


OK, own up - which one of you was trying to "GET" a MAC-OS application and install it on my MM2?!
Smoke makes things work. When the smoke gets out, it stops!
 
     Page 2 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025