-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring BG96 module over UART #219
Comments
Here's my
And the
|
Hi @gworkman, Unfortunately, I don't use The main problem is that USB isn't supported in two main ways:
If you can use USB, then that will be easier. You'll need to patch the Linux kernel. There's a comment at https://github.com/nerves-networking/vintage_net_mobile/blob/main/lib/vintage_net_mobile/modem/quectel_BG96.ex#L204-L218, but we've upgraded to Linux 6.1 and the warning doesn't show any more. Now if you want to try to work harder to run over UART, here's what I'd try doing:
Step 2 is not as hard as it sounds once you figure out the right recipe to send. See https://github.com/nerves-networking/vintage_net_mobile/blob/main/test/vintage_net_mobile/modem/quectel_BG96_test.exs#L36-L80. My first try would be to do the following:
I wrote that last line as I hope this works. Sorry if there are typos. It's been a while and I've forgotten lots, but this hopefully gets you closer. |
Hi @fhunleth, huge thank you for the response! This is incredibly helpful to point me in the right direction. I ran everything above as you described, with only making the changes to the APN and the baud rate (9600 -> 115200, as per the module). Unfortunately, it doesn't seem like it is receiving responses from the module. The AT command list is incredibly helpful - I tested them as I showed above with Logs:
Documentation of the changes I tried:
Example with
|
Another update, as I'm digging into this: I got the logic analyzer out and I can confirm that chatscript is sending data, but not receiving any in return. And, when I send AT command with I also tried the two hardware control options from the As sent with As sent with (zoomed in to see the AT command + response) (zoomed out, so you can see the IEX data) |
I'm trying to get a BG96 module running with a RPi 0 2W via a UART. This is their Mini PCIe module, mounted on the Sixfab Base Hat. After fiddling with the IEx console output settings, I am able to query the module using
Circuits.UART
and get a response:However, I'm unable to get
VintageNet
to configure the network interface. I'm not sure why, either, as there are pretty much no logs. The following is the steps I've tried:The only log generated from this is as shown:
18:17:48.108 [debug] VintageNet(ppp0): :configured -> configure (VintageNetMobile)
Following the info in
ExChat.ex
, I tried the debugging steps:This indicates to me that
VintageNet
isn't starting a process correctly? Or something, kinda stumped now.The following is output from
mix nerves.info
, andasdf list
Any suggestions?
The text was updated successfully, but these errors were encountered: