#macOS serial problems
1 messages · Page 1 of 1 (latest)
i'm here
what version of Mu? could you give me a screenshot?
after getting yelled at now I know how to get here
did you already install stuff with brew?
Shut down Mu. In a Terminal window, do screen /dev/cu.usbmodem148301
sorry could not find PTY
goes back to tterminal window
sound like CPython is not there even though the board thinks it is
The CIRCUITPY drive is showing?
leave it in CIRCUITPY.
it is
I think macos is bolloxed up. Easiest thing is to unplug the board and reboot macos. Can you come back after that?
Then try screen again
I think something else is grabbing the tty
are you using a USB hub or anything like that?
sure, just an aside; I get the ESP32 Pico running CPython last night......
or try a different USB port if you have one (my macbook air only has one)
btw, we don't use "CPython" for CIrcuitPython, because "CPython" is the name for regular Python (Python implemented in C), so it would be confusing if we called it circuiptyhon
try to get it connecting closer to the actual port on the machine
my bad. just saw someone on the forums using it
it's an easy thing to do, but the name is already taken 😦
hmmmm, could always try using my Air
I am just using a USB-C to USB-A adapter and a regular cable
I have to gram the extender hub because my Air only has USB-C
I have had trouble with poor quality USB-C to USB-A hubs. I got one from Amazon that was terrible.
I use 2 SSDs with all my virtual instruments so I need the 2 USB-C ports but my little keyboard is regular USB3
hooked up and can see the board all by itself
screen did the same thing on th Air
I'm looking for a flash eraser for the nRF
I'm here. Plugged the Pico into the iMac. Gonna see if I can get some things working on tat board
Try this UF2. Load it into the boot drive. Wait about 15 seconds. It will start flashing the neopixel green at some point. Then double-click reset to get the BOOT drive back, and install the adafruit-circuitpython UF2. https://cdn-learn.adafruit.com/assets/assets/000/088/454/original/CLUE_Flash_Erase.UF2?1581873830
hang on gonna get discord running on the Air, if I remember the silly password
so unmount circuitpy and mount the boot, THEN copy the file
you are not unmounting really, you are starting the bootloader
always copy UF2's into the "fake" ...BOOT drive
there are UF2-copying problems on early versions of Ventura. What version is running on the Air?
Try it on the iMac instead.
Sonoma 14.3
it's fixed in 14.4
scuse, 14.2.1
Apple is constantly breaking small FAT filesystem support.
on the iMac, didn't get a Finder error but the Neo is flashing red
don't worry, just try loading the circuitpython UF2
still flashing red, drive is not back
double-click to get the BOOT drive. unplug and plug back in if needed
dbl click, mounted boot. now copy the circuitpython uf2?
right
CIRCUITPY came back but still only has boot_out.txt on it
print("Hello world")?
is there one there already?
no I'm just so used to seeing it
unplug the board and plug it back in. Is it still there?
ok, now edit it to be:
import storage
storage.erase_filesystem()
if you're lucky, it will run and then erase CIRCUITPY (and erase that). You should end up with a fresh CIRCUITPY with a code.py with hello-world
boy, aren't you just special! what's scary is I thought something like that.
yup. now back to the original problem. Why can't I mount it with the browser
no everything is ther! sorry, my twisted humor... where is the .toml format? I fogot where I put it?
you don't need settings.toml for nrf, since it doesn't do wifif
right
so how do i connect with serial?
try again now, it may work
nope tried with screen got the same no PYT
that is very odd. I wonder if something on both your macs is interfering. Do you have a Windows or Linux machine (e.g. RPi) to try?
this is not a problem we normally see
I'd rather grind glass in my eyes
sometimes you have to eat the sauerkraut
let me restart the imac
OH HECK NO! It makes me gag with my wife cooks it for hot dogs
restarting, possible I got a flaky board???
I think the pty issue is a softwre problem
that's why I want you to try some completely different OS
to rule it in or out
Well raise my rent, you are the kid (Blazing Saddles)
screen came up just like it should
ctrl-D brings me into REPL
Once again HUGE thanks!!! When you see my name again I think you're gonna run for the hills
NO M2 Air
64G RAM 512G SSD
at least to latest Ventura. Sonoma does slow writes to CIRCUITPY drives, but works. Sequoia we haven't tested yet for that, but it does work with CIRCUITPY.
I have an Intel air, so that's stuck on Ventura. and an M1 Mac Mini, which I keep up to date for testing purposes. Both of these are just for testing and support.
Ventura came BEFORE Sonoma. iMac can't go any further, just the Air
Ventura - need at least 14.4. Sonoma - use latest. Sequoia -it's too early to say
go to sleep or have abeer,I'll find out where you live and send you a case
unnecessary - I get paid for this
again, you make me jealous. I'm locked out of engineering at my age
Good Night sir. I'll start trying to get Bluetooth running under CircuitPython.
night!
tried to do the Bluefruit Dashboard with Web Bluetooth in Chrome. After installing the firmware as per the webpage, the board no longer mounts as CIRCUITPY.
screen /dev/cu.usbmodem148301
gives me a blank screen now, now more REPL.
Why do I listen to what is on the Adafruit website pages when I always wind up here trying to figure out how to fix the damage that following directions gets me into?
The Bluefruit dashboard firmware is written in Arduino, not CircuitPython, so it doesn't present CIRCUITPY
But the website says you can program using CircuitPython
And I also had the issue of not being able to copy anything onto the CIRCUITPY lib folder
There are two versions: the Arduino version on this page: https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome/installing-firmware and the CircuitPython version, on this page: https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome/circuitpython
So how do I get the drive mounting again as CIRCUITPY?
install the adafruit-circuitpython UF2. That will replace the dashboard firmware with CircuitPython. WHen you installed the dashboard firmware, you replaced CircuitPython
yes, so you need to put CPy back on the board. CircuitPython is "just another program", like the arduino dashboard is "just another program"
OK I'm there but how do I use Bluefruit Dashboard. Do I just continue along? Another thing. By reinstalling CircuitPython uf2 file I can now copy libraries from the bundle. Why couldn't I do it yesterday? I remeber reading somewhere about locking the code down on the board
I don't know why you couldn't copy. If CIRCUITPY is corrupted, it can mount as read-only. Or macOS might have had an issue and decided to mount it read-only
well at least I am starting to get libs copied over per the webpage
once you set up the CPy version of the dashboard board software, you should be able to connect to it from the browser as you did with the Arduino verison.
Make sure you give plenty of time for things to copy. As I mentioned, Sonoma has an issue of copying to CIRCUITPY really slowly.
I'm on the iMac. I try to use the Air for just music stuff
is the iMac using ventura? Upgrade it to at least 14.4
can't. its stuck at Ventura. System update won't let it go higher than ventura. And I can't get the Air past Sonoma 14.2.1. Have to wait for Apple to send out OS updates for the Air. Told that the iMac (i7) was maxed
sorry, I'm getting version numbers mixed up. Make sure the Ventura machine is upgraded to the latest version
13.6.something
i think
you said it was 13.6.4?
yup
actually 13.1 and later is ok
as I linked to yesterday
also macOS writes a lot of junk files which can take up space: https://learn.adafruit.com/welcome-to-circuitpython/troubleshooting#copy-files-on-macos-without-creating-hidden-files-2978473
Apple has gone seriously downhill over the years. I still have a 512Ke that still works and was a developer since 1985 so I have ALL thhe old MacOSes on CD
we would have used something called MTP (Media Transfer Protocol) for the filesystem, excep that it competed with iPods, so Apple didn't/doesn't support it (it's on windows and linux)
it is a lot safer than MSC, which is block-level access
yeah, Apple started going VERY proprietory after they went Intel. I used to be be a System Engineer. Went to the AT&T/Bell Labs/Bellcore people and showed them how to integrate Macs into their labs.
At that point I got involved with Digital Video and then moved over to SQL ETL and Data architecture, warehousing
At the point of getting Chrome configured. I'll holler if I get stuck again
board isn't showing up in web bluetooth dashboard. I disconnected and plugged it back in. code.py has the correct code:
SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
SPDX-License-Identifier: MIT
Adafruit Service demo for Adafruit Feather Bluefruit Sense board.
Accessible via Adafruit Web Bluetooth Dashboard.
(As of this writing, not yet accessible via Bluefruit Playground app.)
I assume thats the right code.py
restarting the iMac. See if that does anything
NOPE! Only way it shows anything at all is if I turn off
Could you click "Feedback? Corrections?" in the left sidebar and write up a short item?
sure, but I guess I'm back to being dead in the water......
well, there are other examples of using BLE UART, which I linked to somewhere above, or in the main thread
I remember them from the distant past so thanks for giving me the link again. IIRC the examples were way more than I needed but I'll have to revisit them. I only have today though until maybe next week. I'm part of the election process in Arizona which is going to be a nightmare over the next week or so. Working 14 hour days the 4th and 5th as a Judge in the local polling location and then doing adjudication at the main polling site the rest of the week so I'm likely to be mentally fried before I can get back. Of course that means I probably won't be annoying you (YAY) for a week or so.
good luck with all that!
really! I've got the phone numbers of 30 lawyers on my iPhone that I'm supposed to call if I see something strange! This whole state is STRANGE!!!
quick question, in the one example it say to put one piece of codse on the board and the other code on the iMac. I'm running into an indentation error. I assume I'm supposed to enter the code into Python3 on the iMac
So on the Sense, you used this code: https://learn.adafruit.com/bluefruit-dashboard-web-bluetooth-chrome/circuitpython#feather-bluefruit-sense-code-dot-py-3063171
I don't see any code ot use on the host, just to use the web app
Or are you talking about one of my links?
You have to read the whole guide from the beginning.
your links
and install bleak, and other libraries
no easy way to install the libraries on the iMac I guess
they are available via pip
but did I already discuss Python Mac versions with you or was that someone else?
probably me but I'm still lost with command line. trying to figure out how to get circup to run. I get command not found soI'm assuming I have to edit the PATH file and I have very little idea how to do that or where it is
what does python3 --version say on the computer in question?
that downloaded a lot of files soI guess the iMac code should execute now
python 3.13.0
and which python3
/usr/local/bin/python3
and pip3 list
jbanko@JoesiMac-5 python % pip3 list
Package Version
Adafruit-Blinka 8.50.0
adafruit-blinka-bleio 4.1.2
adafruit-circuitpython-ble 10.0.9
adafruit-circuitpython-busdevice 5.2.10
adafruit-circuitpython-connectionmanager 3.1.2
adafruit-circuitpython-requests 4.1.8
adafruit-circuitpython-typing 1.11.1
Adafruit-PlatformDetect 3.75.0
Adafruit-PureIO 1.1.11
appdirs 1.4.4
binho-host-adapter 0.1.6
bleak 0.22.3
certifi 2024.8.30
charset-normalizer 3.4.0
circup 2.0.4
click 8.1.7
findimports 2.5.1
idna 3.10
pip 24.3.1
pyftdi 0.55.4
pyobjc-core 10.3.1
pyobjc-framework-Cocoa 10.3.1
pyobjc-framework-CoreBluetooth 10.3.1
pyobjc-framework-libdispatch 10.3.1
pyserial 3.5
pyusb 1.2.1
requests 2.32.3
semver 3.0.2
toml 0.10.2
typing_extensions 4.0.1
update-checker 0.18.0
urllib3 2.2.3
yay! so now I get :
Trying to connect...
Connected
Eval:
ok, type 1+2
3
eval:
i think that is right 🙂
let me ask you another question:
do you feel like you're dragging a 3 year old kicking and screaming by the hand when you deal with me?
well, I think it would be good to take deeper breaths and maybe step away from time to time
i have no doubt you can figure it out.
thats what my therapist says about my election involvement. You're both right but I have a tenacious attitude that gets me into to much troublr.
last question and then I have to go look at some election requirement stuff and WILL be walking away from this stuff for a while, maybe a day.
Got a link to, or a good book on comng up to speed on unix easily?
on macos, or on linux?
well, it's derived from that. But you want to learn cp, PATH, etc. ,etc.
here is an old suggestion for a couple of books:
https://tidbits.com/2021/03/24/a-pair-of-books-for-learning-the-mac-command-line/
my 95yo father and mac user likes tidbits for information
95? i'm 75
for macos, learning command line is often couched as "learning Terminal",
I just did a websearch for learn macos command line. THere are a number of elementary guides, but for a more comprehensive overview, I think you need a book.
got a VERY OLD very thin book on command line for macos when they first went to unix core. don't know how relevant or if i can even find it.
Anyway, thanks for all the guidance. I'm going to drop off and prep for the polling stuff the next 2 days so you should get a breather from me