Ticket #40664

Open more than 16 virtual com ports, Connect /c and callmenu TTL questions.... (From Forum Message #85594)

Date d'ouverture: 2020-08-25 16:29 Dernière mise à jour: 2020-11-21 00:20

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
9 - le plus élevé
Sévérité:
5 - moyen
Résolution:
Invalid
Fichier:
Aucun
Vote
Score: -1
0.0% (0/1)
100.0% (1/1)

Détails

From Forum Help [#85594]

[forum: 85594]

I am new Teraterm TTL, but have been using teraterm for many years. I have to run an experiment that requires to operate 24/7 for 3 months logging serial comms data from 30 respirators in an enviromental chamber. I have two problems; 1) I can manual open vitual com ports new connection dialog box or (ALt+N), but once I get to more than 16 connections, communication stop on random com ports. Is there or what is, the limit on simultaneous virtual com port connections? If the limit is 16, I have to install a second PC to log the other com ports, this is not ideal but can be done. 2) TTL, I am trying to write a batch file to open all serial com ports sequentially, connect and then open a log file for all the connected com ports 16 to 30 connections. I have tried using the connect /c=1, mpause, connect /c=2 etc. but once the first connection is established I can't connect to the next connection. What am I missing? the second method I tried was to replicate the manual method by using the callmenu(new connection) + connect /c=x commands, i can open the New connection dialog box, but the connect command does not help complete the connection, the menu is waiting ok buttom. The next callmenu opens the next new connection dialogue box. no connections are completed without manual input. I start get issues once I accept a connection manually because the next dialogue box is reporting that the connection is no longer available. I could put a longer mpause to allow for the manual ok input before issuing the next callmenu command. Am i missing a callmenu command for accepting the connection "OK" button? I need to try and make this as automatic as possible to prevent missing a connected device, I will only have one shot at gathering this data. I have not started on the data logging, but I have opened files and created data stamped files etc. Any help with this would be greatly appreciated, best regards Mark

Ticket History (3/4 Histories)

2020-08-25 16:29 Updated by: None
  • New Ticket "Open more than 16 virtual com ports, Connect /c and callmenu TTL questions.... (From Forum Message #85594)" created
2020-08-27 18:12 Updated by: mark_3m
Commentaire

sample code below will open new connections but requires user to "ok" connection, and will create and open first log file and start logging, but only the first connection........

; sample macro of Tera Term
;
; File: Proflow EOS v1.ttl
; Description: Opens multiple com Port and creates logging files and starts logging
; Environment: generic
; Update: 18/08/19
; Author: M Robinson
; Configuration

callmenu 50480 ; Show Macro Window
dirname dir 'c:\Proflow_EOS'

callmenu 50110
mpause 500
connect '/C=10'
mpause 5000
CP = 10
call makefilename
logopen filename 0 0
mpause 500
logstart

callmenu 50110
mpause 500
connect '/C=11'
mpause 5000
CP = 11
call makefilename
logopen filename 0 0
mpause 500
logstart

callmenu 50110
mpause 500
connect '/C=12'
mpause 500
CP = 12
call makefilename
logopen filename 0 0
mpause 500
logstart

connect '/C=13'
mpause 500
connect '/C=14'
mpause 500.........
................... '/C= 10..40'

callmenu 50815 ; Side by Side

end


:makefilename
getdate StrDate
gettime StrTime
;1234567890
;YYYY-MM-DD
strcopy StrDate 1 4 DateY ;YYYY
strcopy StrDate 6 2 DateM ; MM
strcopy StrDate 9 2 DateD ; DD

;1234567890
;HH:MM:SS
strcopy StrTime 1 2 TimeH ;HH
strcopy StrTime 4 2 TimeM ; MM
strcopy StrTime 7 2 TimeS ; SS

sprintf2 filename "Proflow_EOS_Com%i_%s%s%s-%s%s%s.log" CP DateY DateM DateD TimeH TimeM TimeS
;filename = inputstr
return
(Edited, 2020-08-27 18:20 Updated by: nmaya)
2020-09-04 18:52 Updated by: mark_3m
Commentaire

I resolved this in the end

2020-11-21 00:20 Updated by: nmaya
  • Résolution Update from Aucun to Invalid
  • État Update from Ouvert to Atteints

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion