Re: Debian jessie systemd si stick vodafone

Valentin Cozma <[email protected]>
Newsgroups gmane.org.user-groups.rlug.general
Message-ID <[email protected]>
nu mai tin minte cum e cu RPi dpdv al curentului, stiu ca modemurile 3g
cateodata sug mai mult decat poate portul sa dea .
cel putin pe placile cu care lucrez eu era recomandat nu stiu ce
capacitor mai mare etc .
parerea mea , ca sa nu ai probleme daca se reseteaza modemul, sa
pornesti conectarea din regula de udev si nu de la startup .
altfel risti sa porneasca bine mersi si cand isi da restart portul usb
din motive de tensiune , sa nu mai ai cum sa intri pe jucarie .
On Mon, 2016-12-19 at 14:31 +0200, Paul Lacatus (Personal) wrote:
> am facut fisierul de serviciu asa :
> 
> root@raspberrypi:~# cat /lib/systemd/system/vodafone.service
> [Unit]
> Description=start vodafone dongle
> Before=multi-user.target
> 
> [Service]
> Type=idle
> ExecStart=/usr/sbin/pppd /dev/ttyUSB0 call vodafone
> Restart = always
> RestartSec=20
> 
> [Install]
> WantedBy=multi-user.target
> 
> Acum porneste la boot . Nu sunt sigur daca e ok . Nu am suficienta 
> experienta su systemd
> 
> 
> On 12/19/2016 2:08 PM, Mihai Badici wrote:
> > 
> > On Monday 19 December 2016 13:55:35 Paul Lacatus wrote:
> > > 
> > > root@raspberrypi:~# systemctl status vodafone
> > > â vodafone.service - start vodafone dongle
> > >      Loaded: loaded (/lib/systemd/system/vodafone.service;
> > > enabled)
> > >      Active: failed (Result: exit-code) since Mon 2016-12-19
> > > 13:50:54
> > > EET; 1min 53s ago
> > >     Process: 804 ExecStart=/usr/sbin/pppd /dev/ttyUSB0 call
> > > vodafone
> > > (code=exited, status=2)
> > >    Main PID: 804 (code=exited, status=2)
> > Ca sa fiu mai precis, udev ruleaza atunci cand gaseste un dongle
> > din lista lui,
> > scriptul
> > /lib/udev/usb_modeswitch
> > El iti face comutarea storage->modem; comutarea trebuie sa se faca
> > si dacă nu
> > te conectezi.
> > in /lib/udev/rules.d trebuie sa ai o definitie pt modeswitch, la
> > mine e 40-
> > usb_modeswitch.rules.  Vezi daca device-ul tau e in lista de acolo
> > si ce
> > ruleaza si ajusteaza dupa nevoi. Daca vrei poti sa pornesti si
> > conectarea de
> > aici :)
> > _______________________________________________
> > RLUG mailing list
> > [email protected]
> > http://lists.lug.ro/mailman/listinfo/rlug
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
-- 

 

	   Valentin Cozma	 CEO & Founder	 m:	 +40730096543	 a:	 Bd Burebista Nr 1 Bl D15 Ap 25 Bucuresti	 w:	 www.deversoft.ro  e: [email protected] 	       
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.