Время на прочтение4 мин
Количество просмотров39K
Выражаем большое спасибо за подготовку статьи sgrebnov из компании Akvelon (Иваново), за помощь в написании данной статьи как непосредственному разработчику AllJoyn и эксперта по IoT/Windows. Остальные наши статьи по теме IoT можно найти по тегу iotweek.
Привет!
Не так давно мы уже затрагивали тему IoT или «Интернета Вещей» в рамках прошедшей конференции WinHEC (Hardware Engineering Conference) 2015.
Одна из главных проблем, волнующих многих, это вопрос обеспечения связности и обнаружения устройств, говорящих на разных языках, протоколах и др. Эту проблему призван решить фреймворк AllJoyn, в совокупности с протоколом Thread, к рабочей группе над которым Microsoft присоединился 1 июля. Об AllJoyn и пойдёт наша речь.
Отдельно мы решили рассмотреть одну из очень важных частей этой концепции в разрезе Windows 10 (но, конечно, не ограничивающейся этой ОС) — популярный протокол взаимодействия устройств AllJoyn, который уже стал де-факто стандартом. Тем более, что Windows 10 и сопутствующий Windows 10 SDK предоставляют специальную поддержку данного протокола.
Что за AllJoyn?
AllJoyn — это фреймворк (и протокол) с открытым исходным кодом, предназначенный для взаимодействия приложений, устройств и пользователей через WiFi и Bluetooth (и другие типы сетей) вне зависимости от типа устройства.
Основной заслугой данного протокола является специальный уровень абстракции, позволяющий устройствам и приложениям предлагать себя в качестве провайдера определенных услуг и находить другие устройсва и приложения без использования какого-либо дополнительного оборудования и специальных серверов.
Архитектурно это выглядит следующим образом – AllJoyn-сеть состоит из виртуальных роутеров (Routers) и приложений (Apps). Приложения общаются со своим роутером, а роутеры, в свою очередь, с другими роутерами и другими приложениям, относящимися к данному роутеру. Таким образом, приложения могут общаться друг с другом посредством сети этих виртуальных роутеров. При этом приложение и вирутальный роутер, к которому он прикреплен, могут находится на разных физических устройствах.
Подробнее про архитектуру AllJoyn можно почитать тут (общая информация) и тут (Windows 10 IoT).
Windows 10 IoT AllJoyn
Спешу порадовать — в Windows 10 включена полная поддержка данного протокола, а именно:
Во-первых, вам не нужно заботиться об AllJoyn-роутере, описанном выше, так как Windows 10 включает специальный сервис AllJoyn Router Service, который может использоваться как вашими приложениями, так и другими устройствами в сети.
Во-вторых, Windows 10 включает специальный API для работы с AllJoyn-протоколом, который находится в пространстве имен Windows.Devices.AllJoyn (https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.alljoyn.aspx) (поддерживаются С++, C#, JavaScript). Таким образом, вам не нужно ставить дополнительные SDK и инструменты, все уже готово и работает.
И, конечно же, дополнительные инструменты для разработчиков:
- AllJoynCodeGen — часть Windows 10 SDK (лежит в C:\Program Files (x86)\Windows Kits\10\bin\x64\), позволяет сгенерировать полностью готовую Windows Runtime библиотеку для работы с AllJoyn-сервисом, используя описание сервиса в формате xml (AllJoyn Introspection XML). Посмотреть и послушать подробнее.
- getajxml — специальная утилита, которая позволяет обнаружить все AllJoyn-устройства в сети, получить детальную информацию, в том числе сгенерировать AllJoyn Introspection XML, который можно использовать для автогенерации кода. Подробнее можно посмотреть на видео выше.
- AllJoyn Explorer — похожая утилита, выполненная в виде Windows приложения и позволяющая не только увидеть интерфейс, но и динамически вызвать методы. Скачать можно здесь.
Пример создания AllJoyn-приложения на Windows 10
Ниже мы будем использовать Windows 10 Insider Preview и бесплатную версию Visual Studio 2015 Community Edition (RC) (скачать).
Одним из популярных примеров AllJoyn является проект Connected Lighting Project, который представляет ни что иное, как лампочку, реализующую AllJoyn-интерфейс для получения информации и управления устройством.
Ниже посмотрим на процесс создания Windows 10-клиета для управления такой умной лампочкой.
Полный исходный код приложения можно найти на GitHub. Итак…
Шаг 1. Создаем новый Widows Runtime C++ компонент и используем AllJoynCodeGen (см. выше) для автогенерации кода.
Публичный AllJoyn Introspection XML для данного проекта можно найти тут.
Детальные инструкции лежат здесь.
Шаг 2. Создаем новое Windows 10 C#/XAML приложение и добавляем в зависимости только что созданный Windows Runtime компонент.
Шаг 3. Теперь мы можем реализовать логику по нахождению и управлению нашей лампочкой
Для того, чтобы найти и подсоединиться к лампочке:
Чтобы изменить яркость:
Это действительно весь код Основные AllJoyn классы были предоставлены Windows 10 API, остальные сгенерированы c помощью AllJoynCodeGen.
Шаг 4. Тестируем:
В качестве тестовой лампочки можно использовать Lamp Simulator Application (Android, скачать). Итак, запускаем наше приложение на Windows Phone 10 телефоне и Lamp Simulator на Android, и смотрим, как это все работает вместе.
Ресурсы
AllJoyn и Windows10
Архитектура AllJoyn
Building AllJoyn Apps on Windows 10
AllJoyn Interfaces in Windows 10
AllJoyn Connected Lighting Project
-
Home
-
News
- What Is Alljoyn Router Service and Should You Remove It?
By Daisy | Follow |
Last Updated
You may be confused when you first noticed the existence of the Alljoyn Router service on Windows 10. You may wonder what it is and should you remove it. Now. this post from MiniTool provides information about Alljoyn Router for you.
What Is Alljoyn Router Service
What is Alljoyn Router service? Alljoyn Router service is open source software of AllSeen Alliance. This service is dedicated to Windows 10 because it enables the system to communicate with other services via IoT (Internet of Things). Besides, it makes it easier for other devices running other operating systems to process and understand information.
Also see: Modem VS Router: What Is the Difference Between Them?
Is Alljoyn Router Service Safe
Is Allijo Router Service safe? Yes, it’s safe. By default, this service is officially released by Microsoft. It is not a virus.
Should You Remove It
Should you remove it? Only when doing any work in the system, you need to use the Alljoyn Router service. However, most Windows users do not need this service. Therefore, if you are not interested in any form of communication with IoT devices in the office, home, or any other place, you can choose to disable it.
If you are a gamer, you will not use the Alljoyn Router service on your PC. Besides, if you stop the service, you will get higher performance and the ability to run games seamlessly. Also, if there is no problem to let it run in the background, then you can choose to keep it in the system.
How to Remove It
Now, let’s see how to remove Alljoyn Router on your PC.
Remove Alljoyn Router in Services
You can try to disable Alljoyn Router in Services. Here is how to do that:
Step 1: Type services in the Search box to open it. Then, you need to click the Standard category.
Step 2: Then, find Alljoyn Router and right-click it to choose Properties.
Step 3: Under the General tab, you need to change the Startup Type to Disabled and click the Apply button. Then, you have disabled Alljoyn Router successfully.
Remove Alljoyn Router in Task Manager
You can also disable Alljoyn Router in Task Manager. Follow the steps below:
Step 1: Type Task Manager in the Search box to open it.
Step 2: Find Alljoyn Router and right-click it. Then, click Open file location.
Step 3: Then, open the Alljoyn Router file and return to the Task Manager window once again.
Step 4: Right-click it and click the End Task button. After that, you can delete the Alljoyn Router folder completely.
Remove Smartbyte Drivers and Services in Control Panel
The last method for you to remove Alljoyn Router is to remove it in Control Panel. This method is still available in the latest version of Windows 10. You can follow the steps below:
Step 1: Type control panel in the search box, and then select Control Panel from the search results.
Step 2: Find and click on Programs and Features to continue.
Step 3: Right-click Alljoyn Router to uninstall and click the Uninstall button.
Also see: How to Uninstall Programs on Windows 10? Here Are Methods
Final Words
From this post, you can know what Alljoyn Router is and how to remove it from your PC. If you have such a demand, you can try the methods mentioned above.
About The Author
Position: Columnist
Having been an editor at MiniTool since graduating college as an English major, Daisy specializes in writing about data backups, disk cloning, and file syncing as well as general computer knowledge and issues. In her free time, Daisy enjoys running and going with friends to the amusement park.
Routes AllJoyn messages for the local AllJoyn clients. If this service is stopped the AllJoyn clients that do not have their own bundled routers will be unable to run.
Default Settings
Startup type: | Manual |
Display name: | AllJoyn Router Service |
Service name: | AJRouter |
Service type: | share |
Error control: | normal |
Object: | NT AUTHORITY\LocalService |
Path: | %SystemRoot%\system32\svchost.exe -k LocalServiceNetworkRestricted -p |
File: | %SystemRoot%\System32\AJRouter.dll |
Registry key: | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AJRouter |
Default Behavior
AllJoyn Router Service is a Win32 service. In Windows 10 it is starting only if the user, an application or another service starts it. When the AllJoyn Router Service is started, it is running as NT AUTHORITY\LocalService in a shared process of svchost.exe along with other services. If AllJoyn Router Service fails to start, the failure details are being recorded into Event Log. Then Windows 10 will start up and notify the user that the AJRouter service has failed to start due to the error.
Restore Default Startup Configuration of AllJoyn Router Service
1. Run the Command Prompt as an administrator.
2. Copy the command below, paste it into the command window and press ENTER:
sc config AJRouter start= demand
3. Close the command window and restart the computer.
The AJRouter service is using the AJRouter.dll file that is located in the C:\Windows\System32 directory. If the file is removed or corrupted, read this article to restore its original version from Windows 10 installation media.
AllJoyn Router Service is a software component that is used by Windows 10, 8, and 7 to facilitate communication between devices in a network. This service allows devices to discover and communicate with each other, making it easier for users to share files and resources across multiple devices. However, there may be instances where you want to turn the AllJoyn Router Service on or off for various reasons. In this article, we will discuss how to do this in Windows 10, 8, and 7.
What is AllJoyn Router Service?
AllJoyn Router Service is a software component that is part of the AllJoyn framework, developed by the AllSeen Alliance. The AllJoyn framework is an open-source software framework that enables devices to communicate with each other over a network. The AllJoyn Router Service acts as a middleman between devices, allowing them to discover and communicate with each other.
The AllJoyn Router Service is used by various applications and services in Windows 10, 8, and 7 to facilitate communication between devices. It is especially useful in scenarios where multiple devices need to interact with each other, such as streaming media, sharing files, or controlling smart home devices.
Why would you want to turn AllJoyn Router Service on or off?
There may be several reasons why you would want to turn the AllJoyn Router Service on or off in Windows 10, 8, or 7. One of the common reasons is to troubleshoot network connectivity issues. Disabling the AllJoyn Router Service can help identify if it is causing any problems with your network connection.
Another reason to turn off the AllJoyn Router Service is to improve system performance. If you are not using any applications or services that rely on the AllJoyn framework, disabling the service can free up system resources and improve overall performance.
On the other hand, turning on the AllJoyn Router Service may be necessary if you want to use applications or services that rely on the AllJoyn framework. Enabling the service allows devices to communicate with each other over the network, making it easier to share files, stream media, or control smart home devices.
How to turn AllJoyn Router Service on or off in Windows 10
Turning the AllJoyn Router Service on or off in Windows 10 is a straightforward process. Here are the steps to do so:
- Press the Windows key + R on your keyboard to open the Run dialog box.
- Type «services.msc» in the Run dialog box and press Enter to open the Services window.
- In the Services window, scroll down and locate the «AllJoyn Router Service» in the list of services.
- Right-click on the «AllJoyn Router Service» and select «Properties» from the context menu.
- In the Properties window, you will see the «Startup type» drop-down menu. This menu allows you to control when the AllJoyn Router Service starts.
- To turn off the AllJoyn Router Service, select «Disabled» from the Startup type drop-down menu. This will prevent the service from starting automatically when you boot up your computer.
- To turn on the AllJoyn Router Service, select «Automatic» or «Manual» from the Startup type drop-down menu. Automatic will start the service automatically when you boot up your computer, while Manual will require you to start the service manually.
- Click on the «Apply» button and then click on the «OK» button to save your changes.
- You can now close the Services window.
By following these steps, you can easily turn the AllJoyn Router Service on or off in Windows 10. Remember that disabling the service may impact certain applications or services that rely on the AllJoyn framework, so proceed with caution.
How to turn AllJoyn Router Service on or off in Windows 8 and 7
The process of turning the AllJoyn Router Service on or off in Windows 8 and 7 is similar to that in Windows 10. Here are the steps to do so:
- Press the Windows key + R on your keyboard to open the Run dialog box.
- Type «services.msc» in the Run dialog box and press Enter to open the Services window.
- In the Services window, scroll down and locate the «AllJoyn Router Service» in the list of services.
- Right-click on the «AllJoyn Router Service» and select «Properties» from the context menu.
- In the Properties window, you will see the «Startup type» drop-down menu. This menu allows you to control when the AllJoyn Router Service starts.
- To turn off the AllJoyn Router Service, select «Disabled» from the Startup type drop-down menu. This will prevent the service from starting automatically when you boot up your computer.
- To turn on the AllJoyn Router Service, select «Automatic» or «Manual» from the Startup type drop-down menu. Automatic will start the service automatically when you boot up your computer, while Manual will require you to start the service manually.
- Click on the «Apply» button and then click on the «OK» button to save your changes.
- You can now close the Services window.
By following these steps, you can easily turn the AllJoyn Router Service on or off in Windows 8 and 7. Just like in Windows 10, disabling the service may impact certain applications or services that rely on the AllJoyn framework.
Conclusion
The AllJoyn Router Service is a useful component that enables devices to communicate with each other over a network. Turning the service on or off in Windows 10, 8, and 7 is a simple process that can help troubleshoot network connectivity issues or improve system performance. By following the steps outlined in this article, you can easily control when the AllJoyn Router Service starts and stops on your computer. Remember to proceed with caution when disabling the service, as it may impact certain applications or services that rely on the AllJoyn framework.
Services and processes are an essential part of any operating system. Sometimes you may come across services that have bizarre names. One such service is ‘AllJoyn Router‘ on Windows 10. If you have seen it recently, and want to know what it is, and if it is safe, then this post is specifically written for you.
Here, I will explain what is AllJoyn Router Service on Windows 10. We will also take a look if it is safe and essential, or if we can disable it. If we can, then how. All your queries about it will be answered here.
What is AllJoyn Router Service on Windows 10?
Windows is especially known to deliver the best user experience. It achieves this with the help of countless services, processes, and programs that keep running in the background and foreground to provide splendid performance. Some of the Windows services are easily understandable, while some of them are rather hard to understand. One somewhat hard to understand Windows service is AllJoyn Router.
By the name of this service, one would think it is involved with the network or router configuration part of the computer. However, that isn’t true. Instead, it is an open-source service that works as a communication bridge between Windows 10 devices and IoT (Internet of Things). All Windows 10 computers and laptops have it built-in now.
What does it do?
The AllJoyn Router Service on Windows 10 isn’t much popular. The majority of Windows 10 users don’t know about it and feel confused when they come across it. Basically, it is a project from the AllSeen Alliance that is developed to enable the ‘Internet of Things.’ This service allows your computer to talk to other AllJoyn-enabled devices for home automation and many other futuristic activities.
When you boot your Windows 10 computer, this service starts running and stays up most of the time. When it is running, it helps your PC to communicate with the other devices that also have the same service enabled. If you understand what IoT is, then you’d figure out that Microsoft has embedded it for their next-gen approach.
Is AllJoyn Router Service Safe?
Since this pretty uncommon service by AllJoyn is not much known to the Windows users, they often end up wondering if it is safe or malicious. If you are also thinking the same, then I should tell you that it is absolutely safe. There is nothing to worry about it.
Microsoft has released a statement that it is for the purpose of the advancement of IoT within the Windows 10 OS. If you notice it, you should just let it run as it will do no harm to you.
Is it a virus?
No, the AllJoyn Router Service is not a virus. It is merely a service by AllSeen Alliance that works as a communicator between Windows 10 and other devices for IoT-based activities. If you want to double-check it, then you can scan it Windows Defender or with any reliable antivirus, you will find that none of them will mark it as a threat.
It is completely safe and useful. You should let it run it as it will never harm your device. However, you should always keep your Windows Defender or any other antivirus tool active, so when any threat with a similar name tries to invade the system, it doesn’t go unnoticed.
Is this service essential?
The AllJoyn Router Service is not an essential Windows service, but it is a pretty important one. This service allows other Windows services on your computer to exchange information through the Internet of Things. If it isn’t running, your PC will lose the ability to connect with other IoT-enabled devices. That’s why it is an important service.
However, a normal Windows 10 users would rarely need it. That’s why it is not essential. If you are finding it consuming a lot of PC resources, then you can think of disabling it to free up resources. I have explained that part below.
Should You Disable AllJoyn Router Service?
Since this IoT-related service isn’t harming your PC and just serving its purpose, I’d recommend that you let it run. However, if you are thinking of disabling it, you must know if you need it or not. A casual Windows user who performs basic tasks or plays games would rarely need it. This service is oriented specifically for the industry-enthusiasts.
So, you can disable it if you want. But, I’d recommend that you should let it run just for the convenience aspect. If you’ll disable it, your PC will not be able to exchange information by IoT. The description of the service also states that if the service is stopped, the AllJoyn clients that do not have their own bundled routers will be unable to run. So, I’d suggest that you don’t disable it.
How to Disable it?
If you have decided that you want to disable this particular service, then I will guide you with that. Remember that disabling the service will have both a positive as well as a negative impact on your PC. The positive will be that your computer’s resources would be freed, so it may run comparatively better. And, the negative would be that your PC will not be able to communicate with other IoT-enabled devices.
Once you are ready, follow these steps to disable the AllJoyn Router service on your computer:
Step-1: Press the Windows + R key to trigger the Run dialog box. Type services.msc in it and hit Enter to access the Services window.
Step-2: In the Services window, find and choose ‘AllJoyn Router Service‘ from the list of tasks, right-click on it, and choose ‘Properties.’
Step-3: If you see the service running, click on ‘Stop’ to stop the service, and then select ‘Disabled’ under the ‘startup type’ box.
Step-4: After that, click on Apply, and then click on OK to save the changes.
That’s it. Now the service is disabled and it won’t run again until you manually turn it on. You can do that in a similar fashion.
Final Verdict
AllJoyn Router is an unidentified Windows 10 service that Windows users often worry about it. However, there is nothing malicious or unsafe about it. This service only works as a communicator between your device and other IoT-enabled devices for futuristic activities. You should let it keep running as it won’t harm your computer. But, if you want to disable it, then you can do that by following the procedure I have mentioned.
That’s all for this post. I hope you find it helpful. Feel free to use the comment box to share your opinions about it, or to ask about any other Windows service.