Aceasta este comanda mdbus2 care poate fi rulată în furnizorul de găzduire gratuit OnWorks folosind una dintre multiplele noastre stații de lucru online gratuite, cum ar fi Ubuntu Online, Fedora Online, emulator online Windows sau emulator online MAC OS
PROGRAM:
NUME
mdbus2 - Introspecție, interacțiune și monitorizare DBus interactiv
REZUMAT
mdbus2 [OPȚIUNI...] [ slujește-mă [ calea obiectului [ metodă [ parametri... ] ] ] ]
mdbus2 -Da
mdbus2 -sl
DESCRIERE
mdbus2 comanda este utilizată pentru a explora și interacționa cu serviciile DBus de pe dvs sistem luați autobuzul
și sesiune luați autobuzul. Autobuzul de mesaje la nivel de sistem există o singură dată și este instalat pe multe
sisteme ca serviciul „messagebus”. Autobuzul de mesaje de sesiune este per-user-login (pornit
de fiecare dată când un utilizator se conectează) și de obicei legat de sesiunea dvs. X11.
În cea mai simplă formă, mdbus2 arată serviciile disponibile pe magistrala selectată. Având în vedere un
serviciu nume, va afișa cele disponibile obiecte exportate de serviciu. Dat un serviciu
nume și an obiect cale, va arăta cele expuse Metode, semnalele, și proprietăţi de care
obiect.
Furnizarea unui metodă nume (Și parametrii), puteți apela metode pe obiect și puteți obține
reveni valoare(S).
În ascultare mod, puteți observa semnalele trimise pe magistrala selectată.
De asemenea, este inclus și un interactiv coajă cu completarea filelor și istoricul comenzilor.
OPŢIUNI
--show-anonim, -a
Arată și unic (anonim) servicii în autobuz.
--sistem, -s
Utilizați magistrala de sistem în loc de magistrala de sesiune (implicit).
-show-pids, -p
Afișați ID-urile de proces UNIX.
--asculta, -l
Porniți modul ascultător, în care puteți observa semnalele în autobuz.
--interactiv, -i
Porniți un shell interactiv.
--tipuri-adnotare, -t
Adnotați tipurile DBus.
UTILIZARE
Pentru a invoca o metodă pe un obiect implementat de un serviciu, trebuie să specificați
următoarele valori:
1 serviciu nume, de exemplu org.freesmartphone.ogsmd – Numele serviciului identifică
procesul care servește un număr de obiecte. Fiecare proces care se atașează la
autobuzul primește cel puțin un nume de serviciu non-unic (anonim), cum ar fi
: 1.0. Nume unice, cum ar fi org.freesmartphone.ogsmd, sunt de obicei date în
notație inversă a numelui de domeniu cu minuscule.
2 obiect cale, de exemplu /org/freesmartphone/GSM/Device – Calea obiectului
identifică un obiect concret deservit de proces. Căile obiectelor de obicei
arată ca căile sistemului de fișiere.
3 metodă, de exemplu org.freesmartphone.GSM.Call.Initiate – Numele metodei
identifică o operație care face parte din interfață (metode și semnale)
a unui obiect. Numele metodelor sunt folosite CamelCase cu notație punct.
4 parametrii, de exemplu +49123456 voce`. (La be descris mai departe).
EXEMPLE
Aflați ce nume de magistrală sunt înregistrate în prezent pe magistrala de sistem:
root@om-gta02:~# mdbus -s
: 1.0
: 1.1
: 1.2
: 1.42
: 1.47
: 1.60
: 1.61
org.bluez
org.freedesktop.Avahi
org.freedesktop.DBus
org.freesmartphone.frameworkd
org.freesmartphone.ogsmd
org.pyneo.muxer
Aflați ce obiecte sunt deservite de un anumit serviciu:
root@om-gta02:~# mdbus -s org.freesmartphone.frameworkd
/
/org
/org/freesmartphone
/org/freesmartphone/Framework
/org/freesmartphone/GSM
/org/freesmartphone/GSM/Device
/org/freesmartphone/GSM/Server
Aflați interfața unui anumit obiect:
root@om-gta02:~# mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
[METODA] org.freesmartphone.GSM.Call.Activate( i:index )
[METODA] org.freesmartphone.GSM.Call.ActivateConference( i:index )
[METODA] org.freesmartphone.GSM.Call.HoldActive()
[METODA] org.freesmartphone.GSM.Call.Initiate( s:number, s:type_ )
[METODA] org.freesmartphone.GSM.Call.Release( i:index )
[METODA] org.freesmartphone.GSM.Call.ReleaseAll()
[METODA] org.freesmartphone.GSM.Call.ReleaseHeld()
[SEMNAL] org.freesmartphone.GSM.Call.CallStatus( i:index, s:status, a{sv}:properties )
[METODA] org.freedesktop.DBus.Introspectable.Introspect()
[METODA] org.freesmartphone.GSM.Device.CancelCommand()
[METODA] org.freesmartphone.GSM.Device.GetAntennaPower()
[METODA] org.freesmartphone.GSM.Device.GetFeatures()
[METODA] org.freesmartphone.GSM.Device.GetInfo()
[METODA] org.freesmartphone.GSM.Device.PrepareForSuspend()
[METODA] org.freesmartphone.GSM.Device.RecoverFromSuspend()
[METODA] org.freesmartphone.GSM.Device.SetAntennaPower( b:power )
[METODA] org.freesmartphone.GSM.SIM.ChangeAuthCode( s:pin_vechi, s:pin_nou)
[METODA] org.freesmartphone.GSM.SIM.DeleteEntry( i:index )
[METODA] org.freesmartphone.GSM.SIM.DeleteMessage( i:index )
[METODA] org.freesmartphone.GSM.SIM.GetAuthStatus()
[METODA] org.freesmartphone.GSM.SIM.GetImsi()
[METODA] org.freesmartphone.GSM.SIM.GetMessagebookInfo()
[METODA] org.freesmartphone.GSM.SIM.GetPhonebookInfo()
[METODA] org.freesmartphone.GSM.SIM.GetServiceCenterNumber()
[METODA] org.freesmartphone.GSM.SIM.GetSimCountryCode()
[METODA] org.freesmartphone.GSM.SIM.GetSubscriberNumbers()
[METODA] org.freesmartphone.GSM.SIM.RetrieveEntry( i:index )
[METODA] org.freesmartphone.GSM.SIM.RetrieveMessage( i:index )
[METODA] org.freesmartphone.GSM.SIM.RetrieveMessagebook(s:category)
[METODA] org.freesmartphone.GSM.SIM.RetrievePhonebook()
[METODA] org.freesmartphone.GSM.SIM.SendAuthCode(s:code)
[METODA] org.freesmartphone.GSM.SIM.SetServiceCenterNumber( s:number )
[METODA] org.freesmartphone.GSM.SIM.StoreEntry( i:index, s:name, s:number )
[METODA] org.freesmartphone.GSM.SIM.StoreMessage( s:number, s:contents )
[METODA] org.freesmartphone.GSM.SIM.Unlock( s:puk, s:new_pin )
[SEMNAL] org.freesmartphone.GSM.SIM.AuthStatus( s:status )
[SEMNAL] org.freesmartphone.GSM.SIM.NewMessage( i:index )
[METODA] org.freesmartphone.GSM.Network.DisableCallForwarding( s:motiv, s:class_ )
[METODA] org.freesmartphone.GSM.Network.EnableCallForwarding( s:motiv, s:class_, s:number, i:timeout )
[METODA] org.freesmartphone.GSM.Network.GetCallForwarding(s:motiv)
[METODA] org.freesmartphone.GSM.Network.GetCallingIdentification()
[METODA] org.freesmartphone.GSM.Network.GetNetworkCountryCode()
[METODA] org.freesmartphone.GSM.Network.GetSignalStrength()
[METODA] org.freesmartphone.GSM.Network.GetStatus()
[METODA] org.freesmartphone.GSM.Network.ListProviders()
[METODA] org.freesmartphone.GSM.Network.Register()
[METODA] org.freesmartphone.GSM.Network.RegisterWithProvider( i:operator_code )
[METODA] org.freesmartphone.GSM.Network.SetCallingIdentification(s:status)
[METODA] org.freesmartphone.GSM.Network.Unregister()
[SEMNAL] org.freesmartphone.GSM.Network.SignalStrength( i:strength )
[SEMNAL] org.freesmartphone.GSM.Network.Status( a{sv}:status )
[METODA] org.freesmartphone.GSM.PDP.ActivateContext( s:apn, s:user, s:parola )
[METODA] org.freesmartphone.GSM.PDP.DeactivateContext()
[METODA] org.freesmartphone.GSM.PDP.GetCurrentGprsClass()
[METODA] org.freesmartphone.GSM.PDP.ListAvailableGprsClasses()
[METODA] org.freesmartphone.GSM.PDP.SetCurrentGprsClass( s:class_ )
[SEMNAL] org.freesmartphone.GSM.PDP.ContextStatus( i:index, s:status, a{sv}:properties )
[METODA] org.freesmartphone.GSM.Test.Command(s:comandă)
[METODA] org.freesmartphone.GSM.Test.Echo( s:echo )
Apelați o metodă pe o interfață:
root@om-gta02 ~ $ mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Device.GetInfo
{ 'imei': '354651011234567',
„producător”: „FIC/OpenMoko”,
„model”: „„Modem GSM încorporat Neo1973 GTA02””,
'revision': '"HW: GTA02BV5, GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko8"'}
Folosiți-l în modul de ascultare:
root@om-gta02:/local/pkg/fso/framework/framework# mdbus -s -l
Ascultarea semnalelor pe SystemBus de la serviciul „toate”, obiectul „toate”...
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u':1.6'), dbus.String(u''))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.6'), dbus.String(u':1.6'), dbus.String(u''))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.28'), dbus.String(u''), dbus.String(u':1.28'))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.frameworkd'), dbus.String(u''), dbus.String(u':1.28'))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.ogsmd'), dbus.String(u''), dbus.String(u':1.28'))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.29'), dbus.String(u''), dbus.String(u':1.29'))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u''), dbus.String(u':1.29'))
[SEMNAL] org.freedesktop.DBus.NameOwnerChanged din org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.30'), dbus.String(u''), dbus.String(u':1.30'))
[SEMNAL] org.freesmartphone.GSM.SIM.ReadyStatus de la :1.28 /org/freesmartphone/GSM/Device
(dbus.Boolean(False),)
[SEMNAL] org.freesmartphone.GSM.SIM.AuthStatus de la :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'SIM PIN'),)
[SEMNAL] org.freesmartphone.GSM.SIM.AuthStatus de la :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'READY'),)
[SEMNAL] org.freesmartphone.GSM.SIM.ReadyStatus de la :1.28 /org/freesmartphone/GSM/Device
(dbus.Boolean(Adevărat),)
Utilizați mdbus2 online folosind serviciile onworks.net