iMicknl / iMicknl/python-sagemcom-api

[FAST3890V2] Incompatible model using example code

Open
#1 5 comments 0 reactions 1 assignee View on GitHub

@iMicknl is already working on this.

Since May 23, 2020.

blocked help wanted new-device
Dominant language
Python
Stars
141
Forks
49
Avg merge
7h 54m
Merged PRs (30d)
4

Description

Hi. I got this model:

Key Value
Board ID: FAST3890_D0
Symmetric CPU Threads: 2
Build Timestamp: 20190823_1045
Linux Version: 3.14.28-Prod_6.1.2mp2
Wireless Driver Version: 7.14.164.17 (r683874)
Systime: 2020-05-21T11:04:28+01:00
Standard Specification Compliant Docsis 3.1
Hardware Version FAST3890V2 Rev:V2.0
Software Version FAST3890_TDC_50.10.22.T1
Cable Modem Serial Number DM1705907002004
CM certificate Installed

I tried your example script with my informations, but received this error:

christian@desktop:~$ python3 sagemcom.py 
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

Using Python 3.8.2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.