Hello Konstantin,
thanks for your reply.
I already tried to detect the failure via VBA, using AT commands via a control MSComm :
Public Function isAliveModem() As Boolean
Dim strInput As String
isAliveModem = False
'Debug
Stop
'Port settings
modem.CommPort = 4
modem.Settings = "115200,n,8,1"
'Open com port
modem.PortOpen = True
'Send "AT"
modem.Output = "AT" & vbCr
'Wait for answer
sleep 2000
'Read answer
strInput = modem.Input
'if modem is alive : we should receive "OK"
If InStr(0, strInput, "OK") Then
isAliveModem = True
Stop
Else
isAliveModem = False
Stop
End If
Debug.Print (strInput)
'Close com Port
modem.PortOpen = False
End Function
It works fine as long as the port isn't already opened by Zenon at start-up (in this case, the command PortOpen = true sends error "comNoOpen 8012 The device is not open").
I was wondering if control used by zenon (or however zenon manages the modem) is usable directly by developer in VSTA ?
Regarding SNMP, could you advise a modem that supports it and has been tested for text-to-speech in Zenon ?
Regards,
Clément.