Linux 下Sim卡识别与学习~

【回顾】Linux下基于4G模块(EC200U-CN)的串口编程——AT指令的封装以及AT指令检查SIM AT指令的封装 阅读详情
AI摘要

本文介绍在Ubuntu系统中使用特定驱动与服务配置过程,实现通过SCR80读卡器读取SIM卡信息的方法。提供了从安装环境到具体代码实现的详细步骤,包括驱动安装、服务配置及简单的APDU命令交互。

项目学习经验:本博文是采用的SCR80读卡器基于USB接口芯片是SCR80_5169,由于realtek官网没有数据手册(本人没有找到)。

只是进行了简单的摸索。

首先:下载Ubuntu 13.04.在虚拟机下安装Ubuntu。之后把必要的驱动安装好。

            需要注意的是,Ubuntu会识别俩个一个是Sim卡一个是Mass USB 需要选择USB的那个,否则读取不正常。

   驱动有libusb libccid ,还有安装服务pcscd,和pcsc-lite+ccid driver 网址:http://pcsclite.alioth.debian.org/

           libusb 和libccid 都可以用synaptic 安装,pcscd 用sudo apt-get install pcscd 即可。

           安装完成后可以用:service pcscd stop/start/restart 进行查看pcscd 服务的开启情况~ 还可以下载pcsc-tools 工具同pcscd 服务下载,安装完成后使用

           pcsc_scan 进行查看sim 卡是否能读取识别。

其次:是SIM卡文件的常识,参考文章:http://www.wuroom.com/post/22/


下面是一个简单的Demo:

主要实现ATR读取和一个APDU的测试,现在可以读取ICCID 和 电话记录,但是更新电话记录还未实现。

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <string.h>

#include <PCSC/wintypes.h>
#include <PCSC/winscard.h>
/** error codes from http://msdn.microsoft.com/en-us/library/aa924526.aspx
*/
#define SCARD_S_SUCCESS	 ((LONG)0x00000000) /**< No error was encountered. */
#define SCARD_F_INTERNAL_ERROR	 ((LONG)0x80100001) /**< An internal consistency check failed. */
#define SCARD_E_CANCELLED	 ((LONG)0x80100002) /**< The action was cancelled by an SCardCancel request. */
#define SCARD_E_INVALID_HANDLE	 ((LONG)0x80100003) /**< The supplied handle was invalid. */
#define SCARD_E_INVALID_PARAMETER	((LONG)0x80100004) /**< One or more of the supplied parameters could not be properly interpreted. */
#define SCARD_E_INVALID_TARGET	 ((LONG)0x80100005) /**< Registry startup information is missing or invalid. */
#define SCARD_E_NO_MEMORY	 ((LONG)0x80100006) /**< Not enough memory available to complete this command. */
#define SCARD_F_WAITED_TOO_LONG	 ((LONG)0x80100007) /**< An internal consistency timer has expired. */
#define SCARD_E_INSUFFICIENT_BUFFER	((LONG)0x80100008) /**< The data buffer to receive returned data is too small for the returned data. */
#define SCARD_E_UNKNOWN_READER	 ((LONG)0x80100009) /**< The specified reader name is not recognized. */
#define SCARD_E_TIMEOUT	 ((LONG)0x8010000A) /**< The user-specified timeout value has expired. */
#define SCARD_E_SHARING_VIOLATION	((LONG)0x8010000B) /**< The smart card cannot be accessed because of other connections outstanding. */
#define SCARD_E_NO_SMARTCARD	 ((LONG)0x8010000C) /**< The operation requires a Smart Card, but no Smart Card is currently in the device. */
#define SCARD_E_UNKNOWN_CARD	 ((LONG)0x8010000D) /**< The specified smart card name is not recognized. */
#define SCARD_E_CANT_DISPOSE	 ((LONG)0x8010000E) /**< The system could not dispose of the media in the requested manner. */
#define SCARD_E_PROTO_MISMATCH	 ((LONG)0x8010000F) /**< The requested protocols are incompatible with the protocol currently in use with the smart card. */
#define SCARD_E_NOT_READY	 ((LONG)0x80100010) /**< The reader or smart card is not ready to accept commands. */
#define SCARD_E_INVALID_VALUE	 ((LONG)0x80100011) /**< One or more of the supplied parameters values could not be properly interpreted. */
#define SCARD_E_SYSTEM_CANCELLED	((LONG)0x80100012) /**< The action was cancelled by the system, presumably to log off or shut down. */
#define SCARD_F_COMM_ERROR	 ((LONG)0x80100013) /**< An internal communications error has been detected. */
#define SCARD_F_UNKNOWN_ERROR	 ((LONG)0x80100014) /**< An internal error has been detected, but the source is unknown. */
#define SCARD_E_INVALID_ATR	 ((LONG)0x80100015) /**< An ATR obtained from the registry is not a valid ATR string. */
#define SCARD_E_NOT_TRANSACTED	 ((LONG)0x80100016) /**< An attempt was made to end a non-existent transaction. */
#define SCARD_E_READER_UNAVAILABLE	((LONG)0x80100017) /**< The specified reader is not currently available for use. */
#define SCARD_P_SHUTDOWN	 ((LONG)0x80100018) /**< The operation has been aborted to allow the server application to exit. */
#define SCARD_E_PCI_TOO_SMALL	 ((LONG)0x80100019) /**< The PCI Receive buffer was too small. */
#define SCARD_E_READER_UNSUPPORTED	((LONG)0x8010001A) /**< The reader driver does not meet minimal requirements for support. */
#define SCARD_E_DUPLICATE_READER	((LONG)0x8010001B) /**< The reader driver did not produce a unique reader name. */
#define SCARD_E_CARD_UNSUPPORTED	((LONG)0x8010001C) /**< The smart card does not meet minimal requirements for support. */
#define SCARD_E_NO_SERVICE	 ((LONG)0x8010001D) /**< The Smart card resource manager is not running. */
#define SCARD_E_SERVICE_STOPPED	 ((LONG)0x8010001E) /**< The Smart card resource manager has shut down. */
#define SCARD_E_UNEXPECTED	 ((LONG)0x8010001F) /**< An unexpected card error has occurred. */
#define SCARD_E_UNSUPPORTED_FEATURE	((LONG)0x8010001F) /**< This smart card does not support the requested feature. */
#define SCARD_E_ICC_INSTALLATION	((LONG)0x80100020) /**< No primary provider can be found for the smart card. */
#define SCARD_E_ICC_CREATEORDER	 ((LONG)0x80100021) /**< The requested order of object creation is not supported. */
/* #define SCARD_E_UNSUPPORTED_FEATURE	((LONG)0x80100022) / **< This smart card does not support the requested feature. */
#define SCARD_E_DIR_NOT_FOUND	 ((LONG)0x80100023) /**< The identified directory does not exist in the smart card. */
#define SCARD_E_FILE_NOT_FOUND	 ((LONG)0x80100024) /**< The identified file does not exist in the smart card. */
#define SCARD_E_NO_DIR	 ((LONG)0x80100025) /**< The supplied path does not represent a smart card directory. */
#define SCARD_E_NO_FILE	 ((LONG)0x80100026) /**< The supplied path does not represent a smart card file. */
#define SCARD_E_NO_ACCESS	 ((LONG)0x80100027) /**< Access is denied to this file. */
#define SCARD_E_WRITE_TOO_MANY	 ((LONG)0x80100028) /**< The smart card does not have enough memory to store the information. */
#define SCARD_E_BAD_SEEK	 ((LONG)0x80100029) /**< There was an error trying to set the smart card file object pointer. */
#define SCARD_E_INVALID_CHV	 ((LONG)0x8010002A) /**< The supplied PIN is incorrect. */
#define SCARD_E_UNKNOWN_RES_MNG	 ((LONG)0x8010002B) /**< An unrecognized error code was returned from a layered component. */
#define SCARD_E_NO_SUCH_CERTIFICATE	((LONG)0x8010002C) /**< The requested certificate does not exist. */
#define SCARD_E_CERTIFICATE_UNAVAILABLE	((LONG)0x8010002D) /**< The requested certificate could not be obtained. */
#define SCARD_E_NO_READERS_AVAILABLE ((LONG)0x8010002E) /**< Cannot find a smart card reader. */
#define SCARD_E_COMM_DATA_LOST	 ((LONG)0x8010002F) /**< A communications error with the smart card has been detected. Retry the operation. */
#define SCARD_E_NO_KEY_CONTAINER	((LONG)0x80100030) /**< The requested key container does not exist on the smart card. */
#define SCARD_E_SERVER_TOO_BUSY	 ((LONG)0x80100031) /**< The Smart Card Resource Manager is too busy to complete this operation. */

#define SCARD_W_UNSUPPORTED_CARD	((LONG)0x80100065) /**< The reader cannot communicate with the card, due to ATR string configuration conflicts. */
#define SCARD_W_UNRESPONSIVE_CARD	((LONG)0x80100066) /**< The smart card is not responding to a reset. */
#define SCARD_W_UNPOWERED_CARD	 ((LONG)0x80100067) /**< Power has been removed from the smart card, so that further communication is not possible. */
#define SCARD_W_RESET_CARD	 ((LONG)0x80100068) /**< The smart card has been reset, so any shared state information is invalid. */
#define SCARD_W_REMOVED_CARD	 ((LONG)0x80100069) /**< The smart card has been removed, so further communication is not possible. */

#define SCARD_W_SECURITY_VIOLATION	((LONG)0x8010006A) /**< Access was denied because of a security violation. */
#define SCARD_W_WRONG_CHV	 ((LONG)0x8010006B) /**< The card cannot be accessed because the wrong PIN was presented. */
#define SCARD_W_CHV_BLOCKED	 ((LONG)0x8010006C) /**< The card cannot be accessed because the maximum number of PIN entry attempts has been reached. */
#define SCARD_W_EOF	 ((LONG)0x8010006D) /**< The end of the smart card file has been reached. */
#define SCARD_W_CANCELLED_BY_USER	((LONG)0x8010006E) /**< The user pressed "Cancel" on a Smart Card Selection Dialog. */
#define SCARD_W_CARD_NOT_AUTHENTICATED	((LONG)0x8010006F) /**< No PIN was presented to the smart card. */

#define SCARD_AUTOALLOCATE (DWORD)(-1)	/**< see SCardFreeMemory() */
#define SCARD_SCOPE_USER	 0x0000	/**< Scope in user space */
#define SCARD_SCOPE_TERMINAL	 0x0001	/**< Scope in terminal */
#define SCARD_SCOPE_SYSTEM	 0x0002	/**< Scope in system */

#define SCARD_PROTOCOL_UNDEFINED	0x0000	/**< protocol not set */
#define SCARD_PROTOCOL_UNSET SCARD_PROTOCOL_UNDEFINED	/* backward compat */
#define SCARD_PROTOCOL_T0	 0x0001	/**< T=0 active protocol. */
#define SCARD_PROTOCOL_T1	 0x0002	/**< T=1 active protocol. */
#define SCARD_PROTOCOL_RAW	 0x0004	/**< Raw active protocol. */
#define SCARD_PROTOCOL_T15	 0x0008	/**< T=15 protocol. */

#define SCARD_PROTOCOL_ANY	 (SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1)	/**< IFD determines prot. */

#define SCARD_SHARE_EXCLUSIVE	 0x0001	/**< Exclusive mode only */
#define SCARD_SHARE_SHARED	 0x0002	/**< Shared mode only */
#define SCARD_SHARE_DIRECT	 0x0003	/**< Raw mode only */

#define SCARD_LEAVE_CARD	 0x0000	/**< Do nothing on close */
#define SCARD_RESET_CARD	 0x0001	/**< Reset on close */
#define SCARD_UNPOWER_CARD	 0x0002	/**< Power down on close */
#define SCARD_EJECT_CARD	 0x0003	/**< Eject on close */

#define SCARD_UNKNOWN	 0x0001	/**< Unknown state */
#define SCARD_ABSENT	 0x0002	/**< Card is absent */
#define SCARD_PRESENT	 0x0004	/**< Card is present */
#define SCARD_SWALLOWED	 0x0008	/**< Card not powered */
#define SCARD_POWERED	 0x0010	/**< Card is powered */
#define SCARD_NEGOTIABLE	 0x0020	/**< Ready for PTS */
#define SCARD_SPECIFIC	 0x0040	/**< PTS has been set */

#define SCARD_STATE_UNAWARE	 0x0000	/**< App wants status */
#define SCARD_STATE_IGNORE	 0x0001	/**< Ignore this reader */
#define SCARD_STATE_CHANGED	 0x0002	/**< State has changed */
#define SCARD_STATE_UNKNOWN	 0x0004	/**< Reader unknown */
#define SCARD_STATE_UNAVAILABLE	 0x0008	/**< Status unavailable */
#define SCARD_STATE_EMPTY	 0x0010	/**< Card removed */
#define SCARD_STATE_PRESENT	 0x0020	/**< Card inserted */
#define SCARD_STATE_ATRMATCH	 0x0040	/**< ATR matches card */
#define SCARD_STATE_EXCLUSIVE	 0x0080	/**< Exclusive Mode */
#define SCARD_STATE_INUSE	 0x0100	/**< Shared Mode */
#define SCARD_STATE_MUTE	 0x0200	/**< Unresponsive card */
#define SCARD_STATE_UNPOWERED	 0x0400	/**< Unpowered card */

#ifndef INFINITE
#define INFINITE	 0xFFFFFFFF	/**< Infinite timeout */
#endif
#define MAX_ATR_SIZE	 33	/**< Maximum ATR size */
#define MAX_READERNAME	 100

extern const SCARD_IO_REQUEST g_rgSCardT0Pci, g_rgSCardT1Pci, g_rgSCardRawPci;
#define SCARD_PCI_T0	(&g_rgSCardT0Pci) /**< protocol control information (PCI) for T=0 */
#define SCARD_PCI_T1	(&g_rgSCardT1Pci) /**< protocol control information (PCI) for T=1 */
#define SCARD_PCI_RAW	(&g_rgSCardRawPci) /**< protocol control information (PCI) for RAW protocol */


#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif


int main(int argc, char *argv[])
{
	LONG rv;
	SCARDCONTEXT hContext;
	DWORD dwReaders;
	LPSTR mszReaders = NULL;
	char *ptr, **readers = NULL;
	int nbReaders;
	SCARDHANDLE hCard;
	DWORD dwActiveProtocol, dwReaderLen, dwState, dwProt, dwAtrLen;
	BYTE pbAtr[MAX_ATR_SIZE] = "";
	char pbReader[MAX_READERNAME] = "";
	int reader_nb;
	unsigned int i;
	const SCARD_IO_REQUEST *pioSendPci;
	SCARD_IO_REQUEST pioRecvPci;
	BYTE pbRecvBuffer[100];
	BYTE pbSendBuffer[] = { 0xa0, 0xA4, 0x00, 0x00, 0x02, 0x3F, 0x00 };
	BYTE pbSendBuffer1[] = { 0xa0, 0xA4, 0x00, 0x00, 0x02, 0x2F, 0xe2 };
	BYTE pbSendBuffer2[] = { 0xa0, 0xb0, 0x00, 0x00, 0x0a };
	#define MF_3f00 pbSendBuffer
	#define EF_2fe2 pbSendBuffer1
	#define EF_read pbSendBuffer2
	
	DWORD dwSendLength, dwRecvLength;

	printf("PC/SC sample iccid read code\n");

	rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
	if (rv != SCARD_S_SUCCESS)
	{
		printf("SCardEstablishContext: Cannot Connect to Resource Manager %lX\n", rv);
		while(1);
	}
	

	/* Retrieve the available readers list. */
	dwReaders = SCARD_AUTOALLOCATE;
	rv = SCardListReaders(hContext, NULL, (LPSTR)&mszReaders, &dwReaders);
	

	/* Extract readers from the null separated string and get the total
	* number of readers */
	nbReaders = 0;
	ptr = mszReaders;
	while (*ptr != '\0')
	{
		ptr += strlen(ptr)+1;
		nbReaders++;
	}
	
	if (nbReaders == 0)
	{
		printf("No reader found\n");
		while(1);
	}
	
	/* allocate the readers table */
	readers = calloc(nbReaders, sizeof(char *));
	if (NULL == readers)
	{
		printf("Not enough memory for readers[]\n");
		while(1);
	}
	
	/* fill the readers table */
	nbReaders = 0;
	ptr = mszReaders;
	while (*ptr != '\0')
	{
		printf("%d: %s\n", nbReaders, ptr);
		readers[nbReaders] = ptr;
		ptr += strlen(ptr)+1;
		nbReaders++;
	}
	
	if (argc > 1)
	{
		reader_nb = atoi(argv[1]);
		if (reader_nb < 0 || reader_nb >= nbReaders)
		{
			printf("Wrong reader index: %d\n", reader_nb);
			while(1);
		}
	}
	else
		reader_nb = 0;
	
	
	/* connect to a card */
	dwActiveProtocol = -1;
	
	rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_SHARED,
	SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &hCard, &dwActiveProtocol);
	printf(" Protocol: %ld\n", dwActiveProtocol-1);//T0 T1 1,2 
	
	
	/* get card status */
	dwAtrLen = sizeof(pbAtr);
	dwReaderLen = sizeof(pbReader);
	rv = SCardStatus(hCard, /*NULL*/ pbReader, &dwReaderLen, &dwState, &dwProt,pbAtr, &dwAtrLen);
	printf(" Reader: %s (length %ld bytes)\n", pbReader, dwReaderLen);
	printf(" State: 0x%lX\n", dwState);
	printf(" Prot: %ld\n", dwProt);
	printf(" ATR (length %ld bytes):", dwAtrLen);
	for (i=0; i<dwAtrLen; i++)
		printf(" %02X", pbAtr[i]);
	printf("\n");

	switch(dwActiveProtocol)
	{
		case SCARD_PROTOCOL_T0:
														pioSendPci = SCARD_PCI_T0;
														break;
		case SCARD_PROTOCOL_T1:
														pioSendPci = SCARD_PCI_T1;
														break;
		default:
														printf("Unknown protocol\n");
														while(1);
	}
	
	/* exchange APDU */
	dwSendLength = sizeof(EF_2fe2);
	dwRecvLength = sizeof(pbRecvBuffer);
	printf("Sending: ");
	for (i=0; i<dwSendLength; i++)
	printf("%02X ", EF_2fe2[i]);
	printf("\n");
	rv = SCardTransmit(hCard, pioSendPci, EF_2fe2 , dwSendLength,
	NULL,pbRecvBuffer, &dwRecvLength);
	if(rv != SCARD_S_SUCCESS)
		printf("error of scardtransmit!\n");
	printf("Received: ");
	for (i=0; i<dwRecvLength; i++)
	printf("%02X ", pbRecvBuffer[i]);
	printf("\n");
	
	rv = SCardReconnect(hCard,SCARD_SHARE_SHARED,SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1,SCARD_LEAVE_CARD,&dwActiveProtocol);
	if(rv != SCARD_S_SUCCESS)
		printf("error of SCardReconnect!\n");
	/* exchange APDU */
	dwSendLength = sizeof(EF_read);
	dwRecvLength = sizeof(pbRecvBuffer);
	printf("Sending: ");
	for (i=0; i<dwSendLength; i++)
	printf("%02X ", EF_read[i]);
	printf("\n");
	rv = SCardTransmit(hCard, pioSendPci, EF_read , dwSendLength,
	NULL, pbRecvBuffer, &dwRecvLength);
	printf("%02X", rv);
	printf("Received: ");
	for (i=0; i<dwRecvLength; i++)
	printf("%02X ", pbRecvBuffer[i]);
	printf("\n");
	
	
	
	
	
	/* card disconnect */
	rv = SCardDisconnect(hCard, SCARD_LEAVE_CARD);
	if (readers)
	free(readers);
	/* card release */
	rv = SCardReleaseContext(hContext);
	if(rv != SCARD_S_SUCCESS)
		printf("release error!\n");
	return EXIT_SUCCESS;
	} /* main */


     

智能卡常见的报错 英文版: Error Code HRESULT value Description SCARD_F_INTERNAL_ERROR 0x80100001L An internal consistency check failed. SCARD_E_CANCELLED 0x80100002L The action was cancelled by an SCardCancel request. SCA... 阅读详情

相关推荐

swSIM全软件SIM卡模拟器与swICC驱动的编译部署实战指南

本文提供了swSIM全软件SIM卡模拟器与swICC驱动从环境准备到编译部署的完整实战指南。详细解析了在Ubuntu系统下安装核心依赖、解决编译错误、配置PC/SC驱动并最终成功运行虚拟SIM卡的关键步骤与常见问题排查方法,帮助开发者和研究人员快速搭建灵活的软件SIM卡测试环境。

weixin_29310605的博客 347

查询EC20 模块 SIM卡号iccid

设备出货后,每个里面放置一张SIM卡,生产人员在组装时会记录一个表,把设备ID和卡号对应起来 在linux嵌入式设备里,有没有办法自己查看卡号呢?有的 只主要登录设备, 输入microcom -s 115200 /dev/ttyUSB3 之后AT+CCID 就会返回CCID值 ...

Wuya Blog 1万+

天翼4gdongle linux,SIM7600X 4G DONGLE用户手册 (重定向自SIM7600CE-CNSE 4G DONGLE)

产品简介SIM7600X 4G DONGLE是一款工业级LTE 4G上网模块,支持高达150Mbps下行和50Mbps上行速率,支持Windows/Linux/Android等操作系统,可广泛适用于PC、树莓派、无人机、工控机或其他需要4G联网的工业或物联网设备中。你可以通过SIM7600X 4G DONGLE连接笔记本、平板电脑或其他工业设备,随时随地通过4G进行上网。产品选型型号GNSS适用地...

weixin_29430629的博客 1978

linux系统读sim卡信息,在Linux下使用串口读取SIM卡上的SMS消息使用C

试图通过linux中的串口读取sms消息,从一张安装在华为3g USB调制解调器内的SIM卡读取。我必须在屏幕上显示一些短信之前执行脚本。有时它显示不寻常的字符。我想要做的就是使用AT命令,c和串行端口从SIM卡中读取短信。以下是我正在使用的代码。在Linux下使用串口读取SIM卡上的SMS消息使用Cint main(){int fd;struct termios options;/* open ...

weixin_39981093的博客 697

NVIDIA Isaac Sim:面向机器人学习的GPU原生仿真操作系统

机器人仿真不再只是视觉验证或动力学近似,而是支撑强化学习、模仿学习与世界模型训练的底层基础设施。其核心在于将物理求解、传感器建模、场景构建与策略训练全面GPU化——基于PhysX GPU版的并行场计算实现亚毫米级精度与纳秒级步长可控;依托Omniverse Replicator的光子级成像链路,生成符合真实噪声谱的RGB-D/事件流数据;以USD为统一场景语言,支持变体管理、多实例共享与硬件在环无缝切换;更通过Isaac Lab内置训练框架,达成环境-策略-奖励全链路CUDA加速。这种‘仿真即训练场、训练即

weixin_30905133的博客 656

别再为Tesseract中文识别报错发愁了!手把手教你搞定chi_sim语言包和环境变量配置

本文详细解析了Tesseract中文识别报错`Failed loading language 'chi_sim'`的根源,并提供了从语言包获取、环境变量配置到Python集成的全流程解决方案。通过系统化的部署指南和实战技巧,帮助开发者快速解决Tesseract-OCR的中文识别问题,提升OCR应用的稳定性和准确性。

weixin_30279315的博客 429

Linux相对固定SIM7600 的 RNDIS IP

其实Linux 系统下,很多时候是不会主动分配IP和DNS 的,可以用 udhcpc, dhclient 等获取IP,但是也会导致IP 发生变化SIM7600 的网关是 192.168.225.1,因此随机分配 192.168.225.xxx 的IP。

qq_43231904的博客 1171

Linux下获取系统网卡信息的方法及源代码

在Linux系统中,我们经常需要获取系统中网卡的信息,例如网卡的名称、IP地址、MAC地址等。本文将介绍一种使用编程方式获取Linux系统中网卡信息的方法,并提供相应的源代码。这就是获取Linux系统中网卡信息的一种方法。你可以根据自己的需求进一步扩展代码,例如获取更多的网卡信息或将信息保存到文件中。我们可以使用C语言和系统调用来实现获取网卡信息的功能。下面是一个示例程序,可以在Linux系统上编译和运行。运行程序后,将输出系统中每个网卡的名称、IP地址和MAC地址。接下来,我们遍历接口列表,并使用。

DevRevolt的博客 360

# SIM7600CE 4G模块实战手册:从硬件到联网全链路指南

《SIM7600CE 4G模块调试指南》是一份实战手册,详细介绍了从硬件连接到网络注册的全链路调试过程。主要内容包括:硬件识别(USB接口、SIM卡槽、天线接口等)、驱动加载与串口分配、Linux权限配置与设备占用处理、minicom串口终端的使用技巧、关键AT指令速查表(含SIM卡检测、信号强度、网络注册等),以及常见问题排查方法(如无响应、信号差、SIM卡识别失败等)。文中提供了大量实用命令和调试技巧,特别适合嵌入式开发者和物联网工程师参考。

2301_76651266的博客 392

SIM7600 USB驱动 linux

开发环境 操作系统:OpenWrt(linux) 客户机:MT7688 拨号方式:NDIS------>wwan0

ubant18版本-swsim sim模拟工具

swSIM是一种全软件SIM卡。据我所知,这是第一个公开可用的SIM卡模拟器,它不依赖任何SIM硬件来工作。

sim2sim2real:三层仿真解耦破解sim2real过拟合

仿真到现实(sim2real)迁移是机器人智能体落地的核心瓶颈,其本质并非数据分布偏移,而是仿真模型与真实物理系统之间存在的结构性建模误差。传统方法将该误差误当作随机噪声处理,导致域随机化或微调效果有限。sim2sim2real范式通过构建可验证的三层解耦架构——轻量探索仿真(Sim1)、保真度可配置的误差显性化仿真(Sim2)和真实设备闭环校验(Real),实现对建模失真维度的精准定位与渐进式修正。该方法显著提升策略鲁棒性与迁移成功率,已广泛应用于工业分拣、四足导航及机械臂抓取等真实场景。

weixin_30268071的博客 648

DAP-Link DIY复刻指南

DAP-Link是ARM开源的一个项目,主要用于代码下载以及调试,支持SWD和JTAG调试接口,对于开发嵌入式的同学相信都或多或少有所耳闻。除了DAP-Link之外还有很多同类型的调试器,如ST-LinkJ-Link,但是这些都是不开源的,无法复刻或进行二次开发。但DAP-Link不同,完全开源,不用担心侵权问题,且随着开源社区大家的共同努力,DAP-Link经过了不断的迭代,先如今已取代ARM之前推出的CMSIS-DAP开源项目。

爱出名的狗腿子 1万+

嵌入式linux系统中接CAT1/CAT4模组的异常分析步骤(随笔记录)

4G通信技术是第四代移动信息系统,在嵌入式系统中应用越来越广泛,公交打卡机、自动售货机、移动多媒体播放器、地铁闸机等,都不可避免地需要远程联网通讯,可以这么说,在信息化时代、大数据时代到来的今天,联网已逐步成为了产品必要条件。   结合过去众多的调试经验以及相关记录,整理出了这篇4G模块在嵌入式板卡上的异常分析文档。参照这篇文档一步步操作,每一步都是问题解决的关键点,一个点不满足后面所有工作都是浪费时间,只有把每个步骤切切实实地测试验证成功后,后面的驱动移植才会正常。

Voice_的博客 2231

Llama模型结构拆解:为什么MLP模块要这样设计?从参数配置到计算流程全解析

本文深入解析了Llama模型MLP模块的设计精髓。通过拆解其三线性层结构、门控机制与SwiGLU激活函数,揭示了并行计算如何提升效率,并详细阐述了intermediate_size参数配置背后的经验权衡与计算考量,帮助读者透彻理解这一核心组件的设计逻辑与工程实现。

mac99的博客 531

从零到一:手把手部署用友T3标准版11.2及SQL Server 2008R2环境

本文详细介绍了从零开始部署用友T3标准版11.2及SQL Server 2008R2环境的完整流程,包括环境准备、SQL Server安装、环境检测与修复、T3标准版安装实战以及初始化配置与测试。通过手把手的步骤指导和常见问题解决方案,帮助用户顺利完成部署,确保系统稳定运行。

weixin_28339967的博客 473

mysql与sim900a_sim900a的应用,基于SIM900A-GPRS模块的远程文件传输实例

SIM900A是一个比较实用的GPRS模块,进行简单的配置就可以进行用于数据传输,配置使用AT指令进行交互,用GPRS远程传输数据时,有两种方式,一种是正常的模式,没法送一次要发送0x1a来开启数据发送,另一种方式透传模式,设置好了之后,可以一直往模块来发送数据,模块会自动将缓冲区中的数据发送出去,但最后还要发送+++来退出透传数据模式,回到正常模式。SIM900A模块主要特点:SMT封装:易于客...

weixin_30000407的博客 448

【G4基础03】2.3 How to Specify Materials in the Detector

定义探测器材料

adelall的博客 491

Isaac Sim安装配置实战:Ubuntu显卡驱动与启动避坑指南

机器人仿真与数字孪生技术正成为算法验证的重要基础设施,而 NVIDIA Isaac Sim 作为基于 Omniverse Kit 的高保真仿真平台,其运行依赖显卡驱动、CUDA 等底层环境的精确匹配。许多开发者在 Ubuntu 系统上安装 Isaac Sim 时,常因驱动版本、内核模块或 Python 环境不一致而启动失败。从环境匹配原理出发,系统性讲解 NVIDIA 驱动准备、两种主流安装方式(Omniverse Launcher 与 pip/conda)、启动验证及缓存清理等实践要点,帮助仿真开发者在导

weixin_33860528的博客 426

骁龙X Elite笔记本重装Windows 11 Arm64系统完整指南与避坑手册

UEFI安全启动和Arm64架构是理解现代计算设备系统部署的基础。UEFI取代传统BIOS,提供了更安全的启动环境和模块化固件接口,而Arm64架构则以其高能效特性,在移动和新兴PC领域日益重要。其技术价值在于为设备带来更快的启动速度、更强的安全防护以及更优的功耗表现。在应用场景上,这直接关系到搭载高通骁龙X Elite等Arm处理器的笔记本电脑的系统安装与维护。对于这类设备,重装系统远非插入通用安装盘那么简单,核心挑战在于必须使用专为Arm64编译的Windows镜像,并需提前集成芯片组、网络等硬件的专属

weixin_33428613的博客 502

STM32F103RC学习(一)

STM32F103RC学习(一)

Cat_South_North的博客 6061

Ubuntu22.04 安装 Isaac_sim5.0.0 配置过程记录

isaacsim本地资产 必须配置,否则访问的创建的仿真环境中的资产文件都是实时访问官方云端(美国),会导致帧率非常低!第一次启动 ROS Bridge Extension 要选择上如下的ros2.bridge。:50 系显卡需选择 CUDA 12.8 或更高版本的 Toolkit。Isaac Sim 是重度依赖实时性的应用,建议配置为性能模式。文件使得Isaac Sim能正确加载Asset(注意要把所有。若显示类似如下图,powersave表示的是省电模式。替换为自己的用户名,然后版本也需要对应)

gene's blog 2082

【Java设计模式】Java设计模式之(一)单例模式(Singleton Pattern)

本文继续介绍23种设计模式详解系列之单例模式。 一、单例模式的定义 指一个类只有一个实例,且该类能自行创建这个实例的一种模式。 二、单例模式的常见例子 Windows 中只能打开一个任务管理器,这样可以避免因打开多个任务管理器窗口而造成内存资源的浪费,或出现各个窗口显示内容的不一致等错误;在计算机系统中,还有 Windows 的回收站、操作系统中的文件系统、多线程中的线程池、显卡的驱动程序对象、打印机的后台处理服务、应用程序的日志对象、数据库的连接池、网站的计数器、Web 应用的配置对象、应用程序中

No8g攻城狮的博客 988

UOS 系统使用 SIM7600CE 4G 模块:1

《UOS系统使用SIM7600CE 4G模块全流程指南》摘要: 本文详细介绍了在统信UOS系统下配置SIM7600CE 4G模块的完整流程,包含硬件连接、系统配置和网络拨号三大部分。首先需开启开发者模式获取root权限,然后正确安装SIM卡和天线,通过lsusb/dmesg命令验证设备识别。针对虚拟机环境特别说明USB设备挂载方法。核心部分包含使用minicom进行AT指令测试(AT+CSQ/AT+CREG?等),以及配置PPP拨号(创建chat脚本和peer配置)。文末提供常用命令速查表,涵盖设备识别、软

2301_76651266的博客 266

PMP–一、二、三模–分类–13.干系人管理

A:确认是否已制定沟通管理计划,使业务干系人认识到项目的成功之处。B:让业务干系人参加冲刺回顾会议。C:与发起人和关键干系人一起确定产品待办事项列表中的优先要务,以便交付商业利益。D:为关键干系人开展收尾调研。C。

stqer的博客 1421

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

Ubuntu下Isaac Sim安装配置:NVIDIA驱动与踩坑实战

机器人仿真作为现代AI与自动化领域的关键技术,其逼真程度与运行效率高度依赖GPU并行计算能力。NVIDIA Isaac Sim基于Omniverse平台,通过CUDA、OptiX与PhysX实现渲染与物理仿真的深度融合,而这一切需要正确安装并配置NVIDIA驱动作为底层支撑。本文从Ubuntu环境出发,系统介绍驱动选型、安装验证、Isaac Sim部署流程及常见问题排查,覆盖从“驱动装好”到“示例场景跑通”的完整链路。无论是刚接触机器人仿真、想在Ubuntu上快速搭建环境的新手,还是因启动失败、黑屏、闪退等

weixin_34211761的博客 364

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

上一篇: 此文是对 pcsc标准的一个具体例子
下一篇: 怕以后找不到了,gcc -l参数和-L参数
文虫并雕
博客等级 码龄14年 57粉丝 33原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值