C# WPF 读写CAN数据

devtools/2024/9/18 12:41:51/ 标签: c#, wpf, 开发语言

C# WPF 读写CAN数据

CAN 分析仪

在这里插入图片描述

分析仪资料下载

官方地址:https://www.zhcxgd.com/1.html

CSDN:

项目配置

复制Dll库文件

文件在上面的资料里面

在这里插入图片描述

设置不安全代码

在这里插入图片描述

CAN C#工具类

CAN_Tool.cs

using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Threading;namespace CAN_TEST.tool
{/*------------兼容ZLG的数据类型---------------------------------*///1.ZLGCAN系列接口卡信息的数据类型。//public struct VCI_BOARD_INFO //{ //    public UInt16 hw_Version;//    public UInt16 fw_Version;//    public UInt16 dr_Version;//    public UInt16 in_Version;//    public UInt16 irq_Num;//    public byte   can_Num;//    [MarshalAs(UnmanagedType.ByValArray, SizeConst=20)] public byte []str_Serial_Num;//    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 40)]//    public byte[] str_hw_Type;//    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]//    public byte[] Reserved;//}//以下为简易定义与调用方式,在项目属性->生成->勾选使用不安全代码即可unsafe public struct VCI_BOARD_INFO//使用不安全代码{public UInt16 hw_Version;public UInt16 fw_Version;public UInt16 dr_Version;public UInt16 in_Version;public UInt16 irq_Num;public byte can_Num;public fixed byte str_Serial_Num[20];public fixed byte str_hw_Type[40];public fixed byte Reserved[8];}///2.定义CAN信息帧的数据类型。unsafe public struct VCI_CAN_OBJ  //使用不安全代码{public uint ID;public uint TimeStamp;        //时间标识public byte TimeFlag;         //是否使用时间标识public byte SendType;         //发送标志。保留,未用public byte RemoteFlag;       //是否是远程帧public byte ExternFlag;       //是否是扩展帧public byte DataLen;          //数据长度public fixed byte Data[8];    //数据public fixed byte Reserved[3];//保留位}//3.定义初始化CAN的数据类型public struct VCI_INIT_CONFIG{public UInt32 AccCode;public UInt32 AccMask;public UInt32 Reserved;public byte Filter;   //0或1接收所有帧。2标准帧滤波,3是扩展帧滤波。public byte Timing0;  //波特率参数,具体配置,请查看二次开发库函数说明书。public byte Timing1;public byte Mode;     //模式,0表示正常模式,1表示只听模式,2自测模式}/*------------其他数据结构描述---------------------------------*///4.USB-CAN总线适配器板卡信息的数据类型1,该类型为VCI_FindUsbDevice函数的返回参数。public struct VCI_BOARD_INFO1{public UInt16 hw_Version;public UInt16 fw_Version;public UInt16 dr_Version;public UInt16 in_Version;public UInt16 irq_Num;public byte can_Num;public byte Reserved;[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] public byte[] str_Serial_Num;[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]public byte[] str_hw_Type;[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]public byte[] str_Usb_Serial;}/*------------数据结构描述完成---------------------------------*/public struct CHGDESIPANDPORT{[MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]public byte[] szpwd;[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]public byte[] szdesip;public Int32 desport;public void Init(){szpwd = new byte[10];szdesip = new byte[20];}}public class CAN_Tool{const int DEV_USBCAN = 3;const int DEV_USBCAN2 = 4;/// <summary>/// /// </summary>/// <param name="DeviceType"></param>/// <param name="DeviceInd"></param>/// <param name="Reserved"></param>/// <returns></returns>/*------------兼容ZLG的函数描述---------------------------------*//*------------兼容ZLG的函数描述---------------------------------*/[DllImport("controlcan.dll")]public static extern UInt32 VCI_OpenDevice(UInt32 DeviceType, UInt32 DeviceInd, UInt32 Reserved);[DllImport("controlcan.dll")]public static extern UInt32 VCI_CloseDevice(UInt32 DeviceType, UInt32 DeviceInd);[DllImport("controlcan.dll")]public static extern UInt32 VCI_InitCAN(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd, ref VCI_INIT_CONFIG pInitConfig);[DllImport("controlcan.dll")]public static extern UInt32 VCI_ReadBoardInfo(UInt32 DeviceType, UInt32 DeviceInd, ref VCI_BOARD_INFO pInfo);[DllImport("controlcan.dll")]public static extern UInt32 VCI_GetReceiveNum(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd);[DllImport("controlcan.dll")]public static extern UInt32 VCI_ClearBuffer(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd);[DllImport("controlcan.dll")]public static extern UInt32 VCI_StartCAN(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd);[DllImport("controlcan.dll")]public static extern UInt32 VCI_ResetCAN(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd);[DllImport("controlcan.dll")]public static extern UInt32 VCI_Transmit(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd, ref VCI_CAN_OBJ pSend, UInt32 Len);[DllImport("controlcan.dll")]public static extern UInt32 VCI_Receive(UInt32 DeviceType, UInt32 DeviceInd, UInt32 CANInd, ref VCI_CAN_OBJ pReceive, UInt32 Len, Int32 WaitTime);/*------------其他函数描述---------------------------------*/[DllImport("controlcan.dll")]public static extern UInt32 VCI_ConnectDevice(UInt32 DevType, UInt32 DevIndex);[DllImport("controlcan.dll")]public static extern UInt32 VCI_UsbDeviceReset(UInt32 DevType, UInt32 DevIndex, UInt32 Reserved);[DllImport("controlcan.dll")]public static extern UInt32 VCI_FindUsbDevice2(ref VCI_BOARD_INFO pInfo);/*------------函数描述结束---------------------------------*/static UInt32 m_bOpen = 0;static UInt32 m_devind = 0;static UInt32 m_canind = 0;static UInt32[] m_arrdevtype = new UInt32[20];static VCI_CAN_OBJ[] m_recobj = new VCI_CAN_OBJ[1000];static UInt32 m_devtype = 4;//USBCAN2//this.timer_rec = new System.Windows.Forms.Timer(this.components);public static void init(){m_arrdevtype[2] = 3;m_arrdevtype[3] = 4;}public static void close_CAN(){CAN_Tool.VCI_CloseDevice(m_devtype, m_devind);m_bOpen = 0;}public static void start_CAN(){if (m_bOpen == 0)return;CAN_Tool.VCI_StartCAN(m_devtype, m_devind, m_canind);}unsafe public static string can_send(string can_data_idText,string can_send_data){if (m_bOpen == 0){MessageBox.Show("CAN断开连接", "错误");return null;}VCI_CAN_OBJ sendobj = new VCI_CAN_OBJ();//sendobj.Init();sendobj.RemoteFlag = (byte)0;sendobj.ExternFlag = (byte)0;sendobj.ID = System.Convert.ToUInt32("0x" + can_data_idText, 16);int len = (can_send_data.Length + 1) / 3;sendobj.DataLen = System.Convert.ToByte(len);String strdata = can_send_data;//MessageBox.Show(strdata);int i = -1;if (i++ < len - 1)sendobj.Data[0] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[1] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[2] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[3] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[4] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[5] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[6] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (i++ < len - 1)sendobj.Data[7] = System.Convert.ToByte("0x" + strdata.Substring(i * 3, 2), 16);if (CAN_Tool.VCI_Transmit(m_devtype, m_devind, m_canind, ref sendobj, 1) == 0){MessageBox.Show("发送失败", "错误");return null;}else{return "TX   帧ID:" + can_data_idText + " 数据:  " + can_send_data;}}public static string connect_CAN(int CAN_Type, int CAN_id,int RUN_mod){//以下两行为多卡同机测试代码,用来获取序列号与对应的设备索引号,单卡可以不使用。VCI_BOARD_INFO[] vbi2 = new VCI_BOARD_INFO[50];uint num1 = CAN_Tool.VCI_FindUsbDevice2(ref vbi2[0]);m_devtype = m_arrdevtype[CAN_Type + 2];m_devind = 0;m_canind = (UInt32)CAN_id;if (CAN_Tool.VCI_OpenDevice(m_devtype, m_devind, 0) == 0){MessageBox.Show("打开设备失败,请检查设备类型和设备索引号是否正确", "错误");m_bOpen = 0;return "";}m_bOpen = 1;VCI_INIT_CONFIG config = new VCI_INIT_CONFIG();config.AccCode = System.Convert.ToUInt32("0x" + "00000000", 16);config.AccMask = System.Convert.ToUInt32("0x" + "FFFFFFFF", 16);config.Timing0 = System.Convert.ToByte("0x" + "00", 16);config.Timing1 = System.Convert.ToByte("0x" + "1C", 16);config.Filter = (Byte)(0 + 1);config.Mode = (Byte)RUN_mod;CAN_Tool.VCI_InitCAN(m_devtype, m_devind, m_canind, ref config);return m_bOpen == 0 ? "断开" : "连接";}unsafe public static string TimerRecTick(){UInt32 res = new UInt32();res = CAN_Tool.VCI_Receive(m_devtype, m_devind, m_canind, ref m_recobj[0], 1000, 100);///IntPtr[] ptArray = new IntPtr[1];//ptArray[0] = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(VCI_CAN_OBJ)) * 50);//IntPtr pt = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(IntPtr)) * 1);//Marshal.Copy(ptArray, 0, pt, 1);//MessageBox.Show(res+"");//res = VCI_Receive(m_devtype, m_devind, m_canind, pt, 50/*50*/, 100);if (res == 0xFFFFFFFF) res = 0;//当设备未初始化时,返回0xFFFFFFFF,不进行列表显示。String str = "";for (UInt32 i = 0; i < res; i++){//VCI_CAN_OBJ obj = (VCI_CAN_OBJ)Marshal.PtrToStructure((IntPtr)((UInt32)pt + i * Marshal.SizeOf(typeof(VCI_CAN_OBJ))), typeof(VCI_CAN_OBJ));str = "RX: ";str += "  帧ID:0x" + System.Convert.ToString(m_recobj[i].ID, 16);str += "  帧格式:";if (m_recobj[i].RemoteFlag == 0)str += "数据帧 ";elsestr += "远程帧 ";if (m_recobj[i].ExternFlag == 0)str += "标准帧 ";elsestr += "扩展帧 ";//if (m_recobj[i].RemoteFlag == 0){str += "数据: ";byte len = (byte)(m_recobj[i].DataLen % 9);byte j = 0;fixed (VCI_CAN_OBJ* m_recobj1 = &m_recobj[i]){if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[0], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[1], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[2], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[3], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[4], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[5], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[6], 16);if (j++ < len)str += " " + System.Convert.ToString(m_recobj1->Data[7], 16);}}return str + "\n";}return null;}}
}

主界面

在这里插入图片描述

MainWindow.xaml

<Window x:Class="CAN_TEST.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"mc:Ignorable="d"Title="CAN测试" Height="600" Width="400"><Grid><StackPanel><StackPanel Orientation="Horizontal" Height="30" Margin="0,20,0,0"><Button Margin="10,0,0,0" Click="connect_CAN" Width="100">连接分析仪</Button><Button Margin="20,0,0,0" Click="close_CAN"  Width="100">断开分析仪</Button><Button Margin="20,0,0,0" Click="start_CAN"  Width="100">启动CAN</Button></StackPanel><StackPanel Orientation="Horizontal" Height="30" Margin="0,20,0,0"><StackPanel Orientation="Horizontal" Margin="20,0,0,0"><TextBlock>CAN类型</TextBlock><ComboBox HorizontalAlignment="Center" Width="100" Margin="20,0,0,0" x:Name="CAN_Type"><ComboBoxItem>USBCAN V1</ComboBoxItem><ComboBoxItem>USBCAN V2</ComboBoxItem></ComboBox></StackPanel><StackPanel Orientation="Horizontal" Margin="20,0,0,0"><TextBlock>CAN通道</TextBlock><ComboBox HorizontalAlignment="Center" Width="100" Margin="20,0,0,0"  x:Name="CAN_id"><ComboBoxItem>CAN1</ComboBoxItem><ComboBoxItem>CAN2</ComboBoxItem></ComboBox></StackPanel></StackPanel><StackPanel Orientation="Horizontal" Height="30" Margin="0,20,0,0"><StackPanel Orientation="Horizontal" Margin="20,0,0,0"><TextBlock>CAN运行模式</TextBlock><ComboBox HorizontalAlignment="Center" Width="100" Margin="20,0,0,0"  x:Name="RUN_mod"><ComboBoxItem>正常</ComboBoxItem><ComboBoxItem>只听</ComboBoxItem><ComboBoxItem>自测</ComboBoxItem></ComboBox></StackPanel><TextBlock Margin="20,0,0,0">连接状态:</TextBlock><TextBlock Text="断开" x:Name="CAN_statusText"></TextBlock></StackPanel><StackPanel Orientation="Horizontal"><StackPanel Orientation="Vertical"  Width="300"  Margin="0,10,0,0"><TextBlock TextAlignment="Center">数据发送</TextBlock><StackPanel Orientation="Horizontal" Margin="0,10,0,0"><TextBlock  TextAlignment="Center" Margin="20,0,0,0">帧ID:</TextBlock><TextBox Width="200" Margin="33,0,0,0"  x:Name="can_data_id" Text="00000123"></TextBox></StackPanel><StackPanel Orientation="Horizontal" Margin="0,10,0,0"><TextBlock  TextAlignment="Center" Margin="20,0,0,0">发送数据:</TextBlock><TextBox Width="200" Margin="10,0,0,0"  x:Name="can_send_data" Text="00 01 02 03 04 05 06 07 "></TextBox></StackPanel><Button Width="50"  Margin="0,10,0,0" Click="can_send">发送</Button></StackPanel></StackPanel><StackPanel Orientation="Horizontal"><TextBlock TextAlignment="Center">数据接收</TextBlock></StackPanel><StackPanel Orientation="Horizontal"><TextBox Width="350" Height="200" Margin="10,0,0,0" VerticalScrollBarVisibility="Visible" MaxLines="5" x:Name="resData" TextWrapping="Wrap"></TextBox></StackPanel></StackPanel></Grid>
</Window>

MainWindow.xaml.cs

using CAN_TEST.tool;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Configuration;
using System.Runtime.InteropServices;
using System.Text;
using System.Timers;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using static CAN_TEST.MainWindow;namespace HZFM_TEST
{/// <summary>/// Interaction logic for MainWindow.xaml/// </summary>public partial class MainWindow : Window{DispatcherTimer m_timer = new DispatcherTimer();public MainWindow(){InitializeComponent();// 初始化CANCAN_Tool.init();// 启动定时器m_timer.Interval = TimeSpan.FromSeconds(0.2);m_timer.Tick += new System.EventHandler(timer_rec_Tick);}private void close_CAN(object sender, RoutedEventArgs e){// 关闭CANCAN_Tool.close_CAN();}private void start_CAN(object sender, RoutedEventArgs e){// 启动CANCAN_Tool.start_CAN();}private void connect_CAN(object sender, RoutedEventArgs e){	// 连接CAN分析仪string outData = CAN_Tool.connect_CAN(CAN_Type.SelectedIndex,  CAN_id.SelectedIndex, RUN_mod.SelectedIndex);if(outData.Length > 0){m_timer.Start();}CAN_statusText.Text = outData;}// 定时收数据任务unsafe private void timer_rec_Tick(object sender, EventArgs e){string res = CAN_Tool.TimerRecTick();if(res != null){resData.AppendText(res + "\r\n");}}// 发送惨数据unsafe private void can_send(object sender, RoutedEventArgs e){string res = CAN_Tool.can_send(can_data_id.Text, can_send_data.Text);if (res != null){resData.AppendText(res + "\r\n");}}// 读取数据private void read_Data(object sender, RoutedEventArgs e){Button btn = sender as Button;int id = int.Parse(btn.CommandParameter.ToString()) + 1;string res = CAN_Tool.can_send("01800300", can_send_data.Text);if (res != null){resData.AppendText(res + "\r\n");}}}
}

http://www.ppmy.cn/devtools/54083.html

相关文章

idea导入文件里面的子模块maven未识别处理解决办法

1、File → Project Structure → 点击“Modules” → 点击“” → “Import Model” 2、可以看到很多子模块&#xff0c;选择子模块下的 pom.xml 文件导入一个一个点累死了&#xff0c;父目录下也没有pom文件 解决办法&#xff1a;找到子模块中有一个pom.xml文件&#xff0c;…

Dell戴尔灵越Inspiron 16 Plus 7640/7630笔记本电脑原装Windows11下载,恢复出厂开箱状态预装OEM系统

灵越16P-7630系统包: 链接&#xff1a;https://pan.baidu.com/s/1Rve5_PF1VO8kAKnAQwP22g?pwdjyqq 提取码&#xff1a;jyqq 灵越16P-7640系统包: 链接&#xff1a;https://pan.baidu.com/s/1B8LeIEKM8IF1xbpMVjy3qg?pwdy9qj 提取码&#xff1a;y9qj 戴尔原装WIN11系…

node通过axios调用realworld接口

安装axios pnpm install axios调用Realworld接口 接口文档如下&#xff1a; https://main--realworld-docs.netlify.app/docs/specs/backend-specs/endpoints const axios require(axios); let token const instance axios.create({baseURL: https://api.realworld.io/…

Vue3 + TS + Antd + Pinia 从零搭建后台系统(四) ant-design-vue Layout布局,导航栏,标签页

书接上回本篇主要介绍&#xff1a; Layout布局&#xff0c;导航栏&#xff0c;标签页继续填充目录 按需引入组件Layout布局&#xff0c;导航栏&#xff0c;标签页css样式 按需引入组件 使用unplugin-vue-components插件完成ant-design-vue组件的按需加载。 前文中已处理过&…

华为HCIP Datacom H12-821 卷6

1.单选题 下面是一台路由器的部分配置,关于该部分配置描述正确的是,[HUAWEllJip ip-prefix plpermit 10.0.192.0 8 greater-equal 17 less-equal 18 A、10.0.192.0/8 网段内,掩码长度为 20 的路由会匹配到该前缀列表,匹配规则为允许 B、10.0.192.0/8 网段内,掩码长度为…

CompletableFuture 基本用法

一、 CompletableFuture简介 CompletableFuture 是 Java 8 引入的一个功能强大的类&#xff0c;用于异步编程和并发处理。它提供了丰富的 API 来处理异步任务的结果&#xff0c;支持函数式编程风格&#xff0c;并允许通过链式调用组合多个异步操作。 二、CompletableFuture中…

有哪些零售O2O应用模式?如何构建O2O闭环生态系统?

在零售业的演变历程中&#xff0c;O2O模式的兴起标志着一个新时代的开始。这种模式以其创新性&#xff0c;将线上的便捷与线下的实体体验完美融合&#xff0c;为消费者带来了前所未有的购物便利和体验丰富性。随着技术的不断进步和消费者需求的日益多样化&#xff0c;O2O模式已…

AI推介-大语言模型LLMs论文速览(arXiv方向):2024.06.01-2024.06.05

文章目录&#xff5e; 1.Wings: Learning Multimodal LLMs without Text-only Forgetting2.Pre-trained Large Language Models Use Fourier Features to Compute Addition3.LLM-based Rewriting of Inappropriate Argumentation using Reinforcement Learning from Machine Fe…

Windows Server 2022 中文版、英文版下载 (updated Jun 2024)

Windows Server 2022 中文版、英文版下载 (updated Jun 2024) Windows Server 2022 x64, Version 21H2 请访问原文链接&#xff1a;https://sysin.org/blog/windows-server-2022/&#xff0c;查看最新版。原创作品&#xff0c;转载请保留出处。 作者主页&#xff1a;sysin.o…

transdreamer 论文阅读笔记

这篇文章是对dreamer系列的改进&#xff0c;是一篇world model 的论文改进点在于&#xff0c;dreamer用的是循环神经网络&#xff0c;本文想把它改成transformer&#xff0c;并且希望能利用transformer实现并行训练。改成transformer的话有个地方要改掉&#xff0c;dreamer用ht…

win10环境配置ollama-ui运行llama3模型

先说我的笔记本电脑配置intel-i7-11390h,4核8处理器&#xff0c;内存16G。显卡NVIDA GeFroce MX450&#xff0c;2G显存&#xff0c;这是一台5000元左右的电脑。 我用它跑roop、sd1.5、ffusion2、ChatTTs还有pythonpytorch的自定义模型&#xff0c;现在用来跑llama3。当然&…

【CT】LeetCode手撕—42. 接雨水

目录 题目1- 思路2- 实现⭐42. 接雨水——题解思路 3- ACM实现 题目 原题连接&#xff1a;42. 接雨水 1- 思路 模式识别&#xff1a;求雨水的面积 ——> 不仅是只求一个比当前元素大的元素&#xff0c;还要求面积 单调栈 应用场景&#xff0c;需要找到左边比当前元素大的…

建造者模式(大话设计模式)C/C++版本

建造者模式 C 参考&#xff1a;https://www.cnblogs.com/Galesaur-wcy/p/15907863.html #include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std;// Product Class&#xff0c;产品类&#xff0c;由多个…

JAVA实现利用phantomjs对URL页面(网页)进行转图片保存

一、前期准备 1、下载phantomjs工具 地址&#xff1a;https://phantomjs.org/download.html 解压到指定文件夹&#xff0c;后续代码要调用该工具&#xff0c;记住路径 2、准备好模板NetToPicMoban.js 用于给phantomjs提供需要执行的js&#xff0c;具体放在那看自己的需求&…

Pentest Muse:一款专为网络安全人员设计的AI助手

关于Pentest Muse Pentest Muse是一款专为网络安全研究人员和渗透测试人员设计和开发的人工智能AI助手&#xff0c;该工具可以帮助渗透测试人员进行头脑风暴、编写Payload、分析代码或执行网络侦查任务。除此之外&#xff0c;Pentest Muse甚至还能够执行命令行代码并以迭代方式…

华为开发者大会:全场景智能操作系统HarmonyOS NEXT

文章目录 一、全场景智能操作系统 - HarmonyOS NEXT1.1 系统特性1.2 关于架构、体验和生态 二、应用案例2.1 蚂蚁mpaas平台的性能表现 三、新版本应用框架发布3.1 新语言发布3.2 新数据库发布3.3 新版本编译器的发布 四、CodeArts和DataArts4.1 CodeArts4.2 DataArts 五、总结 …

云原生-k8s中的 Tab 自动补全功能

文章目录&#xff1a; 1、首先你需要安装bash-completion&#xff0c;能够自动补全 2、配置环境变量 3、生效此配置 1、首先你需要安装bash-completion&#xff0c;能够自动补全 yum -y install bash-completion2、配置环境变量 echo source <(kubectl completion b…

Unit redis-server.service could not be found.

我的报错如下Unit redis-server.service could not be found. 关键是刷新后台服务 sudo systemctl daemon-reload启动redis-server sudo systemctl start redis-server查看redis-Server服务状态 sudo systemctl status redis-server

通过阿里云OOS定时升级Redis实例临时带宽

功能背景 在数据驱动的现代业务环境中&#xff0c;Redis以其卓越的性能和灵活性&#xff0c;已成为众多企业关键基础设施的重要组成部分。Redis广泛应用于处理缓存、会话管理、消息队列等多种数据密集型和响应敏感型的场景&#xff0c;对业务连续性和用户体验贡献极大。然而&a…

【ThreeJS】Threejs +Vue3 开发基础

目前流行的前端3D框架以以Three.js、Babylon.js、A-Frame和ThingJS为例&#xff1a; 1.Three.js 功能&#xff1a; 提供了大量的3D功能&#xff0c;包括基本几何形状、材质、灯光、动画、特效等。 易用性&#xff1a; 功能强大且易于使用&#xff0c;抽象了复杂的底层细节&…