PepperDash / epi-videoCodec-ciscoExtended

Port and extension of the Essentials-Included CiscoSparkCodec EssentialsDevice
MIT License
0 stars 1 forks source link

[BUG]-Sometimes we don't get the "Login Successful" prompt #4

Open ngenovese11 opened 1 year ago

ngenovese11 commented 1 year ago

Describe the bug When the socket is connected, we are waiting for a "Login success" prompt before proceeding with "sync'ing" the codec. I found that very often we would never receive that prompt, and as such we'd continually disconnect/reconnect waiting for it. I observed this disconnect/reconnect process happen for as long as 10 minutes.

Debug

[13:57:05.000]App 3:[codec-ssh] attempting connect

[13:57:05.000]App 3:[codec-ssh] Creating new SshClient

[13:57:05.000]App 3:[codec] Socket status change SOCKET_STATUS_WAITING

[13:57:05.000]App 3:[codec--Sync] Processing actions SYS:1 COMMANDS:1

[13:57:06.000]App 3:[codec-ssh] Connected

[13:57:06.000]App 3:[codec-ssh] Sending 19 characters of text: 'xStatus SystemUnit[0D]'

[13:57:06.000]App 3:[codec-ssh] Received: 'xStatus SystemUnit[0D][0A]'

[13:57:06.000]App 3:[codec] Socket status change SOCKET_STATUS_CONNECTED

To Fix I added in a condition that assumes if we received "xStatus SystemUnit", to also assume that the login was successful and proceed with the sync process

Additional context 3 Series Processor