นี่คือคำสั่ง mdbus2 ที่สามารถเรียกใช้ในผู้ให้บริการโฮสต์ฟรีของ OnWorks โดยใช้หนึ่งในเวิร์กสเตชันออนไลน์ฟรีของเรา เช่น Ubuntu Online, Fedora Online, โปรแกรมจำลองออนไลน์ของ Windows หรือโปรแกรมจำลองออนไลน์ของ MAC OS
โครงการ:
ชื่อ
mdbus2 - การวิปัสสนา DBus แบบโต้ตอบ การโต้ตอบและการตรวจสอบ
เรื่องย่อ
mdbus2 [ตัวเลือก...] [ บริการฉัน [ เส้นทางวัตถุ [ วิธี [ พาราม... -
mdbus2 -ใช่
mdbus2 -sl
DESCRIPTION
พื้นที่ mdbus2 คำสั่งใช้เพื่อสำรวจและโต้ตอบกับบริการ DBus บน your ระบบ รถบัส
และ เซสชั่น รถบัส. บัสข้อความทั้งระบบมีเพียงครั้งเดียวและติดตั้งบนหลาย ๆ ตัว
ระบบที่เป็นบริการ "messagebus" บัสข้อความเซสชันเป็นแบบต่อผู้ใช้เข้าสู่ระบบ (เริ่มต้น
ทุกครั้งที่ผู้ใช้เข้าสู่ระบบ) และมักจะเชื่อมโยงกับเซสชัน X11 ของคุณ
ในรูปแบบที่ง่ายที่สุด mdbus2 จะแสดงบริการที่มีอยู่บนบัสที่เลือก ให้
บริการ ชื่อ, จะแสดงรายการที่มีอยู่ วัตถุ ส่งออกโดยบริการ ได้ให้บริการ
ชื่อและอัน วัตถุ เส้นทาง,ก็จะแสดงออกมาให้เห็น วิธีการ, สัญญาณและ คุณสมบัติ ของที่
วัตถุ.
การจัดหา วิธี ชื่อ (และ พารามิเตอร์) คุณสามารถเรียกใช้เมธอดบนวัตถุและรับ
กลับ ความคุ้มค่า(S)
ตัว Vortex Indicator ได้ถูกนำเสนอลงในนิตยสาร การฟัง โหมดคุณสามารถสังเกตสัญญาณที่ส่งบนรถบัสที่เลือก
รวมทั้งยังเป็น การโต้ตอบ เปลือก ด้วยการกรอกแท็บและประวัติคำสั่ง
OPTIONS
--show-ไม่ระบุชื่อ, -a
แสดงด้วย เป็นเอกลักษณ์ (ไม่ประสงค์ออกนาม) บริการบนรถโดยสาร
--ระบบ, -s
ใช้บัสระบบแทนเซสชันบัส (ค่าเริ่มต้น)
-show-pid, -p
แสดง ID กระบวนการ UNIX
--ฟัง, -l
เริ่มโหมดผู้ฟังซึ่งคุณสามารถสังเกตสัญญาณบนรถบัสได้
--เชิงโต้ตอบ, -i
เริ่มเชลล์แบบโต้ตอบ
--คำอธิบายประกอบประเภท, -t
ใส่คำอธิบายประกอบประเภท DBus
การใช้
ในการเรียกใช้เมธอดบนอ็อบเจ็กต์ที่ดำเนินการโดยบริการ คุณต้องระบุ
ค่าต่อไปนี้:
1 บริการ ชื่อ, เช่น org.freesmartphone.ogsmd – ชื่อบริการระบุ
กระบวนการที่ให้บริการวัตถุจำนวนหนึ่ง ทุกกระบวนการที่ยึดติดกับ
รถเมล์ได้รับชื่อบริการที่ไม่ซ้ำ (ไม่ระบุชื่อ) อย่างน้อยเช่น
: 1.0. ชื่อเฉพาะ เช่น org.freesmartphone.ogsmdมักจะให้ใน
สัญกรณ์ชื่อโดเมนย้อนกลับตัวพิมพ์เล็กทั้งหมด
2 วัตถุ เส้นทาง, เช่น /org/freesmartphone/GSM/อุปกรณ์ – เส้นทางของวัตถุ
ระบุวัตถุที่เป็นรูปธรรมหนึ่งรายการที่ให้บริการโดยกระบวนการ เส้นทางของวัตถุมักจะ
ดูเหมือนเส้นทางของระบบไฟล์
3 วิธี, เช่น org.freesmartphone.GSM.Call.เริ่มต้น – ชื่อเมธอด
ระบุการดำเนินการที่เป็นส่วนหนึ่งของอินเทอร์เฟซ (วิธีการและสัญญาณ)
ของวัตถุ กำลังใช้ชื่อเมธอด คาเมลเคส ด้วยเครื่องหมายจุด
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/freesmartphone
/org/freesmartphone/กรอบงาน
/org/freesmartphone/GSM
/org/freesmartphone/GSM/อุปกรณ์
/org/freesmartphone/GSM/เซิร์ฟเวอร์
ค้นหาอินเทอร์เฟซของวัตถุบางอย่าง:
root@om-gta02:~# mdbus -s org.freesmartphone.ogsmd /org/freesmartphone/GSM/อุปกรณ์
[วิธีการ] 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.ReleaseHeld()
[สัญญาณ] 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 )
[วิธีการ] 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 )
[สัญญาณ] org.freesmartphone.GSM.SIM.AuthStatus ( s:status )
[สัญญาณ] 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:reason )
[วิธีการ] 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()
[สัญญาณ] org.freesmartphone.GSM.Network.SignalStrength( i:strength )
[สัญญาณ] org.freesmartphone.GSM.Network.Status ( a{sv}:status )
[วิธีการ] 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_ )
[สัญญาณ] 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/อุปกรณ์ org.freesmartphone.GSM.Device.GetInfo
{ 'อีมี่': '354651011234567',
'ผู้ผลิต': 'FIC/OpenMoko',
'รุ่น': '"Neo1973 GTA02 โมเด็ม GSM แบบฝัง"',
'การแก้ไข': '"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 จากบริการ 'ทั้งหมด' วัตถุ 'ทั้งหมด'...
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u':1.6'), dbus.String(u''))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.6'), dbus.String(u':1.6'), dbus.String(u''))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.28'), dbus.String(u''), dbus.String(u':1.28'))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.frameworkd'), dbus.String(u''), dbus.String(u':1.28'))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.freesmartphone.ogsmd'), dbus.String(u''), dbus.String(u':1.28'))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.29'), dbus.String(u''), dbus.String(u':1.29'))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u'org.pyneo.muxer'), dbus.String(u''), dbus.String(u':1.29'))
[สัญญาณ] org.freedesktop.DBus.NameOwnerเปลี่ยนจาก org.freedesktop.DBus /org/freedesktop/DBus
(dbus.String(u':1.30'), dbus.String(u''), dbus.String(u':1.30'))
[สัญญาณ] org.freesmartphone.GSM.SIM.ReadyStatus จาก :1.28 /org/freesmartphone/GSM/Device
(dbus.บูลีน(เท็จ))
[สัญญาณ] org.freesmartphone.GSM.SIM.AuthStatus จาก :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'SIM PIN'),)
[สัญญาณ] org.freesmartphone.GSM.SIM.AuthStatus จาก :1.28 /org/freesmartphone/GSM/Device
(dbus.String(u'READY'),)
[สัญญาณ] org.freesmartphone.GSM.SIM.ReadyStatus จาก :1.28 /org/freesmartphone/GSM/Device
(dbus.บูลีน(จริง),)
ใช้ mdbus2 ออนไลน์โดยใช้บริการ onworks.net