⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_main.frm

📁 通过串口与手机模块收发短信。已经用sim100测试过
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Object = "{D27CDB6B-AE6D-11CF-96B8-444553540000}#1.0#0"; "Flash8a.ocx"
Begin VB.Form Frm_Main 
   Caption         =   "前置"
   ClientHeight    =   8310
   ClientLeft      =   735
   ClientTop       =   855
   ClientWidth     =   10875
   LinkTopic       =   "Form1"
   ScaleHeight     =   8310
   ScaleWidth      =   10875
   Begin ShockwaveFlashObjectsCtl.ShockwaveFlash ShockwaveFlash1 
      Height          =   375
      Left            =   2280
      TabIndex        =   8
      Top             =   5520
      Width           =   2775
      _cx             =   4895
      _cy             =   661
      FlashVars       =   ""
      Movie           =   ""
      Src             =   ""
      WMode           =   "Window"
      Play            =   -1  'True
      Loop            =   -1  'True
      Quality         =   "High"
      SAlign          =   ""
      Menu            =   -1  'True
      Base            =   ""
      AllowScriptAccess=   ""
      Scale           =   "ShowAll"
      DeviceFont      =   0   'False
      EmbedMovie      =   0   'False
      BGColor         =   ""
      SWRemote        =   ""
      MovieData       =   ""
      SeamlessTabbing =   -1  'True
      Profile         =   0   'False
      ProfileAddress  =   ""
      ProfilePort     =   0
   End
   Begin VB.Timer T_Gsm_Rev_Reset 
      Enabled         =   0   'False
      Interval        =   5000
      Left            =   5040
      Top             =   3240
   End
   Begin VB.Timer T_GSM_Reset 
      Enabled         =   0   'False
      Interval        =   1000
      Left            =   4200
      Top             =   3240
   End
   Begin VB.Timer T_Enter_Line 
      Left            =   3720
      Top             =   2520
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   570
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   10875
      _ExtentX        =   19182
      _ExtentY        =   1005
      ButtonWidth     =   1138
      ButtonHeight    =   953
      Appearance      =   1
      Style           =   1
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   18
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "打开"
            Key             =   "open"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "保存"
            Key             =   "save"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "设定"
            Key             =   "set"
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "初始化"
            Key             =   "GsmInit"
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "协议"
            Key             =   "protocal"
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "消息"
            Key             =   "access"
            BeginProperty ButtonMenus {66833FEC-8583-11D1-B16A-00C0F0283628} 
               NumButtonMenus  =   1
               BeginProperty ButtonMenu1 {66833FEE-8583-11D1-B16A-00C0F0283628} 
                  Key             =   "ShortMes"
                  Text            =   "短信"
               EndProperty
            EndProperty
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "测试"
            Key             =   "Test"
         EndProperty
         BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "定时"
            Key             =   "time"
         EndProperty
         BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "命令"
            Key             =   "command"
         EndProperty
         BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "显示"
            Key             =   "display"
            Style           =   1
            Value           =   1
         EndProperty
         BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "换行"
            Key             =   "EnterLine"
            Style           =   1
         EndProperty
         BeginProperty Button15 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   4
         EndProperty
         BeginProperty Button16 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "直通"
            Key             =   "Serial"
            Style           =   2
            BeginProperty ButtonMenus {66833FEC-8583-11D1-B16A-00C0F0283628} 
               NumButtonMenus  =   4
               BeginProperty ButtonMenu1 {66833FEE-8583-11D1-B16A-00C0F0283628} 
                  Key             =   "ShortMes"
                  Text            =   "短信"
               EndProperty
               BeginProperty ButtonMenu2 {66833FEE-8583-11D1-B16A-00C0F0283628} 
                  Key             =   "Test"
                  Text            =   "测试"
               EndProperty
               BeginProperty ButtonMenu3 {66833FEE-8583-11D1-B16A-00C0F0283628} 
                  Key             =   "FixTime"
                  Text            =   "定时"
               EndProperty
               BeginProperty ButtonMenu4 {66833FEE-8583-11D1-B16A-00C0F0283628} 
                  Key             =   "Command"
                  Text            =   "命令"
               EndProperty
            EndProperty
         EndProperty
         BeginProperty Button17 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "GSM"
            Key             =   "GSM"
            Style           =   2
         EndProperty
         BeginProperty Button18 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "GPRS"
            Key             =   "GPRS"
            Style           =   2
         EndProperty
      EndProperty
   End
   Begin VB.Timer T_WinSockPro 
      Enabled         =   0   'False
      Interval        =   30
      Left            =   3360
      Top             =   3240
   End
   Begin VB.Timer T_ReConWin 
      Enabled         =   0   'False
      Interval        =   8000
      Left            =   5280
      Top             =   1920
   End
   Begin VB.Timer T_ConSer 
      Enabled         =   0   'False
      Interval        =   3000
      Left            =   4680
      Top             =   1920
   End
   Begin VB.Timer T_Gsm_StrSenPro 
      Enabled         =   0   'False
      Interval        =   6000
      Left            =   3960
      Top             =   1920
   End
   Begin VB.Timer T_GSM_CmdSenPro 
      Enabled         =   0   'False
      Interval        =   2000
      Left            =   3360
      Top             =   1920
   End
   Begin VB.Timer T_MesInitSenCmd 
      Enabled         =   0   'False
      Interval        =   5000
      Left            =   5160
      Top             =   1320
   End
   Begin VB.Timer T_GsmInit 
      Enabled         =   0   'False
      Interval        =   100
      Left            =   5160
      Top             =   840
   End
   Begin VB.Timer T_Mes_End 
      Enabled         =   0   'False
      Interval        =   2000
      Left            =   3360
      Top             =   840
   End
   Begin VB.Timer T_MesSenOk 
      Enabled         =   0   'False
      Interval        =   1000
      Left            =   4560
      Top             =   1320
   End
   Begin VB.Timer TimerMessa 
      Enabled         =   0   'False
      Interval        =   1000
      Left            =   3960
      Top             =   1320
   End
   Begin VB.Frame Frm_Mon 
      Caption         =   "监视窗口"
      Height          =   975
      Index           =   0
      Left            =   360
      TabIndex        =   3
      Top             =   2400
      Width           =   1695
      Begin VB.TextBox Txt_RecHex 
         BackColor       =   &H80000000&
         BorderStyle     =   0  'None
         Height          =   6975
         Left            =   0
         MultiLine       =   -1  'True
         TabIndex        =   4
         Top             =   120
         Width           =   5775
      End
      Begin VB.TextBox Txt_RecAsc 
         BackColor       =   &H80000000&
         BorderStyle     =   0  'None
         Height          =   6975
         Left            =   5760
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         TabIndex        =   5
         Top             =   120
         Width           =   3735
      End
   End
   Begin VB.Frame Frm_Mon 
      BackColor       =   &H80000000&
      Caption         =   "Frame2"
      Height          =   1095
      Index           =   1
      Left            =   240
      TabIndex        =   6
      Top             =   3840
      Width           =   1815
      Begin VB.TextBox Text2 
         BackColor       =   &H80000000&
         BorderStyle     =   0  'None
         Height          =   6975
         Left            =   5760
         Locked          =   -1  'True
         TabIndex        =   7
         Top             =   120
         Width           =   3735
      End
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   2520
      Top             =   960
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
      InBufferSize    =   1400
      RTSEnable       =   -1  'True
   End
   Begin MSComctlLib.StatusBar Sta_Mes 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   0
      Top             =   7935
      Width           =   10875
      _ExtentX        =   19182
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   6
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   2547
            MinWidth        =   2547
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   8819
            MinWidth        =   8819
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2469
            MinWidth        =   2469
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   882
            MinWidth        =   882
         EndProperty
         BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2469
            MinWidth        =   2469
         EndProperty
         BeginProperty Panel6 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Key             =   "time"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.TabStrip Tab_Mon 
      Height          =   1215
      Left            =   240
      TabIndex        =   1
      Top             =   840
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   2143
      MultiRow        =   -1  'True
      Placement       =   1
      Separators      =   -1  'True
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   2
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "监视窗口"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "数据曲线"
            ImageVarType    =   2
         EndProperty
      EndProperty
   End
   Begin MSWinsockLib.Winsock Client 
      Left            =   0
      Top             =   0
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   393216
   End
   Begin VB.Menu file 
      Caption         =   "文件"
   End
   Begin VB.Menu Mod_Rep 
      Caption         =   "模块维护"
   End
   Begin VB.Menu Mod_Man 
      Caption         =   "模块管理"
   End
   Begin VB.Menu Display 
      Caption         =   "显示"
      Begin VB.Menu EnterLine 
         Caption         =   "换行时间"
      End
   End
   Begin VB.Menu DirPath 
      Caption         =   "直通"
      Begin VB.Menu DirInput 
         Caption         =   "输入"
      End
      Begin VB.Menu DirTest 
         Caption         =   "测试"
      End
      Begin VB.Menu DirFixTime 
         Caption         =   "定时"
      End
      Begin VB.Menu DirCommand 
         Caption         =   "命令"
      End
   End
   Begin VB.Menu GSM 
      Caption         =   "GSM"
      Begin VB.Menu GSMMes 
         Caption         =   "短信"
      End
      Begin VB.Menu GSMTest 
         Caption         =   "测试"
      End
      Begin VB.Menu GSMFixTime 
         Caption         =   "定时"
      End
      Begin VB.Menu GSMCommand 
         Caption         =   "命令"
      End
   End
   Begin VB.Menu GPRS 
      Caption         =   "GPRS"
      Begin VB.Menu GPRSRev 
         Caption         =   "浏览"
      End
      Begin VB.Menu GPRSTest 
         Caption         =   "测试"
      End
      Begin VB.Menu GPRSFixTime 
         Caption         =   "定时"
      End
      Begin VB.Menu GPRSCommand 
         Caption         =   "命令"
      End
   End
   Begin VB.Menu help 
      Caption         =   "帮助"
   End
End
Attribute VB_Name = "Frm_Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Client_Close()

        Sta_Mes.Panels.Item(2).Text = "从主机断开"
        Sta_Mes.Panels.Item(4).Text = "断  开"
        T_Mes_End = True
        T_ReConWin = True
        
End Sub

Private Sub Client_DataArrival(ByVal bytesTotal As Long)
     
   Dim TempString As String
     
   Client.GetData TempString, vbString
    
    If TempString = Chr(36) & "OK" Then
    
        WaitSenSuc = True
        TempString = ""
        

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -