Uyifaka njani iServer yeMiyalezo kunye neGammu-Icandelo 1

IGammu yeLinux

IGammu yeLinux

Namhlanje, ukuthumela imiyalezo ngeSMS yinxalenye ebalulekileyo yamava eselfowuni kunye ne-imeyile nge-Intanethi. Kwinqanaba loshishino, ukuthumela imiyalezo ngefowuni kwiimeko ezininzi kuyaqhubeka ukuba yeyona ndlela isebenzayo kunye nonxibelelwano jikelele olusetyenziswayo ngoku. Kwaye xa kuthelekiswa namanye amajelo onxibelelwano afana neposi, Imiyalezo ephathekayo ye-SMS iqulethe ispam esingaphantsi kakhulu kwaye kunokwenzeka ukuba ifundwe ngabo bonke abafumanayo kwangoko xa kuziswa.

Ngenxa yoku kubalulekile ukuba sihlale sikhona kwisiseko sezixhobo zethu phantsi kweLinux iServer yokuthumela imiyalezo ngeGammu, Ilungele ukwenziwa kusebenze ukuba iyafuneka. KUNYE La manyathelo aya kunceda uninzi njengesikhokelo okanye imodeli ukufezekisa ukufakwa kunye nokucwangciswa efanayo ngaphakathi kweFama yabakhonzi.

IGammu kwiSynaptic

Intshayelelo

gam ucaphula eyakhe Iwebhusayithi esemthethweni ngeSpanish

»Igama leprojekthi, kunye negama le Umgca wokuyalela onokuwusebenzisa ukulawula ifowuni yakho. Kubhalwe kwi-C kwaye kwakhiwa kuyo libGammu«.

Ngamazwi aqhelekileyo kunokuthiwa IGammu sisiXokelelwano soLawulo sezixhobo zeMfono kunye neMigca yeFowuniOko kukuthi, yiprojekthi ebonelela ngolungelelwaniso lokufikelela kwiifowuni eziphathwayo kunye nemisebenzi yazo. Iquka uluhlu olubanzi lweefowuni zeefowuni, egxile kwiifowuni ze-AT ezifanelekileyo kunye neefowuni zeNokia.

IGammu ngumgca wokuyalela (wokuphela) kwithala leencwadi kunye nokusetyenziswa, nangona iza nografu obizwa ngokuba yiWammu ukuququzelela ukusetyenziswa kwayo ngabasebenzisi bokugqibela. Inelayisensi yenguqulo yesi-2 ye-GNU GPL.

Le projekthi yaqalwa nguMarcin Wiacek kunye nabanye, kwaye ngoku ikhokelwa nguMichal Čihař ngoncedo lwabanye abaninzi abasebenzisanayo.

IGammu ibonelela ngokufikelela kuluhlu olubanzi lweempawu. Nangona kunjalo, inqanaba lenkxaso liyahluka ukusuka kwifowuni ukuya kwifowuni. Unokujonga indawo yedatha yeGammu ukuze ufunde ngamava omsebenzisi ngeefowuni ezahlukeneyo. Ezi zinto zilandelayo zixhaswa ngokubanzi:

  • Uluhlu lweefowuni, ukuqala kunye nokuphatha
  • Ukufumana kwakhona, ukugcina kunye nokuthumela iSMS
  • Ukubuyiselwa kweMMS
  • Uluhlu, ukungenisa kunye nokuthumela abafowunelwa (vCard)
  • Uluhlu, ukungenisa kunye nokuthumela ngaphandle ikhalenda kunye nemisebenzi (vCalendar okanye iCalendar).
  • Ukufunyanwa kwakhona kolwazi lwefowuni kunye nenethiwekhi
  • Ukufikelela kwinkqubo yefayile yefowuni.

Ukufakwa kweGammu

Inyathelo 1-Ufakelo lweGammu

Ukufakwa kwayo, iiphakheji ziya kuxhomekeka kwi-Distro kunye nohlobo lwayo, kodwa kwiimeko ze-DEBIAN 8 kunye ne-DEBIAN 9, baya kuchazwa ngezantsi:

Faka ngokufanelekileyo i-gammu gammu-doc gammu-smsd libgammu7 libgsmsd7

# UDEBHANE 8

Faka ngokufanelekileyo i-gammu gammu-doc gammu-smsd libgammu8 libgsmsd8

# UDEBHANE 9

ufakelo olufanelekileyo lwe-mobile-broadband-info-info ppp pppconfig modemmanagerger usb-modeswitch usb-modeswitch-data wvdial
# Iiphakheji eziluncedo neziqhelekileyo zokuLawula izixhobo ze-Intanethi / iSMS kwiiZibuko le-USB.

Inyathelo 2 -Ukuqinisekiswa kwe «DIALOUT» Izibuko

Izibuko lakho le-USB "Dialout" xa zidwelisiwe zinokuza nesigama "ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3" okanye ttyS0, ttyS1, ttyS2, ttyS3.

Sebenzisa uluhlu lwezibuko le-tty-ukucofa:

I-ls -l / dev / tty *
# Uluhlu lweTTY port

Inyathelo 3-Qhagamshela isixhobo seModem yeSMS kwaye uqinisekise ukufunyanwa kwayo

Sebenzisa umyalelo we-lspci:

lsusb
# Umyalelo wokudweliswa kwezixhobo ze-USB

Masicinge ukuba isixhobo sixhunyiwe kwaye sifunyenwe sivela kwiscreen ngolu hlobo lulandelayo kwisiphelo sendlela:

Isixhobo seBhasi 001 013: ID 19d2: 0031 ZTE WCDMA Technologies MSM MF110 / MF627 / MF636
# Umniki-mnxeba kwi-intanethi pendriver

Sebenzisa uluhlu lwezixhobo ze-serial:

ls / dev / serial / nge-id -ls
# Ukuyalela kuluhlu oludityanisiweyo kunye nokufunyanwa kwezixhobo ze-serial

Inyathelo 4-Ukucwangciswa kweGammu

Ifayile yeGammurc

Ukuqwalasela iGammu ungenza ngesandla ifayile ebizwa ".Gammurc" kwi "Ingcambu ekhaya" ngalo mxholo ulandelayo kwaye usebenzisa umyalelo wokuyalela:

nano / root/.gammurc ########## UMZEKELO WOKUXELWA
[umdlalo]
izibuko = / dev / ttyUSB1 -> ttyUSB amazibuko anikwe amandla (ttyUSB0 - ttyUSB1 - ttyUSB2)
Umzekelo =
uqhagamshelo = at19200 -> Uhlobo loqhagamshelo ekufuneka luqwalaselwe.
ixesha elingqameneyo = ewe
ifayile yelog =
logformat = akukho nto
Sebenzisa_ukuvala =
igammuloc =
###########################

Okanye ungenza lo myalelo ulandelayo ukuze usikhokele ekudalweni kwawo:

imam-config
# Umyalelo wokwenza ifayile yoqwalaselo

Ifayile yeGammu-smsdrc

Ukuqwalasela iGammu ngesandla ukuhlela ifayile enegama ".Gammu-smsdrc" kwifolda "njl." yeNkqubo yokuSebenza enomxholo olandelayo kwaye usebenzisa umyalelo womyalelo:

nano / njl / gammu-smsdrc ######### UMZEKELO WOKUXELWA # #

# Ifayile yoqwalaselo yeGammu SMS Daemon

# Ukucwangciswa kwethala leencwadi laseGammu, jonga i-gammurc (5)
[umdlalo]
# Nceda uyiqwalasele le!
izibuko = / dev / ttyUSB1
unxibelelwano = nge
# Ukulungisa ingxaki
#logformat = itekstall

Ukucwangciswa kweSMSD, bona i-gammu-smsdrc (5)
[smsd]
service = iifayile
ifayile yelog = syslog
# Yandisa ulwazi lokulungisa ingxaki
ukulungisa iphutha = 0

# Iindlela apho kugcinwa khona imiyalezo
inboxpath = / var / spool / gammu / inbox /
ibhokisi yendlela = / var / spool / gammu / ibhokisi yangaphandle /
sentsmspath = / var / spool / gammu / ithunyelwe /
iimpazamomspath = / var / spool / gammu / impazamo /
###########################

Inyathelo 5-Chonga iSMS / isixhobo seFowuni esikwi-Intanethi

Le nkqubo inokwenziwa ngeendlela ezi-2:

IFomu 1

Sebenzisa i ifayile ye-gammu-smsdrc ngoku Landelayo:

i-gammu -c / njl / i-gammu-smsdrc -chonga

########## UMZEKELO WOMZEKELO ###### #
Isixhobo: / dev / ttyUSB1
Umvelisi: ZTE CORPORATION
Umzekelo: ongaziwa (MF190)
I-Firmware: BD_MF190V1.0.0B06
IMEI: 355435048527666
IMSI SIM: 734061006753643 ########################

IFomu 2

Sebenzisa i gammu chonga umyalelo ngoku Landelayo:

gammu chonga

########## UMZEKELO WOMZEKELO ###### #
Isixhobo: / dev / ttyUSB1
Umvelisi: ZTE CORPORATION
Umzekelo: ongaziwa (MF190)
I-Firmware: BD_MF190V1.0.0B06
IMEI: 355435048527666
IMSI SIM: 734061006753643
###########################

Inyathelo 6 -Vavanya inkqubo yeGammu

Ungavavanya ufakelo kunye noqwalaselo lweGammu ngeendlela ezi-2:

IFomu 1

Ukwenza lo mthetho ulandelayo:

ingcaciso

########## UMZEKELO WOMZEKELO ###### #

I-0 iinxalenye zeSMS ngokulandelelana kwe-SMS

###########################

IFomu 2

Ukwenza lo mthetho ulandelayo:

I-gammu sendms imiyalezo 04161234567

Ngenisa umyalezo womyalezo kwaye ucinezele Ctrl + D:
Obu bubungqina bokuthunyelwa ngenqanawa. Ukuba ufuna ukurhoxisa, cinezela Ctrl + C ...
Ukuthumela i-SMS 1/1 ... kulindwe impendulo yenethiwekhi .. Kulungile, umyalezo wesalathiso = 7

Ngoku kuhlala kuqinisekisa ukuba umyalezo weSMS ufikelele kwindawo oya kuyo! Kwaye ukuba ukuza kuthi ga ngoku yonke into ihambe kakuhle, sele unayo iNkqubo efakiweyo kwaye ilungiselelwe ngokugqibeleleyo ukuthumela imiyalezo ye-SMS evela kwiConsole yeTheminali yakho.

Ukuhanjiswa kwezinto ngobuninzi kuphela Kufuneka senze i-Database kwaye senze iimvavanyo ezintsha zokuhambisa ngenqanawa. Siza kuyibona yonke le nxalenye kwinxalenye 2 yeli nqaku kwaye kwinxalenye 3 ukudityaniswa kwayo ne- Isicelo sewebhu seKalkun.

Ukuba ufuna kuphela isicelo esilula Nokuba ngumsebenzisi oqhelekileyo ungazama oku: Ifowuni eBlue

Ukuba ufuna ukuphonononga okungakumbi malunga gam bangaya incwadi esemthethweni okanye ufunde iindaba malunga nesicelo sakho icandelo leendaba okanye ubukele le vidiyo ilandelayo:


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-4, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   iiramses sitsho

    Molo, le seva yeSMS isetyenziselwa ukuthumela iSMS kwi-linux ukuya kulo naluphi na uhlobo lwefowuni ngalo naliphi na umsebenzisi?

  2.   UJose Manuel Parrado Ortega sitsho

    Ukuba uqaphela, kubhekisa ekuthumeleni kwimiyalelo kwizixhobo. Ngamanye amagama, imiyalezo inokuthunyelwa kuwo nawuphi na umsebenzisi, kodwa imodem okanye umnxeba usetyenziselwa oku.

  3.   Otoniel Rincon sitsho

    Molo, Isifundo esigqwesileyo ndilandele yonke into, kodwa kukho into endingakhange ndikwazi ukuyisombulula, andazi ukuba ungandinceda na, kwaye kukudibanisa iModem ukude, oko kukuthi, ukuba neeseva ezi-2 kwenye iseva yeGamm, kwenye iseva ye-USB MODEM, ngoku ndingayiqwalasela njani ipharamitha “izibuko = /dev/ttyUSB1”?
    Enkosi kakhulu kwangaphambili.
    ukubingelela

    1.    Ukufaka i-Linux Post sitsho

      Molweni Oteniyeli. Andazi ukuba makwenziwe njani oko. Wayekholelwa ukuba oku akunakwenzeka ... Ngethemba ukuba umntu onamava amaninzi kunye noGammu unokuphendula umbuzo wakho.