Yes, that is what I have (after some trial and error and being lead astray by the documentation) resorted to doing.
I expect that the BP5 documentation will be made “not wrong” (and preferably “right”!). It would also be more elegant if it is possible to avoid using /dev/ttyAC*,
Most products have bugs when introduced. The test is how quickly workarounds and corrections appear. It is too early to judge BP5 in that way, but there is an encouraging sign in the form of changing the descriptor strings in the firmware
Nah, that was maybe true like 10 years ago. And then it was specific to one distribution, while others used for example the “plugdev” group.
Today you want to add TAG+="uaccess" at the end of your udev-rule. Then automatically all users logged in locally will get access. uaccess was introduced in 2012 if I’m not mistaken, so every common linux system should have support for it by now.
I think I found the issue: all the rules we posted back and forth were syntactically wrong, because they used typographical quotes instead of the regular ones. They really look alike so if you don’t look for this kind of thing you can easily miss it. I don’t know how they got into the posts, maybe it happened when someone copied them the first time or the forum software automatically tries to “beautify” the posts,…
I tried it with another device that presents as multiple serial ports, and even the ATTRS/ENV thing works there without issues - when you use the proper quotes. So please try this one:
yes, the port numbers of /dev/ttyACMn aren’t stable.
The number depends on the order in which devices are registered. So if you plug in for example an USB-UART converter first then it will get /dev/ttyACM0. When you plug in the buspirate afterwards it wil get /dev/ttyACM1. So you’d always have to look up the current number first. That is annoying and also can’t be used in scripts or config files.
Using a stable /dev/buspirate-text solves this - unless you have multiple bus pirates connected to the same pc.
The MODE="0666" used currently is a bit of a sledgehammer-solution by allowing access to everyone. I suggest to use the more targeted uaccess solution instead:
This are consistent and reproducible (If the firmware provides unique serial numbers it would work with more than one PB connected at once) and you don’t need to customize any udev rules at all. Your user should probably added to the dialout group or whatever your distro puts the /dev/ttyACM* under.
Also tio seems to be more competent than minicom or screen at handling ANSI colors and keys can be mapped, eg to fix backspace.
I have checked on Windows 11 and on macOS. A bit of a common theme. If you access the binary port first (of the two com ports / usb ports) you drop in to logic analyser mode from which there is no return. And it does not tell you you are in this mode. Looking at the code (my $0.02) the call to sump_logic_analyzer() in sump,c has no way back out of sump mode. And this is called from the entry into binary mode from binio.c
So basically - if you put anything on the binary UART port it would appear you are never seeing the terminal (or if you have seen it there is no way back out) as you are locked into SUMP mode. Happy to be wrong !
So if you want to see the terminal with the latest firmware - make sure to go on the terminal port. It’s not a windows or macOS or linux thing. It could be a bug in the firmware.
And there would appear to be no way to get to bit stuffing at present.
Now if I was more confident, I would help fix, so please ask if help wanted and add some directions. Looking at Github, 2 months back some major changes led to this.
(You can tell SUMP is active because CTRL-B and CTRL-D emit some status strings as noted elsewhere)
Hope this helps.
I went back and looked at the community version for the previous firmware. sump.c previously exited the infinite loop you’re looking when it received a SUMP_RESET command over the UART: