programming with Modem

solomon 2001-01-08 01:31:00
My Objective:
1. Monitor Modem
2. When Rings(someone calls me),
Quickly hangon and Hangup(in Less than 2 second)
3. Goto 1
...全文
107 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hangguojun 2001-05-30
  • 打赏
  • 举报
回复
根本不用编程:
1、设置ATS0=2 振铃两声自动应答
2、设置ATS7=2 好象是这个吧,载波检测2秒后自动挂断
3、AT&W 存储profile 到MODEM

顺便问一句,你是电信局的吗?
GoldWood 2001-05-21
  • 打赏
  • 举报
回复
zzh:那里有买《win95通信程序设计》,谢谢!!!
casanova 2001-01-09
  • 打赏
  • 举报
回复
直接用AT命令不能作么?
反复监听串口,发现震铃信号("RING")后接听(ATA),
然后用ATH挂断。不可以么?
zzh 2001-01-09
  • 打赏
  • 举报
回复
使用MS提供的TAPI编程接口,你可以参考一本书《win95通信程序设计》里面有一单元是专门讲TAPI编程的,还有源代码。
silver 2001-01-08
  • 打赏
  • 举报
回复
用TAPI吧,现在是3.0
我原先也搞了很久,和你的Objective差不多,最后失败了,不过祝你好运
You are visitor as of October 17, 1996.The Art of Assembly Language ProgrammingForward Why Would Anyone Learn This Stuff?1 What's Wrong With Assembly Language2 What's Right With Assembly Language?3 Organization of This Text and Pedagogical Concerns4 Obtaining Program Source Listings and Other Materials in This TextSection One: Machine OrganizationArt of Assembly Language: Chapter OneChapter One - Data Representation1.0 - Chapter Overview1.1 - Numbering Systems1.1.1 - A Review of the Decimal System1.1.2 - The Binary Numbering System1.1.3 - Binary Formats1.2 - Data Organization1.2.1 - Bits1.2.2 - Nibbles1.2.3 - Bytes1.2.4 - Words1.2.5 - Double Words1.3 - The Hexadecimal Numbering System1.4 - Arithmetic Operations on Binary and Hexadecimal Numbers1.5 - Logical Operations on Bits1.6 - Logical Operations on Binary Numbers and Bit Strings1.7 - Signed and Unsigned Numbers1.8 - Sign and Zero Extension1.9 - Shifts and Rotates1.10 - Bit Fields and Packed Data1.11 - The ASCII Character Set1.12 Summary1.13 Laboratory Exercises1.13.1 Installing the Software1.13.2 Data Conversion Exercises1.13.3 Logical Operations Exercises1.13.4 Sign and Zero Extension Exercises1.13.5 Packed Data Exercises1.14 Questions1.15 Programming ProjectsChapter Two - Boolean Algebra2.0 - Chapter Overview2.1 - Boolean Algebra2.2 - Boolean Functions and Truth Tables2.3 - Algebraic Manipulation of Boolean Expressions2.4 - Canonical Forms2.5 - Simplification of Boolean Functions2.6 - What Does This Have To Do With Computers, Anyway?2.6.1 - Correspondence Between Electronic Circuits and Boolean Functions2.6.2 - Combinatorial Circuits2.6.3 - Sequential and Clocked Logic2.7 - Okay, What Does It Have To Do With Programming, Then?2.8 - Generic Boolean Functions2.9 Laboratory Exercises<
FTDI CDM Drivers 2.06.00 - Revision Comments FTDI’s CDM drivers provide both D2XX and VCP functionality through a single driver package on PCs running the following Windows operating systems: • Windows Server 2008 R2 • Windows 7 • Windows 7 x64 • Windows Server 2008 • Windows Server 2008 x64 • Windows Vista • Windows Vista x64 • Windows Server 2003 • Windows Server 2003 x64 • Windows XP • Windows XP x64 • Windows 2000 The files included in a standard CDM release are: • Installation files o FTDIBUS.INF o FTDIPORT.INF • Driver files o FTDIBUS.SYS o FTSER2K.SYS • D2XX Interface o FTD2XX.DLL (32-bit) o FTD2XX.DLL (64-bit) o FTD2XX.LIB (32-bit) o FTD2XX.LIB (64-bit) o FTD2XX.H • Supporting files o FTLang.DLL (32-bit) o FTLang.DLL (64-bit) o FTCSERCO.DLL (32-bit) o FTCSERCO.DLL (64-bit) On making a new release the files will be posted on FTDI’s web site http://www.ftdichip.com/FTDrivers.htm in ZIP file format. Release version 2.06.00 (October 22, 2009) WHQL candidate version with various bug fixes and enhancements. Release Fixes • Corrected buffer optimisation for hi-speed devices. • Fix BSOD when terminating application with full buffers after disconnect. • Prevent data being written to hi-speed chips until baud rate has stabilised. • Fix XOn/XOff issue. • Fix BSOD when connecting an FT232R/FT245R with endpoint size of 0. • Fix possible BSOD when opening hi-speed device with full buffers. • Added ability to alias hi-speed baud rates up to 12Mbaud. • Added more languages to FTLang: o Dutch • Corrected positioning of controls on property page for some display settings. • FTLang will now detect current user interface language rather than Windows system language. Release version 2.04.16 (February 17, 2009) WHQL certified version with various bug fixes and enhancements. Release Fixes • Fix power management issue. • Additional protection in serial driver. Release version 2.04.14 (October 27, 2008) WHQL candidate version with various bug fixes and enhancements. Release Fixes • Added more languages to FTLang: o Finnish • Added support for FT2232H and FT4232H. • Prevent users from programming EEPROMs with VID or PID of 0x0000. • Fixed rare installation problem on Windows Server 2003 x64. • Fixed problem with USB 2.0 hub enumeration. • Fix for DTM rebalance test. • Force endpoint size in FT232R/FT245R EEPROM structure to always be 64. • Added FT_EVENT_LINE_STATUS for use with FT_SetEventNotification. • Fixed LocIds bugs. Release version 2.04.06 (March 13, 2008) WHQL certified version with various bug fixes and enhancements. Release Fixes • Added multilingual support to property page via FTLang.DLL. Supported languages are: o English (Default) o Chinese (Traditional) o French o German o Hungarian o Italian o Japanese o Korean o Polish o Russian o Spanish • Added FT_GetComPortNumber function. • Added Line Status to IOCTL_FT_GET_MODEM_STATUS. • Changes to write request processing to fix blue screen. • Fixed FT_ResetDevice for FT2232. • Fixes for Windows error report crashes. • Fixed synchronisation issue. • Fixed deadlock issues for multi-processor systems. • Fixed error condition state in suspend. • Revised co-installer. • Support for COM port disabled in device manager (as opposed to disabled though property page). • Fixed synchronization issue if COM port installation was incomplete. • Fixed device info list issues: list not populated when using Win32 functions • Now return default info for devices open in other processes. • Fixed lock-up problem in Vista and XP. • Fixed USB 2.0 location ID problem on Windows 2000. Release version 2.02.04 (July 3, 2007) WHQL certified version. New driver architecture combining 32-bit OS driver and 64-bit OS driver. Release Fixes • Code fixes for PreFast and SDV. • Fix write timeouts. • Changed write request processing for DVDO box. • Use LocIds for creating com ports if using IgnoreHWSerNum. • Various fixes for PreFast. • Remove references to 5-6 data bits and 1.5 stop bits. • Fix blue screen in checked build serial driver. • Power management fast resume for Vista. • Fixed LocID problem with usb2.0 hubs on Win2K. • Synchronize D2XX open and serial port startup. • Fixed object name collision problem in VCP. • Fixed WER 0xD1_W_ftdibus!FT_WriteTimeoutProc+2c. Release Version 2.00.00r (May 18, 2006) WHQL certified version. New driver architecture combining functionality of D2XX and VCP drivers. Release Fixes • Removed unused fields from device extension. • Fixed write timeout bytes returned problem. • Changes for power management • Fix for buffer full handshake problem. • Combined driver model. • Added workaround for R-chip bad serial number problem. • Fixed bug in device startup. • Fixed vendor request queuing lockup problem. • Changed device ID creation to fix problem seen in 64-bit OS. • Fixed lockup problem with hardware handshake (3-write problem) by restoring timeouts for OUT requests. • Fixed disconnect after hibernate problem. • Fixed disconnect during open session with active communications problem. Previous Release Revisions 1.00.2176 (December 12, 2005) WHQL certified version. Fixed installation problem. 1.00.2172 (October 31, 2005) Support for FT2232C devices. 1.00.2170 (October 27, 2005) Fixed write request synchronization issue. 1.00.2169 (September 1, 2005) Fixed flow control issues. Changed cancel processing to fix blue screen. 1.00.2168 (June 8, 2005) Fixed lockup condition on port close. 1.00.2166 (May 23, 2005) Fixed bug in software flow control. 1.00.2163 (February 7, 2005) Support for buffered writes. Fixed property page. 1.00.2162 (November 25, 2004) Tested with HCT 12.0. 1.00.2160 (October 26, 2004) Added option to prevent modem control signals following legacy port behaviour at startup. 1.00.2159 (October 15, 2004) Fixed delay on disconnect under WinXP. 1.00.2157 (September 28, 2004) Fixed bug that could cause computer to hang during closedown. 1.00.2156 (September 9, 2004) Fixed bug in baud rate divisor calculation for AM devices. Location Ids supported is no longer restricted to 10 or less. Fixed bug that could cause computer to hang on surprise removal. Fixed bug that caused device handle notification to fail. 1.00.2154 (April 20, 2004) WHQL certified version. Fixed initialization problem on WinXP SP1. Fixed IOCTL_SERIAL_GET_DTRRTS. 1.00.2151 (February 4, 2004) Fixed problem with signalling events on disconnect with open port. 1.00.2150 (January 19, 2004) Fixed problem with signalling line status errors. Fixed problem with Location IDs and external hubs. 1.00.2148 (November 11, 2003) More fixes for WHQL. Fixed problem that prevented RXCHAR event being signalled when buffers were full. 1.00.2146 (October 28, 2003) Various fixes for WHQL. Added option for immediate processing of vendor commands. 1.00.2145 (October 20, 2003) Fixed power-level problem with VCP serializer DLL interface. 1.00.2143 (September 24, 2003)

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧