[LEDE-DEV] 3G support for dwr-512

Giuseppe Lippolis giu.lippolis at gmail.com
Mon Oct 31 11:17:38 PDT 2016


Hallo,
I'm completing the support for the dlink dwr-512 adding the support for 3G.
In order to enable the 3G modem the following step need to be performed:

1) write '1' to the gpio18 (it should switch on the modem)
2) echo '2001 7d04 ff' > /sys/bus/usb-serial/drivers/option1/new_id
3) enable the full modem functionality with AT+CFUN=1
4) add the configuration in /etc/config/network

I would like to ask the better place where to add these step.

For the point 2. I read a potential solution is to add the cmd in
/etc/rc.local, but why don't add a line like:
static const struct usb_device_id option_ids[] = {
	{ USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWR512) },
	
In linux/drivers/usb/serial/option.c ?

For the point .3 I'm currently add the cmd in the /etc/gcom/setpin.gcom
(from comgt pkg). Is that correct?

Thanks.
Bye.





More information about the Lede-dev mailing list