Help with an IoT PiZero/Envirophat kit, CDC, finding files


#1

Hi. Complete beginner, assume no knowledge!
I have an Internet of things kit from Cisco, with a Pi Zero, via STEM.org.
I want to take it to classrooms.
Two problems;
1)
My laptop runs WIndows 7, and I haven’t been able to get CDC/USB link working.
I’ve downloaded a new Win7 compatible CDC driver but get no connection.

On a W10 desktop (no use for intended application) I get to a PuTTY window which says:

---------- Restarting main.py ----------
Logging light values to /home/pirate/output.txt
Logging complete!

Which I don’t know what to do with. I don’t know where that file is, it’s not on the PC. The keyboard doesn’t echo on the PuTTY screen - should it?
Instructions and pic:

https://drive.google.com/open?id=1mUQACRcR-EsukVeix4XY_Onk_qiF5OI7

Thanks


#3

After some testing, I’m pretty sure the software you’ve currently got loaded on your Pi (actually an experimental OS dubbed PiratePython aimed at providing an easy environment to deploy Python code onto the Pi… if you’ll believe that!) is fundamentally incompatible with Windows 7, and no amount of driver wrangling will change that.

As for Windows 10, what you’re seeing on that serial device is the read-only debug output of the currently running Python script. There’s no repl or shell or anything you can interact with on the other end of that serial connection. It’s just a dump of the error/text output from the running Python script, right onto the serial device.

The file “/home/pirate/output.txt” does exist, however. It lives on the volatile ramdisk storage (reset upon reboot), but you need to SSH into the Pi (either over WiFi or USB) to get at it.

You may be able to SSH in using something like PuTTY and the host “pirate@piratepython.local” or "pirate@10.0.99.1" - the password for the pirate user is p1r4t3.

You can also use the “other” serial device, which connects to a regular serial terminal. You may have to hit enter a couple of times after connecting to get the welcome screen up, and then log in with “pirate” and “p1r4t3”.

If you update the “wpa_supplicant.conf” file on the SD card of your test Pi with local WiFi details you’ll be able to get connected via WiFi.

Update: and, once connected, see the IoT logging interface at http://piratepython.local:5000 (or substituting piratepython.local with the Pi’s IP address)


#4

PuTTY seems to try to connect with pirate@piratepython.local SSH (coo, I’ve never used that before) on port 22, but I don’t have a keyboard to enter the password…

The “other” µUSB gets no response at the PC. http://piratepython.local:5000 gets “unable to connect”, natch.


#5

Is this with a WiFi network configured by editing wpa_supplicant.conf on the SD card?

You may need to use something like Fing to find the Pi on your network, or install “Bonjour Print Services” to get “.local” domains working: https://support.apple.com/downloads/bonjour_for_windows

The latter is preferable, since you could give each card its own hostname and access them with “customhostname1.local” “customhostname2.local” etc.

(P.S. are you running the supplied software, or the alternate version I sent? I realised my alternative does not have the bundled Python application so http://piratepython.local:5000 wont work)


#6

[quote=“gadgetoid, post:5, topic:7472, full:true”]
Is this with a WiFi network configured by editing wpa_supplicant.conf on the SD card?[/quote]
Yes. I’m using the house wlan, not a hifi wotspot on a laptop.

[quote=“gadgetoid”]
You may need to use something like Fing to find the Pi on your network, or install “Bonjour Print Services” to get “.local” domains working: https://support.apple.com/downloads/bonjour_for_windows[/quote] I think it found the Pi OK. I can’t quote exactly what came up right now but there was a vast improvement when I got the name right, without typos… It asked for a password. I could highlight bits of the window with the mouse, but not enter text.
I suppose it could have been a totally invisible password entry?? But there were no symbols at all.

[quote=“gadgetoid”]
The latter is preferable, since you could give each card its own hostname and access them with “customhostname1.local” “customhostname2.local” etc.[/quote]

Ah, ok, something else to look up.
Just one working all by itself would be a good step for now.
It’s the inability to enter a password which seems to be the hurdle at the mo.

[quote=“gadgetoid”](P.S. are you running the supplied software, or the alternate version I sent? I realised my alternative does not have the bundled Python application so http://piratepython.local:5000 wont work)
[/quote] I thought it better to use W10 to allow proper CDC so am using a desktop. Changing one thing at a time…

Could I use the W7 laptop as a dumb terminal, plugged in to the Pi somewhow? Just for a display and keyboard? I guess there must be apps for that.


#7

I’m curious about the inability to enter a password, does no prompt come up when using PuTTY? It’s been a while since I’ve used it for SSH. Note that the password will be invisible when you type it- not even asterisks will show up, you just have to take it on blind faith that you’re typing the right thing and hit enter when done.


#8

Ah, could be it’s just uber stealth. I’ll revisit.