Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generated by .NET Reflector from C:\Users\Njunwa MG\Downloads\Compressed\Huawei Modem Unlocker\NewSalluV4CalculatorUpdated.exe
- namespace NewSalluV4CalculatorUpdated
- {
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Globalization;
- using System.IO.Ports;
- using System.Linq;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using System.Windows.Forms;
- public class Form1 : Form
- {
- private static List<string> appPorts;
- private Button button1;
- private Button button2;
- private Button button3;
- private Button button4;
- private Button calcButton;
- private IContainer components = null;
- private Button detectButton;
- private Label label1;
- private Label label2;
- private Label label3;
- private Label label4;
- private Label label5;
- private Label label6;
- private Label label8;
- private RichTextBox logTextBox;
- private static string nvrdex;
- private static int oemCode;
- private TextBox oemTextBox;
- private TextBox outputTextBox;
- private static string pattern1;
- private TextBox pattern1Textbox;
- private static string pattern2;
- private TextBox pattern2Textbox;
- private static SerialPort port;
- private ComboBox portComboBox;
- private ProgressBar progressBar1;
- private Label progressLabel1;
- public Form1()
- {
- this.InitializeComponent();
- }
- private void AddPortsToComboBox(string[] ports)
- {
- int num;
- this.portComboBox.Items.Clear();
- this.portComboBox.Items.Add("Auto Detect");
- for (int i = 0; i < ports.Length; i = num + 1)
- {
- this.portComboBox.Items.Add(ports[i]);
- num = i;
- }
- }
- private void button1_Click(object sender, EventArgs e)
- {
- oemCode = 1;
- this.logTextBox.Clear();
- this.logTextBox.AppendText("\n==========================================\n\n");
- this.logTextBox.AppendText(" OEM string Selected ....... \n");
- this.logTextBox.AppendText("\n==========================================\n\n");
- this.logTextBox.AppendText(" *** In case of Port issue , Device not found , Please Close this application and re-open the app and do step1 , step 2 and step 3");
- }
- private void button4_Click(object sender, EventArgs e)
- {
- MessageBox.Show("Important Notes:- \n \n *** Use this application in Compatibility mode for windows 7 . \n *** right click on this app and select 'Compatibility' tab . \n *** choose 'Run this program in compatibility mode for:' \n *** choose Windows 7 \n *** Click OK and Now use this application as normal and Enjoy!", "How to use :");
- }
- private void calcButton_Click(object sender, EventArgs e)
- {
- if ((this.pattern1Textbox.Text == "") || (this.pattern2Textbox.Text == ""))
- {
- this.logTextBox.Clear();
- this.logTextBox.AppendText("Unable to extract data from modem!");
- }
- else
- {
- this.logTextBox.AppendText("\n==========================================\n\n");
- this.logTextBox.AppendText("Attention ! During Operation the Program stops responding to your actions .\n Time Calculation depend on the power of your Computer ( from 2 to 10 minutes ) \n\n");
- this.logTextBox.AppendText(string.Concat(new object[] { DateTime.Now.Hour, ":", DateTime.Now.Minute, ":", DateTime.Now.Second, " - Progress Started ..\n" }));
- this.logTextBox.ScrollToCaret();
- this.logTextBox.Update();
- string text = this.pattern1Textbox.Text;
- string str2 = this.pattern2Textbox.Text;
- if ((text.Length == 0x5f) && (str2.Length == 0x5f))
- {
- uint num;
- int num2;
- int num3;
- this.outputTextBox.Text = "";
- this.outputTextBox.Update();
- this.oemTextBox.Text = "";
- this.oemTextBox.Update();
- SHA256Managed managed = new SHA256Managed();
- byte[] second = new byte[0x20];
- byte[] destinationArray = new byte[0x40];
- byte[] buffer = new byte[8];
- for (num2 = 0; num2 < 0x20; num2 = num3 + 1)
- {
- uint.TryParse(text.Substring(num2 * 3, 2), NumberStyles.HexNumber, null, out num);
- second[num2] = (byte) num;
- num3 = num2;
- }
- num2 = 0;
- while (num2 < 0x20)
- {
- uint.TryParse(str2.Substring(num2 * 3, 2), NumberStyles.HexNumber, null, out num);
- destinationArray[0x20 + num2] = (byte) num;
- num3 = num2;
- num2 = num3 + 1;
- }
- int num4 = 0;
- for (int i = 0x5f5e0ff; i >= 0; i = num3 - 1)
- {
- int num6 = i;
- for (num2 = 0; num2 < 8; num2 = num3 + 1)
- {
- buffer[7 - num2] = (byte) ((num6 % 10) + 0x30);
- num6 /= 10;
- num3 = num2;
- }
- Array.Copy(managed.ComputeHash(buffer), destinationArray, 0x20);
- if (managed.ComputeHash(destinationArray).SequenceEqual<byte>(second))
- {
- this.outputTextBox.Text = i.ToString("D8");
- this.oemTextBox.Text = i.ToString("D8");
- break;
- }
- if ((num4 / 0xf4240) >= 100)
- {
- this.progressBar1.Value = 100;
- this.progressLabel1.Text = "Progress Calculation: 100%";
- }
- else
- {
- this.progressBar1.Value = num4 / 0xf4240;
- num3 = num4 / 0xf4240;
- this.progressLabel1.Text = "Progress Calculation: " + num3.ToString() + "%";
- }
- this.progressBar1.Update();
- this.progressLabel1.Update();
- num3 = num4;
- num4 = num3 + 1;
- num3 = i;
- }
- if (this.outputTextBox.Text != "")
- {
- this.progressBar1.Value = 100;
- this.progressLabel1.Text = "Progress Calculation: 100%";
- if (oemCode == 1)
- {
- this.outputTextBox.Text = "";
- oemCode = 0;
- }
- else
- {
- this.oemTextBox.Text = "";
- }
- }
- else
- {
- this.outputTextBox.Text = " Wrong Patterns or Incompatible ";
- this.oemTextBox.Text = " Wrong Patterns or Incompatible ";
- }
- this.logTextBox.AppendText(string.Concat(new object[] { DateTime.Now.Hour, ":", DateTime.Now.Minute, ":", DateTime.Now.Second, " - Processing of Data is Completed \n" }));
- this.logTextBox.AppendText("\n==========================================\n\n");
- this.logTextBox.AppendText("For NCK Network Unlock Code: \n");
- this.logTextBox.AppendText("1. go to your modem portal address from 192.168.x.1 \n");
- this.logTextBox.AppendText("2. if it prompts to put unlock code then Use 8 digit NCK Unlock code. \n");
- this.logTextBox.AppendText("3. and Enjoy ! No ?? . \n");
- this.logTextBox.AppendText("4. if it doesn't ask you for any type of code then Use AT Commands using dc unlocker or putty.\n");
- this.logTextBox.AppendText("*** Oem Code is for advanced users --- sometimes needed for telnet,adb,datalock and a lot more .... \n");
- this.logTextBox.AppendText("*** stay in touch with the Forum and relevant thread to know more info \n");
- this.logTextBox.AppendText("*** if this app hang or freezes then Click this button >> 'For More Info' ... \n");
- this.logTextBox.ScrollToCaret();
- this.logTextBox.Update();
- }
- }
- }
- private static void ClosePort()
- {
- if (port.IsOpen)
- {
- port.Close();
- }
- }
- private void detectButton_Click(object sender, EventArgs e)
- {
- this.logTextBox.Clear();
- port = new SerialPort();
- if (this.portComboBox.SelectedIndex == 0)
- {
- nvrdex = FindAndReadFirstAppPort();
- }
- else
- {
- string portName = this.portComboBox.Items[this.portComboBox.SelectedIndex].ToString();
- nvrdex = this.TryReadPort(portName);
- }
- if (nvrdex == null)
- {
- this.logTextBox.Clear();
- this.logTextBox.Text = "Device not Found .";
- }
- else
- {
- this.SelectPortInComboBox(port.PortName);
- pattern1 = nvrdex.Substring(0x15, 0x5f);
- pattern2 = nvrdex.Substring(0xd5, 0x5f);
- this.pattern1Textbox.Text = pattern1;
- this.pattern2Textbox.Text = pattern2;
- this.PrintDeviceInfo(port.PortName);
- port.Close();
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components > null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private static string FindAndReadFirstAppPort()
- {
- string[] portNames = SerialPort.GetPortNames();
- string str = "";
- appPorts = new List<string>();
- foreach (string str2 in portNames)
- {
- if (TryOpenPort(str2))
- {
- if (oemCode == 1)
- {
- str = SendCommand("AT^NVRDEX=50502,0,128");
- }
- else
- {
- str = SendCommand("AT^NVRDEX=50503,0,128");
- }
- if (str.Contains("NVRDEX:"))
- {
- int index = str.IndexOf("^NVRDEX:");
- return str.Substring(index, 0x194);
- }
- }
- ClosePort();
- }
- return null;
- }
- private string FindSubstring(string str, string fromString, string toString)
- {
- string str2 = "";
- int index = str.IndexOf(fromString);
- if (index > -1)
- {
- int num2 = str.IndexOf(toString, (int) (index + 1));
- if (num2 > -1)
- {
- int num3 = num2 - index;
- str2 = str.Substring(index, num2 - index);
- }
- }
- return str2;
- }
- private void Form1_Activated(object sender, EventArgs e)
- {
- this.AddPortsToComboBox(SerialPort.GetPortNames());
- this.portComboBox.SelectedIndex = 0;
- }
- private void InitializeComponent()
- {
- ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
- this.label1 = new Label();
- this.label2 = new Label();
- this.label3 = new Label();
- this.portComboBox = new ComboBox();
- this.detectButton = new Button();
- this.calcButton = new Button();
- this.label4 = new Label();
- this.progressLabel1 = new Label();
- this.progressBar1 = new ProgressBar();
- this.pattern1Textbox = new TextBox();
- this.pattern2Textbox = new TextBox();
- this.logTextBox = new RichTextBox();
- this.outputTextBox = new TextBox();
- this.label5 = new Label();
- this.button1 = new Button();
- this.label6 = new Label();
- this.button2 = new Button();
- this.button3 = new Button();
- this.label8 = new Label();
- this.oemTextBox = new TextBox();
- this.button4 = new Button();
- base.SuspendLayout();
- this.label1.AutoSize = true;
- this.label1.Location = new Point(12, 0x54);
- this.label1.Name = "label1";
- this.label1.Size = new Size(0x38, 13);
- this.label1.TabIndex = 0;
- this.label1.Text = "Pattern 1:-";
- this.label2.AutoSize = true;
- this.label2.Location = new Point(12, 0x76);
- this.label2.Name = "label2";
- this.label2.Size = new Size(0x38, 13);
- this.label2.TabIndex = 1;
- this.label2.Text = "Pattern 2:-";
- this.label3.AutoSize = true;
- this.label3.Location = new Point(12, 9);
- this.label3.Name = "label3";
- this.label3.Size = new Size(0x3e, 13);
- this.label3.TabIndex = 2;
- this.label3.Text = "COM-Port : ";
- this.portComboBox.FormattingEnabled = true;
- this.portComboBox.Location = new Point(0x51, 6);
- this.portComboBox.Name = "portComboBox";
- this.portComboBox.Size = new Size(0xb2, 0x15);
- this.portComboBox.TabIndex = 3;
- this.detectButton.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.detectButton.Location = new Point(310, 6);
- this.detectButton.Name = "detectButton";
- this.detectButton.Size = new Size(0x93, 0x17);
- this.detectButton.TabIndex = 4;
- this.detectButton.Text = "Click here to detect";
- this.detectButton.UseVisualStyleBackColor = true;
- this.detectButton.Click += new EventHandler(this.detectButton_Click);
- this.calcButton.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
- this.calcButton.Font = new Font("Comic Sans MS", 11.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.calcButton.Location = new Point(15, 0x1c4);
- this.calcButton.Name = "calcButton";
- this.calcButton.Size = new Size(0xcf, 0x25);
- this.calcButton.TabIndex = 5;
- this.calcButton.Text = "Calculate";
- this.calcButton.UseVisualStyleBackColor = true;
- this.calcButton.Click += new EventHandler(this.calcButton_Click);
- this.label4.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
- this.label4.AutoSize = true;
- this.label4.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label4.Location = new Point(0x14d, 0x1c8);
- this.label4.Name = "label4";
- this.label4.Size = new Size(0x9e, 15);
- this.label4.TabIndex = 6;
- this.label4.Text = "Network Unlock code : ";
- this.progressLabel1.AutoSize = true;
- this.progressLabel1.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.progressLabel1.Location = new Point(14, 0x31);
- this.progressLabel1.Name = "progressLabel1";
- this.progressLabel1.Size = new Size(0x7d, 15);
- this.progressLabel1.TabIndex = 7;
- this.progressLabel1.Text = "Progress Completed .";
- this.progressBar1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
- this.progressBar1.Location = new Point(0xe3, 0x29);
- this.progressBar1.Name = "progressBar1";
- this.progressBar1.Size = new Size(0x187, 0x17);
- this.progressBar1.TabIndex = 8;
- this.pattern1Textbox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
- this.pattern1Textbox.Font = new Font("Consolas", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.pattern1Textbox.Location = new Point(0x4a, 0x51);
- this.pattern1Textbox.Name = "pattern1Textbox";
- this.pattern1Textbox.Size = new Size(0x2d8, 0x17);
- this.pattern1Textbox.TabIndex = 9;
- this.pattern2Textbox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
- this.pattern2Textbox.Font = new Font("Consolas", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.pattern2Textbox.Location = new Point(0x4a, 0x73);
- this.pattern2Textbox.Name = "pattern2Textbox";
- this.pattern2Textbox.Size = new Size(0x2d8, 0x17);
- this.pattern2Textbox.TabIndex = 10;
- this.logTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
- this.logTextBox.Location = new Point(13, 0x93);
- this.logTextBox.Name = "logTextBox";
- this.logTextBox.Size = new Size(0x315, 0x121);
- this.logTextBox.TabIndex = 11;
- this.logTextBox.Text = "";
- this.outputTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
- this.outputTextBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.outputTextBox.Location = new Point(0x1f1, 0x1c7);
- this.outputTextBox.Name = "outputTextBox";
- this.outputTextBox.Size = new Size(0xe5, 0x1a);
- this.outputTextBox.TabIndex = 12;
- this.label5.AutoSize = true;
- this.label5.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label5.Location = new Point(13, 0x1ec);
- this.label5.Name = "label5";
- this.label5.Size = new Size(0x30f, 20);
- this.label5.TabIndex = 13;
- this.label5.Text = "---------------------------------------------------------------------------------------------------------------------------------";
- this.button1.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button1.Location = new Point(0x81, 530);
- this.button1.Name = "button1";
- this.button1.Size = new Size(0x52, 30);
- this.button1.TabIndex = 14;
- this.button1.Text = "1:- select";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new EventHandler(this.button1_Click);
- this.label6.AutoSize = true;
- this.label6.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.label6.Location = new Point(14, 0x21b);
- this.label6.Name = "label6";
- this.label6.Size = new Size(0x6d, 15);
- this.label6.TabIndex = 15;
- this.label6.Text = "For OEM Code ......";
- this.button2.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button2.Location = new Point(0xe3, 530);
- this.button2.Name = "button2";
- this.button2.Size = new Size(0x89, 30);
- this.button2.TabIndex = 0x10;
- this.button2.Text = "2:- Click here to detect";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new EventHandler(this.detectButton_Click);
- this.button3.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
- this.button3.Location = new Point(370, 530);
- this.button3.Name = "button3";
- this.button3.Size = new Size(0x89, 30);
- this.button3.TabIndex = 0x11;
- this.button3.Text = "3:- Calculate";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new EventHandler(this.calcButton_Click);
- this.label8.AutoSize = true;
- this.label8.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.label8.Location = new Point(0x210, 0x219);
- this.label8.Name = "label8";
- this.label8.Size = new Size(0x52, 15);
- this.label8.TabIndex = 0x13;
- this.label8.Text = "Oem Code :";
- this.oemTextBox.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
- this.oemTextBox.Location = new Point(0x268, 0x214);
- this.oemTextBox.Name = "oemTextBox";
- this.oemTextBox.Size = new Size(0xba, 0x1a);
- this.oemTextBox.TabIndex = 20;
- this.button4.Location = new Point(0x299, 0x15);
- this.button4.Name = "button4";
- this.button4.Size = new Size(0x89, 0x2b);
- this.button4.TabIndex = 0x15;
- this.button4.Text = "For More Info";
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new EventHandler(this.button4_Click);
- base.AutoScaleDimensions = new SizeF(6f, 13f);
- base.AutoScaleMode = AutoScaleMode.Font;
- this.BackColor = SystemColors.InactiveCaption;
- base.ClientSize = new Size(0x32e, 0x23c);
- base.Controls.Add(this.button4);
- base.Controls.Add(this.oemTextBox);
- base.Controls.Add(this.label8);
- base.Controls.Add(this.button3);
- base.Controls.Add(this.button2);
- base.Controls.Add(this.label6);
- base.Controls.Add(this.button1);
- base.Controls.Add(this.label5);
- base.Controls.Add(this.outputTextBox);
- base.Controls.Add(this.logTextBox);
- base.Controls.Add(this.pattern2Textbox);
- base.Controls.Add(this.pattern1Textbox);
- base.Controls.Add(this.progressBar1);
- base.Controls.Add(this.progressLabel1);
- base.Controls.Add(this.label4);
- base.Controls.Add(this.calcButton);
- base.Controls.Add(this.detectButton);
- base.Controls.Add(this.portComboBox);
- base.Controls.Add(this.label3);
- base.Controls.Add(this.label2);
- base.Controls.Add(this.label1);
- base.FormBorderStyle = FormBorderStyle.FixedDialog;
- base.Icon = (Icon) manager.GetObject("$this.Icon");
- base.MaximizeBox = false;
- this.MinimumSize = new Size(830, 0x263);
- base.Name = "Form1";
- base.StartPosition = FormStartPosition.CenterScreen;
- this.Text = "Huawei Unlock V4 Calculator ---------- updated By Salluhassan";
- base.Activated += new EventHandler(this.Form1_Activated);
- base.ResumeLayout(false);
- base.PerformLayout();
- }
- private void portComboBox_DropDown(object sender, EventArgs e)
- {
- this.AddPortsToComboBox(SerialPort.GetPortNames());
- }
- private void PrintDeviceInfo(string portName)
- {
- string str = "";
- string str2 = "";
- string str3 = "";
- string str4 = "";
- string str5 = "";
- string str6 = "";
- string str7 = "";
- string str8 = "";
- string str9 = "";
- this.logTextBox.AppendText("Found device.. Hurray! :\n\n");
- this.logTextBox.Update();
- string str10 = SendCommand("ATI");
- str = this.FindSubstring(str10, "Model", "\r\n");
- str2 = this.FindSubstring(str10, "IMEI", "\r\n");
- this.logTextBox.AppendText(str + "\n");
- this.logTextBox.AppendText(str2 + "\n");
- this.logTextBox.Update();
- str3 = SendCommand("AT^SN");
- this.logTextBox.AppendText(this.FindSubstring(str3, "SN", "\r\n").Replace("SN:", "S/N: ") + "\n");
- this.logTextBox.Update();
- string str11 = SendCommand("AT^VERSION?");
- str4 = this.FindSubstring(str11, "^VERSION:EXTD:", "\r\n").Replace("^VERSION:EXTD:", "Dashboard version: ");
- str5 = this.FindSubstring(str11, "^VERSION:EXTS:", "\r\n").Replace("^VERSION:EXTS:", "Firmware version: ");
- str6 = this.FindSubstring(str11, "^VERSION:EXTH:", "\r\n").Replace("^VERSION:EXTH:", "Hardware version: ");
- str7 = this.FindSubstring(str11, "^VERSION:BDT:", "\r\n").Replace("^VERSION:BDT:", "Build date/time: ");
- this.logTextBox.AppendText(str4 + "\n");
- this.logTextBox.AppendText(str5 + "\n");
- this.logTextBox.AppendText(str6 + "\n");
- this.logTextBox.AppendText(str7 + "\n");
- this.logTextBox.Update();
- string str12 = SendCommand("AT^CARDLOCK?");
- str12 = this.FindSubstring(str12, "CARDLOCK:", "\r\n").Replace("CARDLOCK: ", "");
- char ch = str12[0];
- switch (ch.ToString())
- {
- case "2":
- str8 = "SIM lock status: Locked";
- break;
- case "1":
- str8 = "SIM lock status: Unlocked";
- break;
- }
- str9 = this.FindSubstring(str12, ",", ",").Replace(",", "");
- str9 = "Attempts to enter: " + str9;
- this.logTextBox.AppendText(str8 + "\n");
- this.logTextBox.AppendText(str9 + "\n");
- }
- private void readButton_Click(object sender, EventArgs e)
- {
- }
- private void SelectPortInComboBox(string port)
- {
- if (this.portComboBox.Items.Contains(port))
- {
- int index = this.portComboBox.Items.IndexOf(port);
- this.portComboBox.SelectedIndex = index;
- }
- }
- private static string SendCommand(string text)
- {
- string str = "";
- if (port.IsOpen)
- {
- port.Write(text + "\r\n");
- Thread.Sleep(500);
- str = port.ReadExisting() + "\n";
- }
- return str;
- }
- private static bool TryOpenPort(string portName)
- {
- if (port.IsOpen)
- {
- port.Close();
- }
- port.BaudRate = 0x2580;
- port.DataBits = 8;
- port.StopBits = StopBits.One;
- port.Parity = Parity.Odd;
- port.ReadTimeout = 500;
- port.WriteTimeout = 500;
- port.Encoding = Encoding.GetEncoding("windows-1251");
- port.PortName = portName;
- try
- {
- port.Open();
- return true;
- }
- catch
- {
- return false;
- }
- }
- private string TryReadPort(string portName)
- {
- if (TryOpenPort(portName))
- {
- string str = "";
- if (oemCode == 1)
- {
- str = SendCommand("AT^NVRDEX=50502,0,128");
- }
- else
- {
- str = SendCommand("AT^NVRDEX=50503,0,128");
- }
- if (str.Contains("^NVRDEX:"))
- {
- int index = str.IndexOf("^NVRDEX:");
- return str.Substring(index, 0x194);
- }
- }
- return null;
- }
- }
- }
Add Comment
Please, Sign In to add comment