谁知道CID命令MODEM的AT命令CID和VCID是设置是不是来电显示的 , 如果电信开通了来电显示功能
就能通过MODEM来显示对方的电话号码 。那么首先设置CID=1或是VCID=1
般来说来电显示的信息为:
DATE = MMDD "来电日期 MMDD
TIME = HHMM "来电时间 HHMM
NMBR = ### "来电号码
程序实现如下,设置MSComm1的相关设置,并建两个Label为Label1和Label2
Function OpenCID(OpenCLose As Boolean) As Boolean
'打开或是关毕来电显示功能
On Error Resume Next
Dim ArrCID(1) As String
ArrCID(0) = "at#cid="IIf(openclode, 1, 0)
ArrCID(1) = "at#vcid="IIf(openclode, 1, 0)
MSComm1.RThreshold = 0
For i = 0 To 1
MSComm1.Output = ArrCID(i)vbCr
EndTime = Timer0.5
Do While bStop = False
nTemp = nTemp1
If MSComm1.InBufferCount = 2 Then
sTemp = MSComm1.Input
If InStr(sTemp, "OK") = 0 Then
bStop = True
OpenCID = True
Exit Function
End If
End If
If Timer = EndTime Or ErrorCode Then Exit Do
Loop
Next i
OpenCID = False
MSComm1.RThreshold = 1
End Function
下面的函数显示来电号码并在窗体上的Label1的Label2上显示出来
Private Sub MSComm1_OnComm()
On Error Resume Next
Static Buffer As String
' 收到多于 RThreshold 属性设置的字符数(RThreshold 属性必须大于 0) 。
'label1 = "收到"Str(MSComm1.InBufferCount)"个字符"
Buffer = BufferMSComm1.Input
Buffer = UCase(Buffer)
' Exit Sub
If InStr(1, Buffer, "RING", vbTextCompare) Then
'收到震铃
'Comm1.Output = "ATA"Chr(13) '命令 Modem 摘机响应
Buffer = "" '清缓冲区字符
'mciExecute "sound "SystemPath"\ringin.wav"
Label1 = "状态:收到震铃"
Zhen = True
frmCallID.Show
frmCallID.ChangRing
ElseIf InStr(1, Buffer, "CONNECT", vbTextCompare) Then
'对方应答呼叫
Buffer = "" '清缓冲区字符
Label1 = "状态:已经建立连接"
ElseIf InStr(1, Buffer, "BUSY", vbTextCompare) Then
'对方线路忙
Buffer = "" '清缓冲区字符
Label1 = "状态:对方线路忙"
ElseIf InStr(1, Buffer, "No DIA", vbTextCompare) Then
Buffer = "" '清缓冲区字符
Label1 = "状态:拨出号码错,请检查电话线"
Command1_Click
ElseIf InStr(1, Buffer, "No CARRIER", vbTextCompare) Then
'对方未摘机或未响应
Buffer = "" '清缓冲区字符
Label1 = "状态:对方未摘机"
ElseIf InStr(1, Buffer, "NMBR =", vbTextCompare) Then
tmpStr = InStr(1, Buffer, "NMBR", vbTextCompare)
CallNum = Right(Buffer, Len(Buffer) - lll - 6)
Label2.Caption = "对方电话:"CallNum
'Buffer = "" '清缓冲区字符
ElseIf InStr(1, Buffer, "OK", vbTextCompare) And Asc(Right(Buffer, 1)) = 10 Then
If Zhen = False Then Buffer = "" '清缓冲区字符
If Command1.Caption = "挂断" Then
Label2.Caption = "状态:已经播通电话:"txtCallNum
End If
End If
End Sub
如何查看linux版本的型号Linux系统如何查看版本信息
1、查看当前操作系统内核信息
uname -a
$ uname -a
Linux vm-web 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2、查看当前操作系统版本信息
cat /proc/version
$ cat /proc/version
Linux version 3.10.0-693.21.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Wed Mar 7 19:03:37 UTC 2018
3、查看当前操作系统发行版信息
cat /etc/issue 或 cat /etc/redhat-release
$ cat /etc/issue
\S
Kernel \r on an \m
$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
4、查看cpu相关信息,包括型号、主频、内核信息等
cat /proc/cpuinfo
$ cat /proc/cpuinfo
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 45
model name: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
stepping: 7
microcode: 0xffffffff
cpu MHz: 2199.998
cache size: 20480 KB
physical id: 0
siblings: 2
core id: 0
cpu cores: 2
apicid: 0
initial apicid: 0
fpu: yes
fpu_exception: yes
cpuid level: 13
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips: 4399.99
clflush size: 64
cache_alignment: 64
address sizes: 44 bits physical, 48 bits virtual
power management:
processor: 1
vendor_id: GenuineIntel
cpu family: 6
model: 45
model name: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
stepping: 7
microcode: 0xffffffff
cpu MHz: 2199.998
cache size: 20480 KB
physical id: 0
siblings: 2
core id: 1
【Linux看cid命令 linux如何看】cpu cores: 2
apicid: 1
initial apicid: 1
fpu: yes
fpu_exception: yes
cpuid level: 13
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips: 4399.99
clflush size: 64
cache_alignment: 64
address sizes: 44 bits physical, 48 bits virtual
power management:
5、列出所有版本信息
lsb_release -a
$ lsb_release -a
-bash: lsb_release: command not found
出现command not found说明没安装lsb_realease,可以执行命令yum install -y redhat-lsb安装lsb_realease,安装完成后 , 版本信息如下:
$ lsb_release -a
LSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID:CentOS
Description:CentOS Linux release 7.4.1708 (Core)
Release:7.4.1708
Codename:Core
Linux Android 下如何读取SD卡的ID--读取SD Card ID(SD CID)使用以下命令:cat /sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0:1234/cid或者使用通配符cat /sys/devices/platform/jz-msc.0/mmc_host/mmc0/mmc0:*/cid 得到32个字节的数据:0254 4d53 4130 3847 0610 ebb5 5000 a93f 在kernel/drivers/mmc/core/sd.c文件中:以下数组结构用于保存SD卡ID card-raw_cid[0];card-raw_cid[1];card-raw_cid[2];card-raw_cid[3]; linux内核中对应的代码位于: kernel/drivers/mmc/core/sd.ckernel/drivers/mmc/core/mmc.ckernel/include/linux/mmc/card.hkernel/include/linux/mmc/mmc.h 关键字: Linux MMC卡驱动读取SD卡ID如何读取SD卡ID如何获取SD卡ID如何获取SD卡序列号
linux服务器cpu性能参数如何看processor: 44(处理器线程序号,包括内核和超线程)
vendor_id: AuthenticAMD(品牌AMD)
cpu family: 21(CPU家族代号)
model: 1(型号代号)
model name: AMD Opteron(TM) Processor 6234(型号名称)
stepping: 2(工艺步进)
cpu MHz: 2400.127(主频2.4G)
cache size: 2048 KB(缓存2M)
physical id: 0(CPU物理封装的序号)
siblings: 12(逻辑处理器数量,相当于线程数 。)
core id: 5(CPU物理内核的序号)
cpu cores: 6(CPU物理内核的数量)
apicid: 43
initial apicid: 11
fpu: yes
fpu_exception: yes
cpuid level: 13
wp: yes
没有12位的处理器 。你的CPU是64位的 。
由于AMD采用多线程技术与Intel不一样,这款CPU应描述为6模块12核,而不是6核12线程 。
Linux容器cid有可能一样吗应该不一样,CID是每个设备的硬件信息,我是这样理解的,如果错误请见谅!
如果你是运维的话可以看看Linux 这个可以试试 。建议看看《Linux就该这么学》 里面有个专栏是 Linux命令大全(手册) 加入我们的群
关于Linux看cid命令和linux如何看的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息 , 记得收藏关注本站 。
推荐阅读
- 不同路由器连接有什么区别,不同路由器影响网速吗
- vm虚拟机,vm虚拟机怎么和主机共享文件
- 西安领证拍摄要求什么,西安拍结婚证件照好的照相馆
- python命名新函数 python函数改名
- erp系统开源框架手机,erp开发框架
- Excel中怎么设置分行,excel如何实现分行
- 怎么用电脑直播添加音乐,电脑直播怎么把音乐调到直播间
- vb.net设置gpu vbnet doevent
- oracle数据库入门教程电子书,oracle数据库实用教程