Forums: Forum d’aide (Thread #42809)

Open more than 16 virtual com ports, Connect /c and callmenu TTL questions.... (2020-08-21 17:54 by mark_3m #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?

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

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
(dernière mise à jour: 2020-08-27 18:08 by mark_3m)

Re: Open more than 16 virtual com ports, Connect /c and callmenu TTL questions.... (2020-09-04 18:51 by mark_3m #85706)

Reply To Message #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?
>
> 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
>
> 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
>
I resolved this in the end...........
Répondre à #85594