Project

General

Profile

Actions

Bug #10544

closed

Puxing PX888K can't be read

Added by Mike Williams about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/24/2023
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next
Model affected:
Puxing PX888K
Platform:
Linux
Debug Log:
I read the instructions above:

Description

I read and programmed a couple of UV5r's tonight, and an BF888. Sadly, I can not program my Puxing.
This next level Chirp looks awesome.
I was able to program all these radios with the old system.
I stepped through the process just like I did with the other radios, but did not get any indication other than the following:
Tried to read 8 bytes, but got 0 bytes instead.

Help?

[2023-04-24 21:32:02,144] chirp.logger - DEBUG: CHIRP next-20230421 on Linux - Linux Mint 20.3 Una (Python 3.8.10)
[2023-04-24 21:32:02,315] chirp.wxui - DEBUG: Using locale: en_US (60)
[2023-04-24 21:32:02,320] chirp.wxui - DEBUG: Translation loaded=True for CHIRP: en_US (el,es,uk_UA,nl,ru,pl,zh_CN,de,hu,pt_BR,fr,tr_TR,en_US,it) from /usr/local/lib/python3.8/dist-packages/chirp/locale
[2023-04-24 21:32:02,324] chirp.wxui - DEBUG: Translation loaded=False for wxstd: en_US (el,es,id,af,sv,nl,tr,ru,pl,eu,ta,zh_CN,ca@valencia,de,hi,gl_ES,lt,ko_KR,uk,hu,pt_BR,fr,cs,fi,nb,da,vi,lv,pt,ca,sq,ja,ar,an,it,ne,ro,sl,ms,sk,zh_TW)
[2023-04-24 21:32:02,466] main - INFO: Python/3.8.10 // Linux/Linux-5.15.0-69-generic-x86_64-with-glibc2.29 // CHIRP/next-20230421 // wx/4.0.7 gtk3 (phoenix) wxWidgets 3.0.4
[2023-04-24 21:32:02,802] chirp.wxui.main - INFO: Server reports next-20230421 is latest
[2023-04-24 21:32:17,381] chirp.wxui.clone - DEBUG: Selected
[2023-04-24 21:32:27,678] chirp.wxui.clone - DEBUG: Using port '/dev/ttyS0'
[2023-04-24 21:32:27,678] chirp.wxui.clone - DEBUG: Selected
[2023-04-24 21:32:27,678] chirp.wxui.clone - DEBUG: Serial opened: Serial(port='/dev/ttyS0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0.25, xonxoff=False, rtscts=False, dsrdtr=False) (rts=True dtr=True)
[2023-04-24 21:32:27,930] chirp.wxui.clone - ERROR: Failed to clone: Tried to read 8 bytes, but got 0 bytes instead.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/chirp/wxui/clone.py", line 66, in run
self._fn()
File "/usr/local/lib/python3.8/dist-packages/chirp/drivers/puxing_px888k.py", line 1148, in sync_in
self._mmap = do_download(self)
File "/usr/local/lib/python3.8/dist-packages/chirp/drivers/puxing_px888k.py", line 672, in do_download
initial_handshake(radio.pipe, 10)
File "/usr/local/lib/python3.8/dist-packages/chirp/drivers/puxing_px888k.py", line 608, in initial_handshake
x = attempt_initial_handshake(pipe)
File "/usr/local/lib/python3.8/dist-packages/chirp/drivers/puxing_px888k.py", line 596, in attempt_initial_handshake
x = piperead(pipe, len(HANDSHAKE_IN[0]))
File "/usr/local/lib/python3.8/dist-packages/chirp/drivers/puxing_px888k.py", line 569, in piperead
raise errors.RadioError(
chirp.errors.RadioError: Tried to read 8 bytes, but got 0 bytes instead.
[2023-04-24 21:32:35,053] chirp.wxui.clone - WARNING: Stopping clone thread


Files

chirp_puxing_error.png (14.7 KB) chirp_puxing_error.png puxing_PK888k error Balázs Petik, 05/02/2023 11:01 AM
puxing_px888k.py (66.2 KB) puxing_px888k.py a14cdc87 Dan Smith, 05/04/2023 04:13 PM
Actions #1

Updated by Stéphane Charbonneau about 1 year ago

Im having the same issue

Actions #2

Updated by Dan Smith about 1 year ago

Are (either of) you able to use chirp-legacy to validate your cable and radio configuration? This radio hasn't really been converted for next, but I also don't see the telltale signs of incompatibility in the debug log.

Actions #3

Updated by Stéphane Charbonneau about 1 year ago

I try the legacy ... The new one too and the original program from puxing and nothing goes... There no connection establsh

Actions #4

Updated by Dan Smith about 1 year ago

Okay, that's good data because the debug log looks like the radio is not responding to chirp. That would happen if there are driver, cable, or connection issues. With no other indication, I have to say it looks like not a chirp problem. I don't have one of these radios nor did I write the driver...

Actions #5

Updated by Mike Williams about 1 year ago

Can you get a PX888 Dan? Should I let you borrow mine?

Actions #6

Updated by Balázs Petik about 1 year ago

I have a same issue.

I have tested on linux and Windows too, with three USB/tty cable.
A native install and the snap version too.

It was worked with a one year earlier version.

Actions #7

Updated by Dan Smith about 1 year ago

That error is an actual failure I can fix, but I need the debug log after you reproduce it. Please see How_To_Report_Issues .

Actions #8

Updated by Mike Williams about 1 year ago

Sorry Dan. I just updated my Linux Mint and Chirp won't launch for me today.

Actions #9

Updated by Dan Smith about 1 year ago

To be clear, I'm looking for the log from Balázs Petik, as that error is actionable and related to -next.

Actions #10

Updated by Balázs Petik about 1 year ago

Dan Smith wrote in #note-9:

To be clear, I'm looking for the log from Balázs Petik, as that error is actionable and related to -next.

Sorry,

Here is my log:

[2023-05-04 08:24:22,323] chirp.logger - DEBUG: CHIRP next-20230427 on Linux - Ubuntu 22.04.2 LTS (Python 3.10.6)
[2023-05-04 08:24:23,397] chirp.wxui - DEBUG: Using locale: hu_HU (102)
[2023-05-04 08:24:23,482] chirp.wxui - DEBUG: Translation loaded=True for CHIRP: hu_HU (de,ru,hu,es,pt_BR,el,pl,tr_TR,uk_UA,fr,en_US,nl,it,zh_CN) from /home/pbalu/.local/lib/python3.10/site-packages/chirp/locale
[2023-05-04 08:24:23,487] chirp.wxui - DEBUG: Translation loaded=True for wxstd: hu_HU (de,lv,lt,da,tr,af,uk,gl_ES,fi,sl,ne,ru,hu,es,pt_BR,sv,ko_KR,el,pl,nb,ja,pt,zh_TW,hi,fr,ms,ar,sk,ca@valencia,eu,ca,ro,cs,nl,it,vi,zh_CN,id,an,sq,ta)
[2023-05-04 08:24:23,823] main - INFO: Python/3.10.6 // Linux/Linux-5.19.0-41-generic-x86_64-with-glibc2.35 // CHIRP/next-20230427 // wx/4.0.7 gtk3 (phoenix) wxWidgets 3.0.5
[2023-05-04 08:24:23,837] chirp.wxui.main - INFO: Ignoring dist stock conf DE Freenet Frequencies.csv because same name found in user dir
[2023-05-04 08:24:23,837] chirp.wxui.main - INFO: Ignoring dist stock conf EU LPD and PMR Channels.csv because same name found in user dir
[2023-05-04 08:24:23,837] chirp.wxui.main - INFO: Ignoring dist stock conf FR Marine VHF Channels.csv because same name found in user dir
[2023-05-04 08:24:23,837] chirp.wxui.main - INFO: Ignoring dist stock conf KDR444.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf NOAA Weather Alert.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf UK Business Radio Simple Light Frequencies.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US 60 meter channels (Center).csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US 60 meter channels (Dial).csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US CA Railroad Channels.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US Calling Frequencies.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US FRS and GMRS Channels.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US MURS Channels.csv because same name found in user dir
[2023-05-04 08:24:23,838] chirp.wxui.main - INFO: Ignoring dist stock conf US Marine VHF Channels.csv because same name found in user dir
[2023-05-04 08:24:24,629] chirp.wxui.main - INFO: Server reports next-20230427 is latest
[2023-05-04 08:28:20,817] chirp.wxui.clone - DEBUG: Using port '/dev/ttyUSB0'
[2023-05-04 08:28:20,817] chirp.wxui.clone - DEBUG: Selected
[2023-05-04 08:28:20,819] chirp.wxui.clone - DEBUG: Serial opened: Serial(port='/dev/ttyUSB0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0.25, xonxoff=False, rtscts=False, dsrdtr=False) (rts=True dtr=True)
[2023-05-04 08:28:20,840] chirp.drivers.puxing_px888k - DEBUG: Reading block 0
[2023-05-04 08:28:20,933] chirp.wxui.clone - ERROR: Failed to clone: ord() expected string of length 1, but int found
Traceback (most recent call last):
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/wxui/clone.py", line 66, in run
self._fn()
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/drivers/puxing_px888k.py", line 1148, in sync_in
self._mmap = do_download(self)
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/drivers/puxing_px888k.py", line 677, in do_download
memory.set(blockaddr, block)
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/memmap.py", line 144, in set
pos, self._bitwise.string_straight_encode(value))
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/bitwise.py", line 108, in string_straight_encode
return bytes(b''.join(int_to_byte(ord(b)) for b in string))
File "/home/pbalu/.local/lib/python3.10/site-packages/chirp/bitwise.py", line 108, in
return bytes(b''.join(int_to_byte(ord(b)) for b in string))
TypeError: ord() expected string of length 1, but int found
[2023-05-04 08:28:25,276] chirp.wxui.clone - WARNING: Stopping clone thread

Actions #11

Updated by Dan Smith about 1 year ago

Okay, can you try this module (instructions are LoadingTestModules ) and see if it gets farther? Please include a debug log for this run either way.

Actions #12

Updated by Mike Williams about 1 year ago

In short: It didn't work for me, and it didn't create a debug.log
I'm hoping that Balázs Petik gets a more helpful response.

I installed the latest version of Chirp.
It runs! YAY!
I successfully downloaded a UV-5r.
I attempted to download the PX888k and it gave the same response as before.
I loaded the test module puxing_px888k.py and the Chirp background turned a funny red.
I tried to download the PX888k again which gave an Errno 5 input/output error.
I tried to get the debug.log but it wasn't an option under help.
I scanned my computer for a new debug.log but none was found.

Actions #13

Updated by Dan Smith about 1 year ago

Mike, it's not going to work for you because it's not addressing any problem you've reported. Your debug log is available in the help menu.

Your original report is pretty clearly a connectivity issue because it's not hearing back from the radio at all. That's why Balazs' log is useful as it shows actually talking to the radio. If you're now getting an input/output error that points to some other piece of hardware (that's an OS error not a chirp one). I can take a look if you attach your log with that error in it, but it's very unlikely that I can do anything for that error.

Actions #14

Updated by Balázs Petik about 1 year ago

Thank you.

This version of puxing_px888k.py is working.

Here is the log:

[2023-05-09 13:04:19,077] chirp.logger - DEBUG: CHIRP next-20230427 on Linux - Ubuntu 22.04.2 LTS (Python 3.10.6)
[2023-05-09 13:04:19,596] chirp.wxui - DEBUG: Using locale: hu_HU (102)
[2023-05-09 13:04:19,602] chirp.wxui - DEBUG: Translation loaded=True for CHIRP: hu_HU (de,ru,hu,es,pt_BR,el,pl,tr_TR,uk_UA,fr,en_US,nl,it,zh_CN) from /home/pbalu/.local/lib/python3.10/site-packages/chirp/locale
[2023-05-09 13:04:19,607] chirp.wxui - DEBUG: Translation loaded=True for wxstd: hu_HU (de,lv,lt,da,tr,af,uk,gl_ES,fi,sl,ne,ru,hu,es,pt_BR,sv,ko_KR,el,pl,nb,ja,pt,zh_TW,hi,fr,ms,ar,sk,ca@valencia,eu,ca,ro,cs,nl,it,vi,zh_CN,id,an,sq,ta)
[2023-05-09 13:04:19,955] main - INFO: Python/3.10.6 // Linux/Linux-5.19.0-41-generic-x86_64-with-glibc2.35 // CHIRP/next-20230427 // wx/4.0.7 gtk3 (phoenix) wxWidgets 3.0.5
[2023-05-09 13:04:19,967] chirp.wxui.main - INFO: Ignoring dist stock conf DE Freenet Frequencies.csv because same name found in user dir
[2023-05-09 13:04:19,967] chirp.wxui.main - INFO: Ignoring dist stock conf EU LPD and PMR Channels.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf FR Marine VHF Channels.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf KDR444.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf NOAA Weather Alert.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf UK Business Radio Simple Light Frequencies.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US 60 meter channels (Center).csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US 60 meter channels (Dial).csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US CA Railroad Channels.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US Calling Frequencies.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US FRS and GMRS Channels.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US MURS Channels.csv because same name found in user dir
[2023-05-09 13:04:19,968] chirp.wxui.main - INFO: Ignoring dist stock conf US Marine VHF Channels.csv because same name found in user dir
[2023-05-09 13:04:21,441] chirp.wxui.main - INFO: Server reports next-20230509 is latest
[2023-05-09 13:04:52,827] chirp.wxui.clone - DEBUG: Using port '/dev/ttyUSB0'
[2023-05-09 13:04:52,827] chirp.wxui.clone - DEBUG: Selected
[2023-05-09 13:04:52,830] chirp.wxui.clone - DEBUG: Serial opened: Serial(port='/dev/ttyUSB0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0.25, xonxoff=False, rtscts=False, dsrdtr=False) (rts=True dtr=True)
[2023-05-09 13:04:52,848] chirp.drivers.puxing_px888k - DEBUG: Reading block 0
[2023-05-09 13:04:52,941] chirp.drivers.puxing_px888k - DEBUG: Reading block 64
[2023-05-09 13:04:53,034] chirp.drivers.puxing_px888k - DEBUG: Reading block 128
[2023-05-09 13:04:53,127] chirp.drivers.puxing_px888k - DEBUG: Reading block 192
[2023-05-09 13:04:53,221] chirp.drivers.puxing_px888k - DEBUG: Reading block 256
[2023-05-09 13:04:53,314] chirp.drivers.puxing_px888k - DEBUG: Reading block 320
[2023-05-09 13:04:53,408] chirp.drivers.puxing_px888k - DEBUG: Reading block 384
[2023-05-09 13:04:53,501] chirp.drivers.puxing_px888k - DEBUG: Reading block 448
[2023-05-09 13:04:53,595] chirp.drivers.puxing_px888k - DEBUG: Reading block 512
[2023-05-09 13:04:53,689] chirp.drivers.puxing_px888k - DEBUG: Reading block 576
[2023-05-09 13:04:53,782] chirp.drivers.puxing_px888k - DEBUG: Reading block 640
[2023-05-09 13:04:53,876] chirp.drivers.puxing_px888k - DEBUG: Reading block 704
[2023-05-09 13:04:53,969] chirp.drivers.puxing_px888k - DEBUG: Reading block 768
[2023-05-09 13:04:54,063] chirp.drivers.puxing_px888k - DEBUG: Reading block 832
[2023-05-09 13:04:54,156] chirp.drivers.puxing_px888k - DEBUG: Reading block 896
[2023-05-09 13:04:54,250] chirp.drivers.puxing_px888k - DEBUG: Reading block 960
[2023-05-09 13:04:54,343] chirp.drivers.puxing_px888k - DEBUG: Reading block 1024
[2023-05-09 13:04:54,436] chirp.drivers.puxing_px888k - DEBUG: Reading block 1088
[2023-05-09 13:04:54,530] chirp.drivers.puxing_px888k - DEBUG: Reading block 1152
[2023-05-09 13:04:54,624] chirp.drivers.puxing_px888k - DEBUG: Reading block 1216
[2023-05-09 13:04:54,717] chirp.drivers.puxing_px888k - DEBUG: Reading block 1280
[2023-05-09 13:04:54,811] chirp.drivers.puxing_px888k - DEBUG: Reading block 1344
[2023-05-09 13:04:54,904] chirp.drivers.puxing_px888k - DEBUG: Reading block 1408
[2023-05-09 13:04:54,998] chirp.drivers.puxing_px888k - DEBUG: Reading block 1472
[2023-05-09 13:04:55,091] chirp.drivers.puxing_px888k - DEBUG: Reading block 1536
[2023-05-09 13:04:55,184] chirp.drivers.puxing_px888k - DEBUG: Reading block 1600
[2023-05-09 13:04:55,278] chirp.drivers.puxing_px888k - DEBUG: Reading block 1664
[2023-05-09 13:04:55,372] chirp.drivers.puxing_px888k - DEBUG: Reading block 1728
[2023-05-09 13:04:55,465] chirp.drivers.puxing_px888k - DEBUG: Reading block 1792
[2023-05-09 13:04:55,559] chirp.drivers.puxing_px888k - DEBUG: Reading block 1856
[2023-05-09 13:04:55,652] chirp.drivers.puxing_px888k - DEBUG: Reading block 1920
[2023-05-09 13:04:55,745] chirp.drivers.puxing_px888k - DEBUG: Reading block 1984
[2023-05-09 13:04:55,839] chirp.drivers.puxing_px888k - DEBUG: Reading block 2048
[2023-05-09 13:04:55,932] chirp.drivers.puxing_px888k - DEBUG: Reading block 2112
[2023-05-09 13:04:56,026] chirp.drivers.puxing_px888k - DEBUG: Reading block 2176
[2023-05-09 13:04:56,119] chirp.drivers.puxing_px888k - DEBUG: Reading block 2240
[2023-05-09 13:04:56,213] chirp.drivers.puxing_px888k - DEBUG: Reading block 2304
[2023-05-09 13:04:56,306] chirp.drivers.puxing_px888k - DEBUG: Reading block 2368
[2023-05-09 13:04:56,400] chirp.drivers.puxing_px888k - DEBUG: Reading block 2432
[2023-05-09 13:04:56,493] chirp.drivers.puxing_px888k - DEBUG: Reading block 2496
[2023-05-09 13:04:56,587] chirp.drivers.puxing_px888k - DEBUG: Reading block 2560
[2023-05-09 13:04:56,680] chirp.drivers.puxing_px888k - DEBUG: Reading block 2624
[2023-05-09 13:04:56,774] chirp.drivers.puxing_px888k - DEBUG: Reading block 2688
[2023-05-09 13:04:56,867] chirp.drivers.puxing_px888k - DEBUG: Reading block 2752
[2023-05-09 13:04:56,960] chirp.drivers.puxing_px888k - DEBUG: Reading block 2816
[2023-05-09 13:04:57,054] chirp.drivers.puxing_px888k - DEBUG: Reading block 2880
[2023-05-09 13:04:57,147] chirp.drivers.puxing_px888k - DEBUG: Reading block 2944
[2023-05-09 13:04:57,241] chirp.drivers.puxing_px888k - DEBUG: Reading block 3008
[2023-05-09 13:04:57,334] chirp.drivers.puxing_px888k - DEBUG: Reading block 3072
[2023-05-09 13:04:57,428] chirp.drivers.puxing_px888k - DEBUG: Reading block 3136
[2023-05-09 13:04:57,521] chirp.drivers.puxing_px888k - DEBUG: Reading block 3200
[2023-05-09 13:04:57,615] chirp.drivers.puxing_px888k - DEBUG: Reading block 3264
[2023-05-09 13:04:57,708] chirp.drivers.puxing_px888k - DEBUG: Reading block 3328
[2023-05-09 13:04:57,802] chirp.drivers.puxing_px888k - DEBUG: Reading block 3392
[2023-05-09 13:04:57,895] chirp.drivers.puxing_px888k - DEBUG: Reading block 3456
[2023-05-09 13:04:57,989] chirp.drivers.puxing_px888k - DEBUG: Reading block 3520
[2023-05-09 13:04:58,082] chirp.drivers.puxing_px888k - DEBUG: Reading block 3584
[2023-05-09 13:04:58,176] chirp.drivers.puxing_px888k - DEBUG: Reading block 3648
[2023-05-09 13:04:58,269] chirp.drivers.puxing_px888k - DEBUG: Reading block 3712
[2023-05-09 13:04:58,363] chirp.drivers.puxing_px888k - DEBUG: Reading block 3776
[2023-05-09 13:04:58,456] chirp.drivers.puxing_px888k - DEBUG: Reading block 3840
[2023-05-09 13:04:58,550] chirp.drivers.puxing_px888k - DEBUG: Reading block 3904
[2023-05-09 13:04:58,643] chirp.drivers.puxing_px888k - DEBUG: Reading block 3968
[2023-05-09 13:04:58,736] chirp.drivers.puxing_px888k - DEBUG: Reading block 4032

Actions #15

Updated by Dan Smith about 1 year ago

Okay, I don't see that you loaded the module in your logs. Did you download it into a working tree and run it from source? If you use LoadingTestModules it helps us make sure you're testing what we ask each time. But, if that's what you did, I'll go ahead and merge this.

Actions #16

Updated by Dan Smith about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF