-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FAST3890V2] Incompatible model using example code #1
Comments
Have you tried both encryption methods? (md5 and sha512). Could you try to log in via the router web interface, and run the following command via your console. $.xmo.getValuesTree("Device/DeviceInfo") |
Here are the full scripts and logs. Python 3.8.2 and MD5 christian@desktop:~$ cat sagemcom.py && python3 sagemcom.py
import asyncio
from sagemcom_api import SagemcomClient, EncryptionMethod
async def main():
# Choose EncryptionMethod.MD5 or EncryptionMethod.SHA512
sagemcom = SagemcomClient('192.168.100.1', 'admin', '<my password>', EncryptionMethod.MD5)
## Login method could be used to test the credentials
logged_in = await sagemcom.login()
if logged_in:
device_info = await sagemcom.get_device_info()
print(device_info)
## Or just call get_device_info() directly
device_info = await sagemcom.get_device_info()
print(device_info)
asyncio.run(main())
Traceback (most recent call last):
File "sagemcom.py", line 19, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "sagemcom.py", line 9, in main
logged_in = await sagemcom.login()
File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 204, in login
response = await self.__api_request_async([actions], True)
File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 149, in __api_request_async
async with session.post(api_host, data="req=" + json.dumps(payload, separators=(',', ':'))) as response:
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request
await resp.start(conn)
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 847, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/streams.py", line 591, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None Python 3.8.2 and SHA512 christian@desktop:~$ cat sagemcom.py && python3 sagemcom.py
import asyncio
from sagemcom_api import SagemcomClient, EncryptionMethod
async def main():
# Choose EncryptionMethod.MD5 or EncryptionMethod.SHA512
sagemcom = SagemcomClient('192.168.100.1', 'admin', '<my password>', EncryptionMethod.SHA512)
## Login method could be used to test the credentials
logged_in = await sagemcom.login()
if logged_in:
device_info = await sagemcom.get_device_info()
print(device_info)
## Or just call get_device_info() directly
device_info = await sagemcom.get_device_info()
print(device_info)
asyncio.run(main())
Traceback (most recent call last):
File "sagemcom.py", line 19, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "sagemcom.py", line 9, in main
logged_in = await sagemcom.login()
File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 204, in login
response = await self.__api_request_async([actions], True)
File "/home/christian/.local/lib/python3.8/site-packages/sagemcom_api/client.py", line 149, in __api_request_async
async with session.post(api_host, data="req=" + json.dumps(payload, separators=(',', ':'))) as response:
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__
self._resp = await self._coro
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client.py", line 504, in _request
await resp.start(conn)
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 847, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/home/christian/.local/lib/python3.8/site-packages/aiohttp/streams.py", line 591, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None |
@slimcdk it looks like your FAST3890V2 model is using a different firmware than the others tested. I have the FAST3890V3 myself, which works like a charm. If you are not able to run If you look in the |
Hi. I got this model:
I tried your example script with my informations, but received this error:
Using Python 3.8.2
The text was updated successfully, but these errors were encountered: