এটি হল mdbus2 কমান্ড যা আমাদের একাধিক বিনামূল্যের অনলাইন ওয়ার্কস্টেশন যেমন উবুন্টু অনলাইন, ফেডোরা অনলাইন, উইন্ডোজ অনলাইন এমুলেটর বা MAC OS অনলাইন এমুলেটর ব্যবহার করে OnWorks ফ্রি হোস্টিং প্রদানকারীতে চালানো যেতে পারে।
কার্যক্রম:
NAME এর
mdbus2 - ইন্টারেক্টিভ DBus আত্মদর্শন, মিথস্ক্রিয়া, এবং পর্যবেক্ষণ
সাইনোপিসিস
mdbus2 [বিকল্প...] [ কাজের নাম [ বস্তুপথ [ পদ্ধতি [ পরামস... ] ] ] ]
mdbus2 -সি
mdbus2 -sl
বর্ণনাঃ
সার্জারির mdbus2 আপনার ডিবিস পরিষেবাগুলি অন্বেষণ এবং ইন্টারঅ্যাক্ট করতে কমান্ড ব্যবহার করা হয় পদ্ধতি বাস
এবং সেশন বাস. সিস্টেম-ওয়াইড মেসেজ বাস শুধুমাত্র একবারই বিদ্যমান এবং অনেকগুলিতে ইনস্টল করা আছে
"মেসেজবাস" পরিষেবা হিসাবে সিস্টেমগুলি। সেশন বার্তা বাস প্রতি-ব্যবহারকারী-লগইন (শুরু হয়েছে
প্রতিবার ব্যবহারকারী লগ ইন করে) এবং সাধারণত আপনার X11 সেশনের সাথে সংযুক্ত থাকে।
সহজতম আকারে, mdbus2 নির্বাচিত বাসে উপলব্ধ পরিষেবাগুলি দেখায়। দেওয়া a
সেবা নাম, এটি উপলব্ধ দেখাবে বস্তু পরিষেবা দ্বারা রপ্তানি করা হয়। একটি সেবা দিয়েছেন
নাম এবং একটি লক্ষ্য পথ, এটা উন্মুক্ত দেখাবে পদ্ধতি, সংকেত, এবং বৈশিষ্ট্য যে
অবজেক্ট।
সরবরাহ করা a পদ্ধতি নাম (এবং পরামিতি), আপনি অবজেক্টে পদ্ধতি কল করতে পারেন এবং পেতে পারেন
প্রত্যাবর্তন মূল্য(গুলি)।
মধ্যে শ্রবণ মোড, আপনি নির্বাচিত বাসে পাঠানো সংকেত পর্যবেক্ষণ করতে পারেন।
এছাড়াও অন্তর্ভুক্ত একটি ইন্টারেক্টিভ খোল ট্যাব-সম্পূর্ণতা এবং কমান্ড ইতিহাস সহ।
বিকল্প
--দেখানো-বেনামী, -a
এছাড়াও দেখান অনন্য বাসে (বেনামী) পরিষেবা।
--পদ্ধতি, -s
(ডিফল্ট) সেশন বাসের পরিবর্তে সিস্টেম বাস ব্যবহার করুন।
- শো-পিডস, -p
ইউনিক্স প্রসেস আইডি দেখান।
--শোন, -l
শ্রোতা মোড শুরু করুন, যেখানে আপনি বাসে সংকেত পর্যবেক্ষণ করতে পারেন।
-- ইন্টারেক্টিভ, -i
একটি ইন্টারেক্টিভ শেল শুরু করুন।
--টীকা-প্রকার, -t
DBus প্রকার টীকা করুন।
, USAGE
একটি পরিষেবা দ্বারা বাস্তবায়িত একটি বস্তুর উপর একটি পদ্ধতি আহ্বান করতে, আপনাকে নির্দিষ্ট করতে হবে
নিম্নলিখিত মানসমূহ:
1 সেবা নাম, উদাহরণস্বরূপ org.freesmartphone.ogsmd - পরিষেবার নাম সনাক্ত করে
অনেকগুলি বস্তু পরিবেশন করার প্রক্রিয়া। প্রতিটি প্রক্রিয়া যা সংযুক্ত করে
বাস অন্তত একটি অ-অনন্য (বেনামী) পরিষেবার নাম বরাদ্দ করে, যেমন
: 1.0. অনন্য নাম, যেমন org.freesmartphone.ogsmd, সাধারণত দেওয়া হয়
সব ছোট হাতের বিপরীত ডোমেন নামের স্বরলিপি।
2 লক্ষ্য পথ, উদাহরণস্বরূপ /org/freesmartphone/GSM/ডিভাইস - বস্তুর পথ
প্রক্রিয়া দ্বারা পরিবেশিত একটি কংক্রিট বস্তু সনাক্ত করে। অবজেক্ট পাথ সাধারণত
ফাইল সিস্টেম পাথ মত চেহারা.
3 পদ্ধতি, উদাহরণস্বরূপ org.freesmartphone.GSM.Call.Initiate - পদ্ধতির নাম
একটি অপারেশন সনাক্ত করে যা ইন্টারফেসের অংশ (পদ্ধতি এবং সংকেত)
একটি বস্তুর পদ্ধতির নাম ব্যবহার করা হয় ক্যামেলকেস ডট নোটেশন সহ।
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.ReleaseHeld()
[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 )
[পদ্ধতি] 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: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()
[SIGNAL] org.freesmartphone.GSM.Network.SignalStrength( i:শক্তি)
[SIGNAL] 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_ )
[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',
'উৎপাদক': 'এফআইসি/ওপেনমোকো',
'মডেল': '"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
পরিষেবা 'অল', অবজেক্ট 'অল' থেকে সিস্টেমবাসে সংকেত শোনা হচ্ছে...
[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.বুলিয়ান(মিথ্যা),)
[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.বুলিয়ান(সত্য),)
onworks.net পরিষেবা ব্যবহার করে অনলাইনে mdbus2 ব্যবহার করুন