VM201 authentication

hi again,

I am trying to send username and password altogether but always the same response :

020558a103020543b603

any clue ?

I am using php fopensocket / fwrite

if I try to merge the two messages (user+password) : I get this :

020541b803020558a103020543b603

Meaning that authentication is requested (???), authentication failed and session has been closed

thx in advance

fwrite is probably not sending what you think it’s sending

it does work for sending toggle information (when user/pwd is not set). But as soon as I put a user/pwd and try to login … no way

user : 22222222
pwd : BBBBBBBB

string should be : 02145532323232323232320005030214574242424242424242008303

or am I wrong here ?

Username (0x55)
02 [color=#FF0000]0E[/color] 55 32 32 32 32 32 32 32 32 00 [color=#FF0000]0B[/color] 03

Password (0x57)
02 [color=#FF0000]0E[/color] 57 42 42 42 42 42 42 42 42 00 [color=#FF0000]89[/color] 03

The second byte is the size of the entire packet, which in this case is 14 bytes. The decimal number 14 is equal to the hexadecimal number 0E.

[quote=“VEL448”]Username (0x55)
02 [color=#FF0000]0E[/color] 55 32 32 32 32 32 32 32 32 00 [color=#FF0000]0B[/color] 03

Password (0x57)
02 [color=#FF0000]0E[/color] 57 42 42 42 42 42 42 42 42 00 [color=#FF0000]89[/color] 03

The second byte is the size of the entire packet, which in this case is 14 bytes. The decimal number 14 is equal to the hexadecimal number 0E.[/quote]

arf ! I should have found this one … so easy … thanks a lot ! Now I see how it works and I should be able to accomplish what I want thanks to you !