Closed teganburns closed 3 years ago
Posted on the Hologram Community Forum
Can you use the python serial package and list what it enumerates: https://pyserial.readthedocs.io/en/latest/tools.html#module-serial.tools.list_ports. Thats what we use to get the available devices so if its not enumerated by that package then it wouldn't get picked up by the modem detection code we wrote https://pyserial.readthedocs.io/en/latest/tools.html#module-serial.tools.list_ports.
Here is what you requested.
mendel@google-coral:~$ python -m serial.tools.list_ports
no ports found
I believe it is a module issue. The device is picked up by dmesg when unplugging and plugging it back in for the record.
[ 1792.900063] usb 1-1: USB disconnect, device number 2
[ 2343.692316] usb 1-1: new high-speed USB device number 3 using xhci-hcd
hmm, im not sure we can properly handle it if that serial library doesn't detect it. I realize I linked the same thing twice in my previous comment instead of the code snippet I meant to. https://github.com/hologram-io/hologram-python/blob/develop/Hologram/Network/Modem/Modem.py#L199
Its possible we could rewrite this to use the system calls but afaik this is the first time we've encountered this. If you plug other serial devices into the usb ports does it enumerate them?
If you plug other serial devices into the usb ports does it enumerate them?
Yes, official Arduino products work fine. Knock-off Arduino's didn't work for a similar reason.
Below is a response from the Google-Coral Team.
Hi Tegan, It looks like the Nova module enumerates as a custom vendor device, not a communication class device: https://en.wikipedia.org/wiki/USB_communications_device_class
That makes it difficult to use any standard tools to debug the connection.
What kernel modules are required in Mendel?
Have you tried using with an Ubuntu 18.04/20.04 laptop? If you get it working there, you can see what modules were added to support that and we can find out if those are ready for Mendel.
Also, see if there is an alternate driver available, perhaps something with less performance but more compatibility.
Best Regards,
Coral Support Team
I can't get the Hologram Python CLI to work on a Raspberry Pi V2 (it's excruciatingly slow and I run into a BadMagicNumber Error).
Can you tell me what modules the Nova uses on a working device so I can see about getting the proper modules installed on the Coral Dev board?
The pi v2 should work but it probably means the raspbian version is outdated. Right now the CLI only works for python 3.7 and if you have an older version of raspbian it would likely be python 3.6 which would give you the bad magic number error. I will check what modules are required and get back to you.
Thank you, I got it working on the Pi v2 (very exciting! 😊). I was using Ubuntu not Raspbian.
I would still like to confirm the modules you believe are required for the Nova to operate.
Maybe I can add an unofficial aarm64 Debian repository to get these modules. 🤔
Sorry its been a bit, holidays hit and took up more time than expected. Will try to get around to it this week
I'm going to close this issue. The Google Coral team doesn't seem to provide a reasonable solution and I've since moved on to the RPI 4B anyways.
In case anyone else stumbles across this here is the response I've received from the Google Coral team.
TLDR; Build the kernel yourself and figure out the correct modules required on your own (and hope it works ). 👎
As with most embedded OSes, Mendel doesn't come with non essential kernel module by default in order to save resources. However, we do have the procedure to download the source code and build it yourself: https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md
You can follow that guide to get the source code. For your case, you wouldn't need to build the entire OS but rather just the kernel. Here are the steps:
Get the code from the getting started guide
Open this file: packages/linux-imx/debian/defconfig and add the kernel config that you's need. At this step, you'll need to find out the exact kernel config that is needed. We don't support adding kernel module for other vendors HW.
Copy the new kernel to the dev board:
$ scp out/product/packages/bsp/linux-image-4.14.98-imx_11–4_arm64.deb mendel@ip-addr
mdt into the dev board and install it: $ sudo dpkg -i linux-image-4.14.98-imx_11–4_arm64.deb Thanks, Coral Support Team
Thank you for your help regardless @DomAmato 👍
Describe the problem
Unable to activate sim/nova on a Google-Coral Dev board.
Expected behavior
Activating sim and registering with the network.
Actual behavior
Device is a Google-Coral Dev board running Mendel (custom Debian).
Traceback
List of modules
Device is found
Device details
PPP installed
Steps to reproduce the behavior
curl -L hologram.io/python-install | bash
curl -L hologram.io/python-update | bash
sudo hologram activate
System information
Linux google-coral 4.14.98-imx #1 SMP PREEMPT Fri Nov 8 23:28:21 UTC 2019 aarch64 GNU/Linux