go-dsl icon indicating copy to clipboard operation
go-dsl copied to clipboard

DrayTek Vigor 167 No promt detected

Open baba2k opened this issue 2 years ago • 3 comments

Hi,

the Draytek Vigor 167 Fimware 5.2 promt is "Username:" instead of "Account:" so no promt detected error is thrown.

Thanks!

baba

baba2k avatar Jan 25 '23 00:01 baba2k

Does the connection work and provide usable data, if you change "Account:" to "Username:" in draytek/telnet.go?

janh avatar Jan 25 '23 00:01 janh

Just tested the binary, but this would solve the issue on my opinion. The telnet commands are the same as before

baba2k avatar Jan 25 '23 00:01 baba2k

Changing the expected prompt would probably make the initial connection work, but it may still fail later when loading data.

The output of the adsl command on other DrayTek devices contains some Lantiq-specific quirks, which the client compensates for. So even if the same commands are all available on this device, I'm not confident that the client would fully work and provide correct data without any changes.

If you test it and it actually works, I'm of course happy to add support for this different prompt. Please send me a copy of the raw.txt file then, so I have something to test against myself and can implement any fixes if necessary.

Instructions for building from source are available in the documentation. If you need any further help, please ask!

janh avatar Jan 25 '23 01:01 janh