ນີ້ແມ່ນຄໍາສັ່ງ mdbus2 ທີ່ສາມາດດໍາເນີນການໄດ້ໃນ OnWorks ຜູ້ໃຫ້ບໍລິການໂຮດຕິ້ງຟຣີໂດຍໃຊ້ຫນຶ່ງໃນຫຼາຍບ່ອນເຮັດວຽກອອນໄລນ໌ຂອງພວກເຮົາເຊັ່ນ Ubuntu Online, Fedora Online, Windows online emulator ຫຼື MAC OS online emulator
ໂຄງການ:
NAME
mdbus2 - ການໂຕ້ຕອບ DBus introspection, ການໂຕ້ຕອບ, ແລະການຕິດຕາມ
ສະຫຼຸບສັງລວມ
mdbus2 [ຕົວເລືອກ...] [ ໃຫ້ບໍລິການຂ້ອຍ [ ເສັ້ນທາງວັດຖຸ [ ວິທີການ [ ພາລາມິກ... ] ] ]]
mdbus2 - ແມ່ນ
mdbus2 -sl
ລາຍລະອຽດ
ໄດ້ mdbus2 ຄໍາສັ່ງຖືກນໍາໃຊ້ເພື່ອຄົ້ນຫາແລະພົວພັນກັບການບໍລິການ DBus ຢູ່ໃນຂອງທ່ານ ລະບົບ ລົດເມ
ແລະ ກອງປະຊຸມ ລົດເມ. ລົດເມຂໍ້ຄວາມທົ່ວລະບົບມີພຽງຄັ້ງດຽວ ແລະຖືກຕິດຕັ້ງໃສ່ຫຼາຍອັນ
ລະບົບເປັນບໍລິການ "messagebus". ລົດເມຂໍ້ຄວາມຂອງເຊດຊັນແມ່ນຕໍ່ຜູ້ໃຊ້ເຂົ້າສູ່ລະບົບ (ເລີ່ມຕົ້ນ
ແຕ່ລະຄັ້ງທີ່ຜູ້ໃຊ້ເຂົ້າສູ່ລະບົບ) ແລະມັກຈະຖືກຜູກມັດກັບເຊດຊັນ X11 ຂອງທ່ານ.
ໃນຮູບແບບທີ່ງ່າຍດາຍທີ່ສຸດ, mdbus2 ສະແດງໃຫ້ເຫັນການບໍລິການທີ່ມີຢູ່ໃນລົດເມທີ່ເລືອກ. ມອບໃຫ້ ກ
ການບໍລິການ ຊື່, ມັນຈະສະແດງໃຫ້ເຫັນທີ່ມີຢູ່ ວັດຖຸ ສົ່ງອອກໂດຍການບໍລິການ. ໃຫ້ການບໍລິການ
ຊື່ ແລະ ຈຸດປະສົງ ເສັ້ນທາງ, ມັນຈະສະແດງໃຫ້ເຫັນ exposed ໄດ້ ວິທີການ, ສັນຍານ, ແລະ ຄຸນສົມບັດ ຂອງທີ່
ວັດຖຸ
ການສະໜອງ ກ ວິທີການ ຊື່ (ແລະ ພາລາມິເຕີ), ທ່ານສາມາດໂທຫາວິທີການກ່ຽວກັບວັດຖຸແລະໄດ້ຮັບ
ການກັບຄືນມາ ມູນຄ່າ(ສ).
ໃນ ຟັງ ຮູບແບບການ, ທ່ານສາມາດສັງເກດເຫັນສັນຍານທີ່ສົ່ງໃນລົດເມທີ່ເລືອກ.
ລວມຍັງເປັນ ແບບໂຕ້ຕອບ ຫອຍ ດ້ວຍການສໍາເລັດແຖບແລະປະຫວັດຄໍາສັ່ງ.
OPTIONS
--show-anonymous, -a
ຍັງສະແດງ ເປັນເອກະລັກ ການບໍລິການ (ບໍ່ເປີດເຜີຍຊື່) ໃນລົດເມ.
--ລະບົບ, -s
ໃຊ້ bus bus ແທນ (ຄ່າເລີ່ມຕົ້ນ) session bus.
-show-pids, -p
ສະແດງ ID ຂະບວນການ UNIX.
--ຟັງ, -l
ເລີ່ມຮູບແບບການຟັງ, ທີ່ທ່ານສາມາດສັງເກດເບິ່ງສັນຍານໃນລົດເມໄດ້.
--ໂຕ້ຕອບ, -i
ເລີ່ມ shell ແບບໂຕ້ຕອບ.
--annotate-types, -t
ບັນຍາຍປະເພດ DBus.
ການນໍາໃຊ້
ເພື່ອຮຽກຮ້ອງວິທີການກ່ຽວກັບວັດຖຸທີ່ປະຕິບັດໂດຍການບໍລິການ, ທ່ານຈໍາເປັນຕ້ອງລະບຸ
ຄ່າຕໍ່ໄປນີ້:
1 ການບໍລິການ ຊື່, ຕົວຢ່າງ org.freesmartphone.ogsmd - ຊື່ການບໍລິການກໍານົດ
ຂະບວນການຮັບໃຊ້ວັດຖຸຈໍານວນຫນຶ່ງ. ທຸກໆຂະບວນການທີ່ຕິດກັບ
ລົດເມໄດ້ຮັບຢ່າງຫນ້ອຍຊື່ບໍລິການທີ່ບໍ່ເປັນເອກະລັກ (ບໍ່ເປີດເຜີຍຊື່) ທີ່ຖືກມອບຫມາຍ, ເຊັ່ນ:
: 1.0. ຊື່ທີ່ເປັນເອກະລັກ, ເຊັ່ນ: org.freesmartphone.ogsmd, ປົກກະຕິແລ້ວແມ່ນໄດ້ຮັບໃນ
ຫມາຍເຫດຊື່ໂດເມນແບບປີ້ນກັບຕົວພິມນ້ອຍທັງໝົດ.
2 ຈຸດປະສົງ ເສັ້ນທາງ, ຕົວຢ່າງ /org/freesmartphone/GSM/ອຸປະກອນ - ເສັ້ນທາງວັດຖຸ
ກໍານົດວັດຖຸສີມັງຫນຶ່ງທີ່ໄດ້ຮັບການບໍລິການໂດຍຂະບວນການ. ເສັ້ນທາງວັດຖຸປົກກະຕິ
ເບິ່ງຄືວ່າເສັ້ນທາງຂອງລະບົບໄຟລ໌.
3 ວິທີການ, ຕົວຢ່າງ org.freesmartphone.GSM.Call.Initiate - ຊື່ວິທີການ
ກໍານົດການດໍາເນີນການທີ່ເປັນສ່ວນຫນຶ່ງຂອງການໂຕ້ຕອບ (ວິທີການແລະສັນຍານ)
ຂອງວັດຖຸ. ຊື່ວິທີການກໍາລັງໃຊ້ CamelCase ດ້ວຍການໝາຍຈຸດ.
4 ພາລາມິເຕີ, ຕົວຢ່າງ + 49123456 ສຽງ`. (ເຖິງ be ອະທິບາຍ ຕື່ມອີກ).
ຕົວຢ່າງ
ຊອກຫາຊື່ລົດເມໃດທີ່ລົງທະບຽນຢູ່ໃນລົດເມລະບົບ:
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
ຊອກຫາວ່າວັດຖຸໃດໃຫ້ບໍລິການໂດຍການບໍລິການສະເພາະໃດຫນຶ່ງ:
root@om-gta02:~# mdbus -s org.freesmartphone.frameworkd
/
/org
/org/freesmartphone
/org/freesmartphone/Framework
/org/freesmartphone/GSM
/org/freesmartphone/GSM/ອຸປະກອນ
/org/freesmartphone/GSM/Server
ຊອກຫາການໂຕ້ຕອບຂອງວັດຖຸທີ່ແນ່ນອນ:
root@om-gta02:~# mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device
[ວິທີການ] org.freesmartphone.GSM.Call.Activate( i:index )
[ວິທີການ] org.freesmartphone.GSM.Call.ActivateConference( i:index )
[ວິທີການ] org.freesmartphone.GSM.Call.HoldActive()
[ວິທີການ] org.freesmartphone.GSM.Call.Initiate( s:number, s:type_ )
[ວິທີການ] org.freesmartphone.GSM.Call.Release( i:index )
[ວິທີການ] org.freesmartphone.GSM.Call.ReleaseAll()
[ວິທີການ] org.freesmartphone.GSM.Call.ReleaseHold()
[SIGNAL] org.freesmartphone.GSM.Call.CallStatus( i:index, s:status, a{sv}:properties )
[ວິທີການ] org.freedesktop.DBus.Introspectable.Introspect()
[ວິທີການ] org.freesmartphone.GSM.Device.CancelCommand()
[ວິທີການ] org.freesmartphone.GSM.Device.GetAntennaPower()
[ວິທີການ] org.freesmartphone.GSM.Device.GetFeatures()
[ວິທີການ] org.freesmartphone.GSM.Device.GetInfo()
[ວິທີການ] org.freesmartphone.GSM.Device.PrepareForSuspend()
[ວິທີການ] org.freesmartphone.GSM.Device.RecoverFromSuspend()
[ວິທີການ] org.freesmartphone.GSM.Device.SetAntennaPower( b:power )
[METHOD] org.freesmartphone.GSM.SIM.ChangeAuthCode(s:old_pin, s:new_pin )
[ວິທີການ] org.freesmartphone.GSM.SIM.DeleteEntry( i:index )
[ວິທີການ] org.freesmartphone.GSM.SIM.DeleteMessage( i:index )
[ວິທີການ] org.freesmartphone.GSM.SIM.GetAuthStatus()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetImsi()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetMessagebookInfo()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetPhonebookInfo()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetServiceCenterNumber()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetSimCountryCode()
[ວິທີການ] org.freesmartphone.GSM.SIM.GetSubscriberNumbers()
[ວິທີການ] org.freesmartphone.GSM.SIM.RetrieveEntry( i:index )
[ວິທີການ] org.freesmartphone.GSM.SIM.RetrieveMessage( i:index )
[ວິທີການ] org.freesmartphone.GSM.SIM.RetrieveMessagebook(s:category )
[ວິທີການ] org.freesmartphone.GSM.SIM.RetrievePhonebook()
[ວິທີການ] org.freesmartphone.GSM.SIM.SendAuthCode(s:code )
[ວິທີການ] org.freesmartphone.GSM.SIM.SetServiceCenterNumber(s:number)
[ວິທີການ] org.freesmartphone.GSM.SIM.StoreEntry( i:index, s:name, s:number )
[ວິທີການ] org.freesmartphone.GSM.SIM.StoreMessage( s:number, s:contents )
[ວິທີການ] org.freesmartphone.GSM.SIM.Unlock(s:puk,s:new_pin )
[SIGNAL] org.freesmartphone.GSM.SIM.AuthStatus(s:status )
[SIGNAL] org.freesmartphone.GSM.SIM.NewMessage( i:index )
[ວິທີການ] org.freesmartphone.GSM.Network.DisableCallForwarding(s:reason,s:class_)
[ວິທີການ] org.freesmartphone.GSM.Network.EnableCallForwarding(s:reason,s:class_,s:number, i:timeout )
[ວິທີການ] org.freesmartphone.GSM.Network.GetCallForwarding(s:ເຫດຜົນ)
[ວິທີການ] org.freesmartphone.GSM.Network.GetCallingIdentification()
[ວິທີການ] org.freesmartphone.GSM.Network.GetNetworkCountryCode()
[ວິທີການ] org.freesmartphone.GSM.Network.GetSignalStrength()
[ວິທີການ] org.freesmartphone.GSM.Network.GetStatus()
[ວິທີການ] org.freesmartphone.GSM.Network.ListProviders()
[ວິທີການ] org.freesmartphone.GSM.Network.Register()
[ວິທີການ] org.freesmartphone.GSM.Network.RegisterWithProvider( i:operator_code )
[ວິທີການ] org.freesmartphone.GSM.Network.SetCallingIdentification(s:status )
[ວິທີການ] org.freesmartphone.GSM.Network.Unregister()
[SIGNAL] org.freesmartphone.GSM.Network.SignalStrength(i:strength)
[SIGNAL] org.freesmartphone.GSM.Network.Status(a{sv}:ສະຖານະ )
[ວິທີການ] org.freesmartphone.GSM.PDP.ActivateContext( s:apn, s:user, s:password )
[ວິທີການ] org.freesmartphone.GSM.PDP.DeactivateContext()
[ວິທີການ] org.freesmartphone.GSM.PDP.GetCurrentGprsClass()
[ວິທີການ] org.freesmartphone.GSM.PDP.ListAvailableGprsClasses()
[ວິທີການ] org.freesmartphone.GSM.PDP.SetCurrentGprsClass(s:class_ )
[SIGNAL] org.freesmartphone.GSM.PDP.ContextStatus( i:index, s:status, a{sv}:properties )
[ວິທີການ] org.freesmartphone.GSM.Test.Command(s:command)
[ວິທີການ] org.freesmartphone.GSM.Test.Echo(s:echo )
ໂທຫາວິທີການໃນການໂຕ້ຕອບ:
root@om-gta02 ~ $ mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/Device org.freesmartphone.GSM.Device.GetInfo
{ 'imei': '354651011234567',
'ຜູ້ຜະລິດ': 'FIC/OpenMoko',
'model': '"Neo1973 GTA02 Embedded GSM Modem"',
'ການດັດແກ້': '"HW: GTA02BV5, GSM: gsm_ac_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0-Moko8"'}
ໃຊ້ມັນໃນຮູບແບບການຟັງ:
root@om-gta02:/local/pkg/fso/framework/framework# mdbus -s -l
ຟັງສັນຍານໃນ SystemBus ຈາກການບໍລິການ 'ທັງໝົດ', ຈຸດປະສົງ 'ທັງໝົດ'...
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u':1.6'), dbus.String(u''))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.6'), dbus.String(u':1.6'), dbus.String(u''))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.28'), dbus.String(u'), dbus.String(u':1.28'))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.frameworkd'), dbus.String(u'), dbus.String(u':1.28'))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.ogsmd'), dbus.String(u'), dbus.String(u':1.28'))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.29'), dbus.String(u'), dbus.String(u':1.29'))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u'), dbus.String(u':1.29'))
[SIGNAL] org.freedesktop.DBus.NameOwner ປ່ຽນຈາກ org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.30'), dbus.String(u'), dbus.String(u':1.30'))
[SIGNAL] org.freesmartphone.GSM.SIM.ReadyStatus ຈາກ :1.28 /org/freesmartphone/GSM/Device
(dbus.Boolean(ຜິດ),)
[SIGNAL] org.freesmartphone.GSM.SIM.AuthStatus ຈາກ :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'SIM PIN'),)
[SIGNAL] org.freesmartphone.GSM.SIM.AuthStatus ຈາກ :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'READY'),)
[SIGNAL] org.freesmartphone.GSM.SIM.ReadyStatus ຈາກ :1.28 /org/freesmartphone/GSM/Device
(dbus.Boolean(ແທ້),)
ໃຊ້ mdbus2 ອອນໄລນ໌ໂດຍໃຊ້ບໍລິການ onworks.net