Azure IOT Configuration

 Step-by-Step Guide to Connecting a Simulated Device to Azure IoT Hub

This guide will walk you through the process of setting up a simulated device, configuring an Azure IoT Hub, and connecting the two to test data transmission.

Prerequisites:

 * An active Azure subscription.

 * A computer with internet access.

Step 1: Set up the Simulated Device

 * Find the Simulator: Locate a web-based Raspberry Pi temperature device simulator online. This will serve as your virtual device.

Raspberry Simulator link : https://learn.microsoft.com/en-us/azure/iot-hub/raspberry-pi-get-started

 * Access the Simulator: Open the simulator in your web browser. You will need to copy the connection string from Azure into its configuration later.

Step 2: Install and Configure Azure IoT Tools

 * Install Azure IoT Explorer: Download and install the Azure IoT Explorer application on your computer. This tool allows you to interact with your IoT Hub and devices.

 * Access Azure Cloud Shell: You have two options for using the Cloud Shell:

   * From the Azure Portal: Log in to the Azure Portal and click the Cloud Shell icon in the top right corner.

   * Install Locally: Install the Azure CLI on your computer and configure it to connect to your Azure account.

Step 3: Create and Configure Your IoT Device in Azure

 * Create an IoT Hub: If you don't already have one, create a new Azure IoT Hub in your subscription.

 * Create a New Device:

   * Using either the Azure Portal, Azure IoT Explorer, or Cloud Shell, create a new device within your IoT Hub. Give it a descriptive name (e.g., my-raspi-simulator).

   * Note: You may need to create a new device identity group first if your project requires it.

 * Retrieve the Connection String:

   * Once the device is created, navigate to its settings.

   * Find the device's primary connection string. This string contains the information needed for your device to securely connect to the IoT Hub.

   * Copy this connection string to your clipboard.

Step 4: Connect and Test the Simulation

 * Configure the Simulator: Go back to the web-based Raspberry Pi temperature simulator you opened in Step 1.

 * Paste the Connection String: Paste the connection string you copied from Azure into the designated field in the simulator's code or configuration.

 * Run the Simulation: Start the simulator. It should now begin sending simulated temperature data to your Azure IoT Hub.

 * Verify Data Transmission:

   * Use Azure IoT Explorer to connect to your IoT Hub.

   * Open the "Telemetry" view for your device.

   * You should see the temperature data being received from the simulator in real-time. This confirms a successful connection and data flow.

https://youtu.be/Sxj3QqYEbFQ



Playing own mp3 audio files in an Alexa skill using SSML

 


Telegram shell bot

 If you use Telegram regularly, you’ve probably heard of bots. They’re like regular accounts, you can talk to them or have them in groups and they’ll do all sorts of useful things for you.

In this post, I present you the shell bot! Unlike other bots, this one is self-hosted: you use it by running your own instance of the bot in your server.

This handy bot runs commands on demand and sends the live output, allowing you to interact at any time. It can even run graphical apps!

The shell bot running some simple commands.
The shell bot running some simple commands.

It was made as an example for the botgram framework, but I’ve been using it for some time and it’s proven to be very useful. When you’re on mobile and just want to issue a few commands, talking to a bot is probably more convenient than opening an SSH app and connecting to the server.

Graphical application example, alsamixer in this case.
Graphical application example, alsamixer in this case.

It has creative uses as well: I once was troubleshooting a server problem with some friends, so we added the bot to the group and started playing around. Everyone could see what was going on, and suggest possible causes or things to try.

If you want to have your own shell bot, this post will guide you through the process of creating the Telegram bot itself, and installing the necessary software.

Create your bot

First of all, you need to register a Telegram bot. Don’t worry, it only takes some seconds. Click here to talk to the BotFather, then say /newbot and you’ll be asked some things (name, username, etc.). At the end, you’ll be given an authentication token that looks like the following:

123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Preparations

Edit: The bot now lives in its own repository and the installation process has been simplified. If you followed a previous version of this post, remove it and follow these steps from the start.

The following should be done on the computer you want to run commands on. First of all, make sure you have Node.JS installed (you can verify by running npm -v). You’ll also need a working compiler and git:

sudo apt-get install build-essential git

Clone the project and install dependencies:

git clone https://github.com/botgram/shell-bot.git
cd shell-bot
npm install

Then run the bot for the first time, to create the configuration file:

node server

It will ask you a set of questions, including the auth token that you got from the BotFather, and will ask that you talk to your bot (so it can know who his owner is).

Run it!

Now that we have everything set up, we can run the shell bot:

node server

Try saying /run uname -a for example, or say /help to learn about the available commands.

Autostart

Once you’ve played around, you may want the bot to start automatically on boot, and respawn if it crashes. For that, let’s install forever:

sudo npm install -g forever

Then, from your /etc/rc.local or an init script, call:

forever start /path/to/shell-bot/server.js

Also, it’s a good idea to talk to the BotFather and say /setcommands to define a list of commands your bot accepts. You’ll find this list in commands.txt; just paste the contents when asked. You may also want to change the bot’s profile photo and description.

Android Head Unit - Root Device / Model : evb3561sv_w_65_m0


Android Head Unit (evb3561sv_w_65_m0(full_evb3561sv_w_65_m0) or evb3561sv_w_65_m0 or TS356XKUDO

Build ID: MRA58K

CPU Info or SOC: Cortex ARM Cortex A-53 1.25 GHz ( 4 CPU or 4 Core)
Model : evb3561sv_w_65_m0(full_evb3561sv_w_65_m0)
Manufacturer : alps
Hardware : mt3561
Build ID : YT3518C_00008_V008
Android Version : 6.0
API Level : 23
Kernel Arch : aarch64
Source – Android APP CPU-Z (Google Play Store)
Cabling ( Turn On Unit without Car or Open Setup)

Inside Unit:





Panel Back Side









Top View










Rear view with USB ADB Port






Power Up Board (Cabling )

  1. Yellow ( Battery +12 V)
  2. Black ( Battery -12 V)
  3. Red (Next to Yellow – ACC [Sort red and yellow , ignition key ON])

Try without open Board Setup , connect to any USB Port and Change USB Configuration to Audio Source.
  1. Open ADB Tools And Location in CMD (Command Prompt – Admin Rights )  
  2. Check any of the Android Device (Android Phone ) connect to PC.
  3. Type Adb Devices 
  4. You can find root Shell in above image (command Adb Shell)    
  5. Download important tools to install SU (Super User) , because SU not  available in device.                                                                Install Terminal Emulator from Play Store.
Download arm64.zip and extract files to /sdcard/



          
             
Type Following Commands After Connecting to ADB Shell
1.        mount -o remount,rw /system
2.        cp /sdcard/arm64/su /system/bin/su
3.        chmod 0755 /system/bin/su
4.        cp /sdcard/arm64/su /system/xbin/su
5.        chmod 0755 /system/xbin/su
6.        su --install
7.        su --daemon&
8.        setenforce 0
9.        mount -o remount,ro /system

























Note :
1.        Chose this option after enabling Developer option in device
2.        Select USB Configuration
3.        Select Audio Source
4.        Then Check in Command Prompt (type `adb device`) 

Device Cable Specification 































  






FAQ: Tools Tips
  1. ü  The password for the hardware settings menu is 8888 (Car Setting> Factory Setting.
  2. ü  Screen calibration: Press with five fingers, then follow the signs, the next step is to configure the touch buttons.
  3. ü  Engineering menu on the phone * # * # 3646633 # * # *
  4. ü  Switch the GU to ADB mode, dial * # * # 5678 # on the phone and select the device type device


Important Links for reference:


Wires : universal iso connector
Car Stereo Wiring Harness

(Update Android head unit with three reset)





















How to fix “Invalid IMEI ” after Factory reset?


Solution : 1

Install the Mobile MTK Engineering Mode app. This will only work on devices with a Mediatek chipset.

This Application allow you to run Advanced Setup from Engineering Mode Menu of MTK phones, also called SERVICE MODE

Other apps which can show the MTK Engineering Mode Menu will probably work too.

If you can't find or don't know your phone's IMEI, then install the Bb IMEI Generator app to generate one for you. If your phone has dual SIM support, you'll need two IMEIs. Note the generated IMEIs by Bb IMEI Generator.

In the Mobile MTK Engineering Mode app go to > MTK Settings > Connectivity > CDS Information > Radio Information > Phone 1.
At the AT+ line:



Enter AT +EGMR=1,7,"ENTER-IMEI-HERE", then tap on 'Send AT Command'. If you have a dual SIM phone, enter AT +EGMR=1,10,"ENTER-IMEI-HERE" then tap on 'Send AT Command' again. Note: The quotes are included. There should be a space after AT.

You should get a notification that the AT Command(s) were successfully sent. Restart your device. You now shouldn't get the 'Invalid IMEI' notification.

Solution : 2

DO IT AT YOUR OWN RISK

Need to root the phone - I use z4root
Install Root.Explorer (in the archive)
Using Root Explorer you must replace (maybe you will need to press "Mount R/W" on top right corner of the program screen) .modem.img from the archive to this location of the phone /etc/firmware/.modem.img (do not delete the old file !!! replace it!)
Set permissions for the .modem.img file to rw-r--r--
Restart the phone and maybe will be OK, but if it is not go to next step
IMEI information is stored in /data/nvram/md/NVRAM/NVD_IMEI/MP0B_001. Maybe changing of your original IMEI is not good idea because it is against the law but if you don't have copy of that file BEFORE the factory reset you can use temporary IMEI file located in the arhive.

Change IMEI In Android Phone

HUsing Mobile Uncle app or 

Now read full detail tutorial to change IMEI in Android phone using mobileuncle tool.it’s really so simple technique to change IMEI of any android phone.let’s see…
  • Download and install mobile uncle app on your android device. Now Mobile Uncle is not available on Google Play Store.[ mobile uncle app]
  • After successful installation of mobile uncle now open the Mobile Uncle.
  • Click on “Get Start” to run the app.
mobile uncle tool
  • If it’s your first time a Pop-Up will be open – requesting root permission then just grant the request and continue below…………..
  • Backup is important – create backup of original IMEI by “Choosing IMEI backup (MTK)” option.
  • Now click on “MTK Engineer Mode” and slid your screen from right to left and select “CSD Information” under the connectivity tab.
changi imei using mobile uncle tool
  • Now select the “Radio Information” option.
mobile uncle radio information
  • If you are using dual sim android phone then you can see “Phone 1” & “Phone 2”.
Here Phone 1 is SIM 1 and Phone 2 is SIM 2.so choose the option to change IMEI with BB IMEI.
changi imei
Here we are choosing PHONE 1 to tweak/change IMEI for example.
  • Click on PHONE 1 , Now you will see AT + on the top of screen.
changi android imei number
  • Now type E after AT+ and remove it again.
  • After clear it, a dialoug box will be open – select AT+EGMR=1,71,””””
changi android imei number (1)
  • Now copy your BB IMEI (New IMEI) and paste it between [ ‘’ ‘’ ]
Ex- AT+EGMR=1,7,”xxxxxxxxxxxxxxx .replace the xxxxxxxxxxxxxxx with new IMEI.
If you are going to change IMEI second then use it as
AT+EGMR=1,10,”xxxxxxxxxxxxxxx
android imei changer
  • Make sure you had put right value now click on “SEND AT Command”.
  • Now a notification message will be appear in front of you ,saying AT command is Msend
  • Now same as you can change both IMEI number of android phone.
  • Now you are done.
Restart your android phone .now you will see you had changed IMEI in android phone. Check your android IMEI again by dialing *#06# and Enjoy your new IMEI number.
Trouble shooting
While changing the IMEI of android device if you got any error or getting any response like “command is not allowed in user build” after hitting on “SEND AT COMMAND” .don’t worry. Just add one space between AT+ and EGMR. it will like this AT+SPACE EGMR.
Now again click on “SEND AT Command”. That’s it.
Change IMEI Number Of Android Phone With Root Android Device
Remember this method will work if your android mobile or device is rooted. if your android device is not rooted then read out how to root android phone with PC or How to root android phone without PC .you can choose any one method according to you to root your android phone.
  • Before doing any changes in your android phone you must have backup of your IMEI number for the safety.
  • After successful root your android devices, now install Xposed installer on your phone. Learn how to install Xposed installer on android phone/device.
  • Ok now download and install the XPOSED IMEI Changer Module on your android device.(to change IMEI number of Android Phone)
  • Now in the next process enable this app in the Xposed Installer.
  • And then reboot your android device once again.
  • Now launch the app and you can see a IMEI screen changer option will be appear in front of you. type any desired value for New IMEI number that you want to assign your android phone/device.
1
  • After valid input now click on Apply button.
  • Now you can see your new imei number that will be same as you assigned through the app in the starting.
As I told you above method01 will work only and only on MTK device .but method 02 will work on all type of MTK and non MTK android device but it required root access .so apply any above method according to you and change IMEI number of android phone easily.
This is all about how to change IMEI number of android phone/Smartphone .these are the best and working method to change IMEI number. Remember these changes will work only on android devices, so now you can change IMIE number of any android device.