Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

modem gsm #38602

Closed
tcpipchip opened this issue Sep 16, 2021 · 5 comments
Closed

modem gsm #38602

tcpipchip opened this issue Sep 16, 2021 · 5 comments

Comments

@tcpipchip
Copy link

tcpipchip commented Sep 16, 2021

Hi

I am compiling the GSM code to NRF52840, but i have a question

My UART0 is working (console), but where do i define the GPIO used to UART_1 (GSM) ? (TX and RXD)

i am getting on console

[00:00:00.827,758] sample_gsm_ppp: Board 'nrf52840_mdk' APN 'java.claro.com.br' UART 'UART_1' device (nil) (modem_gsm)

it can´t open UART_1

I want a UART (not USB or RTT) to console and one UART to modem!

Thanks

@ycsin
Copy link
Member

ycsin commented Sep 20, 2021

Not sure if I understood you, for the latest main branch you will need something like this in an .overlay in your application directory or inside your someboard.dts file.

TX/RX gpios are usually already defined in the *.dtsi file which the someboard.dts includes, if you are using an in-tree board.
If you are using a custom board it will be something like this:

&usart1 {
	pinctrl-0 = <&usart1_tx_pc4 &usart1_rx_pc5>;
	current-speed = <115200>;
	status = "okay";
	cellular: quectel_ec21 {
		compatible = "zephyr,gsm-ppp";
		label = "QUECTEL EC21";
		status = "okay";
	};
};

@tcpipchip
Copy link
Author

I am sorry sorry! Tx and rx are working! I can get IP using generic modem on Lisa u200 and Sara g350. I have to know why I can’t get the gateway and mask. Boths return 0.0.0.0

@ycsin
Copy link
Member

ycsin commented Sep 23, 2021

I have to know why I can’t get the gateway and mask. Boths return 0.0.0.0

I have no idea what are these, @rerickson1 @jukkar any idea?

@rerickson1
Copy link
Member

I have to know why I can’t get the gateway and mask. Boths return 0.0.0.0

I have no idea what are these, @rerickson1 @jukkar any idea?

I would check the AT command documentation for the two modems you are using to see if they support the command to retrieve the gateway and mask.
Also, make sure your modem's firmware is up to date.

@tcpipchip
Copy link
Author

Good morning team!

I am back!
Let me explain about my tests, more details

I am using the zephyr GENERIC MODEM driver...i am testing on LISA U200, SARA G350 and SARA G450,.
There modem works with ppp , because i tested on Windows Dialup, Raspberry ppp, OpenWrt ppp and finally on Nuttx Rtos.

In the Nuttx Rtos, i see that really not back the gateway and dns, then really looks normal, because i can PING to anywhwere, look
image

The only difference on ZEPHYR generic modem is that there is no Authentication (PAP) during PPP, and i need that with my SIM operator to works.

Maybe if the ZEPHYR generic modem has a PAP option will solve the problem! Ahh, i remember that the generic modem can make DNS during ping...

I hope that help you this comments

@zephyrproject-rtos zephyrproject-rtos locked and limited conversation to collaborators Sep 23, 2021
@nashif nashif closed this as completed Sep 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants