nadsat
Hi there, I’m trying to use VintageNetMobile with a Quectel EC25 modem in a rpi4, but I haven’t been able to get it work, when I run VintageNet.get_by_prefix() I got (the part related with ppp0):
{["interface", "ppp0", "config"],
%{
type: VintageNetMobile,
vintage_net_mobile: %{
modem: VintageNetMobile.Modem.QuectelEC25,
service_providers: [%{apn: "imovil.virginmobile.cl"}]
}
}},
{["interface", "ppp0", "connection"], :disconnected},
{["interface", "ppp0", "state"], :retrying},
{["interface", "ppp0", "type"], VintageNetMobile}
It is posible to send AT commands (I don’t know why that works, because AFAIK the /dev/ttyUSB3 is used by VintageNetMobile.Modem.QuectelEC25)
iex(19)> Elixircom.run("/dev/ttyUSB3", speed: 115200)
at
OK
ATI
Quectel
EC25
Revision: EC25AUFAR02A04M4G
OK
the last thing that I get with dmesg
[ 6.798652] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6.804770] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 11.064161] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 13.058396] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 13.199423] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0125, bcdDevice= 3.18
[ 13.208005] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 13.216335] usb 1-1.3: Product: Android
[ 13.221219] usb 1-1.3: Manufacturer: Android
[ 13.305067] usbcore: registered new interface driver option
[ 13.310936] usbserial: USB Serial support registered for GSM modem (1-port)
[ 13.318297] option 1-1.3:1.0: GSM modem (1-port) converter detected
[ 13.324980] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 13.332511] option 1-1.3:1.1: GSM modem (1-port) converter detected
[ 13.339184] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 13.346472] option 1-1.3:1.2: GSM modem (1-port) converter detected
[ 13.353126] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 13.360397] option 1-1.3:1.3: GSM modem (1-port) converter detected
[ 13.367007] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
It’s important to note that I connect the modem with the rpi4 through USB, using an adapter. Any suggestion on how to debug the problem?. I tried connecting the modem in a Linux based computer and it worked (the ppp connection)
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Hello,
I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter).
The diffic...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 9- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
fhunleth
Could you check whether the
wwan0network interface is present?VintageNet.infoandifconfigcan do this.VintageNetMobilewants that thewwan0interface is present before it even attempts to set up the PPP connection on/dev/ttyUSB3. IfVintageNetMobilewere a little smarter it could do better, but I believe this is the problem.Since you have the modem’s serial ports working, I’m inferring that you’ve enabled the required kernel modules at vintage_net_mobile/lib/vintage_net_mobile/modem/quectel_EC25.ex at main · nerves-networking/vintage_net_mobile · GitHub. If you haven’t, then maybe that’s the issue (plus I’m surprised that the serial ports showed up)
As a final guess, could you run
dmesg? There might be a hint in the kernel logs as to whywwan0isn’t showing up or maybe something else is happening.nadsat
Thank you for your answer.
I had a couple of modules missing (
CONFIG_USB_SERIAL_WWANandCONFIG_USB_WDM).By the way, the same configuration works with the simcom 7600
fhunleth
That’s really good to know about the simcom modem. When you get a chance, could you post a PR or an issue (and I’ll make the change) to the
VintageNetMobileproject with the Linux kernel options and anything else relevant to someone else using a SIMCOM 7600 modem?Thanks again for reporting back!
nadsat
It worked straight away with the configuration of the EC25, there is an issue related with simcom modems, I commented there.
https://github.com/nerves-networking/vintage_net_mobile/issues/76
just let me know if there is anything else to test
FGMGIT
This is great news, thanks @nadsat and @fhunleth .
Could you please share how you’ve enabled the required kernel modules?
And a sample use of the EC25 modem?
nadsat
I added these modules to a base Nerves system (in my case was rpi4)
in the nerves_defconfig
and the busybox.fragment
finally the configuration in target.exs
That worked for both EC25 and sim7600
FGMGIT
Hi @nadsat and @fhunleth I’m back with tests SIM7080G using USB connection. Trying to setup Quetcel EC25 on rpi0 target.
I think I’m missing something in the target rpi0 setup. Since dmesg:
And Vintagenet Info:
In the other hand in raspbian without install additional linux drivers it is detected:
Not sure if the kernel setup and other requirements you have done are well done in my side.
FGMGIT
Any idea on how to debug USB on rpi0 target. Or a sample use options on QuectelEC25 to properly setup PPP on rpi0?
nadsat
I haven’t worked with the SIM7080, but according to what you showed using raspbian, you may need to include CONFIG_USB_NET_CDCETHER (check if the name is right). Also the set of AT commands might defer from SIM7600 or EC25.