No Serial activity #2
Unanswered
gary-saflame
asked this question in
Q&A
Replies: 5 comments 3 replies
-
Hi Gary, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi,
Thanks for the response. Please see the attached txt file.
I have tried an alternative UBB/serial adaptor, this one does generate some response in the form of an error.
Best Regards
Gary
From: dukelec ***@***.***>
Sent: 11 June 2024 02:06
To: dukelec/cdbus_gui ***@***.***>
Cc: gary-saflame ***@***.***>; Author ***@***.***>
Subject: Re: [dukelec/cdbus_gui] No Serial activity (Discussion #2)
Hi Gary,
Please start the programme with the command python main.py -v and then provide the printout of the python window.
—
Reply to this email directly, view it on GitHub <#2 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BI5AIWWL6LGA5IY62QQOSQDZGZEPDAVCNFSM6AAAAABJCQR2E6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TOMZSHA4TA> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/BI5AIWUTCXOX4I5HA3YE53TZGZEPDA5CNFSM6AAAAABJCQR2E6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQASSBRU.gif> Message ID: ***@***.*** ***@***.***> >
Microsoft Windows [Version 10.0.19045.4412]
(c) Microsoft Corporation. All rights reserved.
C:\Users\garyw>cd C:\Users\garyw\Documents\Software\Grafmarine\Git stuff\cdbus_gui
C:\Users\garyw\Documents\Software\Grafmarine\Git stuff\cdbus_gui>python main.py -v
09:29:03.415 asyncio: DEBUG: Using selector: SelectSelector
09:29:03.416 cdgui: INFO: start proxy_rx
09:29:03.419 cdgui: INFO: Please open url: http://localhost:8910
09:29:07.024 cdgui.web: INFO: GET /index.html 200 OK
09:29:07.037 cdgui.web: INFO: GET /libs/bulma-0.9.1.min.css 200 OK
09:29:07.046 cdgui.web: INFO: GET /libs/msgpack-ygoe-9045d01.min.js 200 OK
09:29:07.049 cdgui.web: INFO: GET /libs/ansi_up-5.0.0.js 200 OK
09:29:07.051 cdgui.web: INFO: GET /index.js 200 OK
09:29:07.070 cdgui.web: INFO: GET /utils/lang.js 200 OK
09:29:07.072 cdgui.web: INFO: GET /utils/helper.js 200 OK
09:29:07.075 cdgui.web: INFO: GET /utils/cd_ws.js 200 OK
09:29:07.078 cdgui.web: INFO: GET /common.js 200 OK
09:29:07.079 cdgui.web: INFO: GET /utils/idb.js 200 OK
09:29:07.081 cdgui.web: INFO: GET /plugins/dbg.js 200 OK
09:29:07.084 cdgui.web: INFO: GET /utils/trans/zh_cn.js 200 OK
09:29:07.086 cdgui.web: INFO: GET /utils/trans/zh_hk.js 200 OK
09:29:07.099 cdgui.web: INFO: ws: connect, path: /
09:29:07.106 cdgui: DEBUG: cfgs ser: {'action': 'get_cfgs'}
09:29:07.109 cdgui: DEBUG: port ser: {'action': 'clr_all'}, path: /
09:29:07.110 cdgui: DEBUG: port clr_all
09:29:07.113 cdgui: DEBUG: port ser: {'action': 'get_port', 'port': 9}, path: /
09:29:07.114 cdgui: DEBUG: port alloc 9
09:29:07.125 cdgui: DEBUG: dev ser: {'action': 'get'}
09:29:10.758 cdgui: DEBUG: dev ser: {'action': 'get'}
09:29:14.153 cdgui: DEBUG: dev ser: {'action': 'open', 'port': 'COM5', 'baud': 9600}
09:29:14.177 cdgui: DEBUG: dev ser: {'action': 'get'}
09:29:14.189 cdgui: DEBUG: dev ser: {'action': 'set_local', 'net': 0, 'mac': 0}
09:29:14.189 cdgui: INFO: set_local
09:29:14.193 cdgui: DEBUG: dev ser: {'action': 'get'}
09:29:17.942 cdgui.web: INFO: GET /ctrl.html 200 OK
09:29:17.961 cdgui.web: INFO: GET /libs/bulma-0.9.1.min.css 200 OK
09:29:17.965 cdgui.web: INFO: GET /libs/bulma-tooltip-v1.2.0.min.css 200 OK
09:29:17.967 cdgui.web: INFO: GET /libs/uPlot-1.6.5.min.css 200 OK
09:29:17.970 cdgui.web: INFO: GET /ctrl.js 200 OK
09:29:17.976 cdgui.web: INFO: GET /libs/uPlot-1.6.5.iife.min.js 200 OK
09:29:17.978 cdgui.web: INFO: GET /libs/ansi_up-5.0.0.js 200 OK
09:29:17.981 cdgui.web: INFO: GET /libs/msgpack-ygoe-9045d01.min.js 200 OK
09:29:18.006 cdgui.web: INFO: GET /utils/lang.js 200 OK
09:29:18.010 cdgui.web: INFO: GET /utils/idb.js 200 OK
09:29:18.013 cdgui.web: INFO: GET /utils/cd_ws.js 200 OK
09:29:18.016 cdgui.web: INFO: GET /utils/helper.js 200 OK
09:29:18.019 cdgui.web: INFO: GET /plugins/reg.js 200 OK
09:29:18.023 cdgui.web: INFO: GET /common.js 200 OK
09:29:18.027 cdgui.web: INFO: GET /plugins/pic.js 200 OK
09:29:18.029 cdgui.web: INFO: GET /plugins/dbg.js 200 OK
09:29:18.032 cdgui.web: INFO: GET /plugins/plot.js 200 OK
09:29:18.037 cdgui.web: INFO: GET /plugins/export.js 200 OK
09:29:18.039 cdgui.web: INFO: GET /plugins/iap.js 200 OK
09:29:18.042 cdgui.web: INFO: GET /utils/trans/zh_hk.js 200 OK
09:29:18.044 cdgui.web: INFO: GET /plugins/reg_rw.js 200 OK
09:29:18.047 cdgui.web: INFO: GET /utils/trans/zh_cn.js 200 OK
09:29:18.051 cdgui.web: INFO: GET /plugins/plot_zoom.js 200 OK
09:29:18.072 cdgui.web: INFO: ws: connect, path: /80:00:55
09:29:18.074 cdgui: DEBUG: cfgs ser: {'action': 'get_cfg', 'cfg': 'cdbus-bridge-v4.json'}
09:29:18.148 cdgui: DEBUG: port ser: {'action': 'clr_all'}, path: /80:00:55
09:29:18.148 cdgui: DEBUG: port clr_all
09:29:18.152 cdgui: DEBUG: port ser: {'action': 'get_port', 'port': None}, path: /80:00:55
09:29:18.152 cdgui: DEBUG: port alloc: 128
09:29:18.158 cdgui: DEBUG: port ser: {'action': 'get_port', 'port': None}, path: /80:00:55
09:29:18.158 cdgui: DEBUG: port alloc: 129
09:29:18.185 cdgui: DEBUG: port ser: {'action': 'get_port', 'port': 9}, path: /80:00:55
09:29:18.185 cdgui: DEBUG: port alloc 9
09:29:18.190 cdgui: DEBUG: port ser: {'action': 'get_port', 'port': None}, path: /80:00:55
09:29:18.190 cdgui: DEBUG: port alloc: 130
09:29:18.193 cdgui: DEBUG: dev ser: {'action': 'get'}
09:29:18.203 cdgui: DEBUG: proxy_tx: {'dst': ['80:00:55', 1], 'dat': b'\x00'}, src ['/80:00:55', 240]
09:29:18.203 cdgui: VERBOSE: proxy_tx frame: b'\x00U\x04\x84\xf0\x01\x00'
09:29:18.204 asyncio: ERROR: Task exception was never retrieved
future: <Task finished coro=<cdbus_proxy_service() done, defined at main.py:95> exception=TypeError('hex() takes no arguments (1 given)')>
Traceback (most recent call last):
File "main.py", line 112, in cdbus_proxy_service
csa['dev'].send(frame)
File "pycdnet\cdnet\dev\cdbus_serial.py", line 155, in send
self.logger.log(logging.VERBOSE, '<- ' + frame.hex(' ')) # python >= v3.8
TypeError: hex() takes no arguments (1 given)
09:29:22.576 cdgui: DEBUG: dev ser: {'action': 'get'}
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi,
Python 3.7.9
910926f
Thanks for your help with this issue.
Best Regards
Gary
From: dukelec ***@***.***>
Sent: 13 June 2024 04:26
To: dukelec/cdbus_gui ***@***.***>
Cc: gary-saflame ***@***.***>; Author ***@***.***>
Subject: Re: [dukelec/cdbus_gui] No Serial activity (Discussion #2)
What's your python version? ( python --version )
And what's the cdbus_gui version? ( git rev-parse --short HEAD )
—
Reply to this email directly, view it on GitHub <#2 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BI5AIWWQTZTIGFVXTTMJFEDZHEGLLAVCNFSM6AAAAABJCQR2E6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONJYGM3TS> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/BI5AIWVN5C3XHSSW5PTAR73ZHEGLLA5CNFSM6AAAAABJCQR2E6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQASTTKW.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi,
Thanks, I had ver 3.10 loaded but the path was still set to the older version.
Best Regards
Gary
Gary Williams MIET
Pacesoft Ltd
From: dukelec ***@***.***>
Sent: 14 June 2024 04:34
To: dukelec/cdbus_gui ***@***.***>
Cc: gary-saflame ***@***.***>; Author ***@***.***>
Subject: Re: [dukelec/cdbus_gui] No Serial activity (Discussion #2)
self.logger.log(logging.VERBOSE, '<- ' + frame.hex(' ')) # python >= v3.8
The error message shows that the python version should be 3.8 at least.
—
Reply to this email directly, view it on GitHub <#2 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BI5AIWVZHQJJP6YZHDLMNDLZHJQA5AVCNFSM6AAAAABJCQR2E6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONRZHA3DQ> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/BI5AIWSS7WTNRXYMTEE45QTZHJQA5A5CNFSM6AAAAABJCQR2E6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQASUJYY.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi,
Thanks, I have purged all older Python versions, the software now runs correctly
Best Regards
Gary
From: dukelec ***@***.***>
Sent: 15 June 2024 01:52
To: dukelec/cdbus_gui ***@***.***>
Cc: gary-saflame ***@***.***>; Author ***@***.***>
Subject: Re: [dukelec/cdbus_gui] No Serial activity (Discussion #2)
Try python3.10 main.py -v instead of python main.py -v.
—
Reply to this email directly, view it on GitHub <#2 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/BI5AIWVAHHI44V5UDJMRXWDZHOF3ZAVCNFSM6AAAAABJCQR2E6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TONZZGQYDM> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/BI5AIWXQNYQ3QTR7DWO7IGDZHOF3ZA5CNFSM6AAAAABJCQR2E6WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQASU4M4.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can successfully run the code and select and connect a USB connected serial port.
Unfortunately there is no activity over the serial port when a read is requested.
If a simple terminal emulator is used the serial port works as normal.
Any ideas why the serial port isn't being accessed?
Best Regards
Gary
Beta Was this translation helpful? Give feedback.
All reactions