PCZONE 討論區

PCZONE 討論區 (https://www.pczone.com.tw/vbb3/)
-   -- 軟 體 分 享 版 (https://www.pczone.com.tw/vbb3/forum/67/)
-   -   【下載】Free Serial Port Monitor (https://www.pczone.com.tw/vbb3/thread/67/131934/)

FYI 2007-03-18 11:24 PM

【下載】Free Serial Port Monitor
 
[URL="http://www.serial-port-monitor.com/free-serial-port-monitor-product-details.html"]Free Serial Port Monitor Analyze Your Serial Port Communication Data[/URL]

不知道是否還有網友從事串列通訊寫作? 多年前小弟的同事寫了一個DOS 版的串列埠監控程式, 現在恐怕大家都忘了串列埠還能做何用途? 基本上您需要兩條Null Modem Cable, 中間以Windows 橋接, 以便監控兩個串列裝置之間的通訊

補充:
免費版只能監控串列埠, 不允許橋接

FYI 2007-03-19 03:20 AM

HW Virtual Serial Port - Serial port emulation
 
[URL="http://www.hw-group.com/products/hw_vsp/index_en.html"]HW Virtual Serial Port - Serial port emulation[/URL][INDENT]HW VSP is a software tool, which adds to the operating system a virtual COM port, (COM 5 for example) and redirects the data from this port through the TCP/IP network to another hardware interface, defined by IP address and port number.[/INDENT]如果您想的和小弟想的一樣, 那麼您就和小弟一樣, 錯了![INDENT][B]Q[/B]: Is it possible to use HW VSP to connect 2 serial ports on 2 PCs computers over Ethernet?
[B]A[/B]: NO, HW VSP requires that on the other side of the communication should be a device of the PortBox, IP Relay or similar type. [B]IT is possible to connect two HW VSP with each other (TCP CLIENT and TCP Server)[/B], but the data can not be sent to the physical COM port of the PC.[/INDENT]小弟想要達成的是控制遠端的串列裝置, 但是應用HW VSP 的條件之一就是裝置必須符合TCP/IP-based serial device server, optionally support COM Port Control extensions ([URL="http://www.hw-group.com/support/nvt/rfc2217.txt"][B]RFC 2217[/B][/URL]) of the Telnet protocol, 如果運用上一篇的串列監控程式來橋接實體串列埠和虛擬串列埠, 或許可以達成遠端控制的目的, 例如[indent]Serial Device <-> COM1@PC1 <-> Bridge (PC1) <-> HW VSP Client (COM3@PC1) <- Internet -> Telnet (TCP:23@PC2)



Serial Device <-> COM1@PC1 <-> Bridge (PC1) <-> HW VSP Server (COM3@PC1) <- Internet -> HW VSP Client (COM3@PC2) <-> Hyper-Terminal[/indent][URL="http://www.hw-group.com/products/hercules/index_en.html"]Hercules SETUP utility[/URL][indent]Hercules SETUP utility is useful serial port terminal (RS-485 or RS-232 terminal) , UDP/IP terminal and TCP/IP Client Server terminal. It was created for HW group internal use only, but today it's includes many functions in one utility and it's Freeware! With our original devices (Serial/Ethernet Converter, RS-232/Ethernet Buffer or I/O Controller) it can be used for the UDP Setup.[/indent][URL="http://www.hw-group.com/support/nvt/index_en.html"]NVT (Network Virtual Terminal) description[/URL]
[URL="http://www.tacticalsoftware.com/products/serialip.htm"]Tactical Software - Serial/IP COM Port Redirector For serial applications on Windows[/URL]
[URL="http://www.labtam-inc.com/index.php?act=products&pid=17"]Labtam Inc. - VPortPro Version 2.3 - the VirtualPort Professional Utility[/URL]

ulimie 2007-03-19 04:25 AM

回覆: 【下載】Free Serial Port Monitor
 
[quote=FYI;956877]
不知道是否還有網友從事串列通訊寫作? [/quote]
有...有...有.... 偶還常常用 RS232...我也常在 DOS 下寫控制程式.

公司現場有些生產線上的機器還有粉多是用 RS232 連接控制的.
有時候都常用 TELIX 直接去玩...

哈哈... 還會用 DOS 去玩 RS232 的, 應該都是老鳥吧:D ...
我還用 RS232 去控制過一台有 RS232 功能的 STUDER CD Player 呢,
不過這是多年前的事了, 那台 CDP 己經死掉了.

huangmax 2007-03-19 05:43 PM

回覆: 【下載】Free Serial Port Monitor
 
哈哈! serial port我熟的很, 看你是要寫dos下的程式, win95的vxd, 還是windows裡的ap, 我都可以搞定.

我以前是搞傳統modem的, 這個東東我熟的很!

FYI 2007-03-19 09:38 PM

真不知道大夥兒在想什麼? 小弟以為比較熱門的文章, 卻門可羅雀, 像這麼冷門的文章, 竟有兩位賞光, 看來兩位應該也是[B]資深工友[/B], 請受小弟一拜, Orz

關於以現有的網路技術(前提是免費), 遠端遙控RS232 裝置, 請兩位給點意見, 不知小弟#2 所描述的連線示意圖是否可行? 在此先行謝過

warzero 2007-03-19 10:13 PM

回覆: 【下載】Free Serial Port Monitor
 
像這樣的文章反而釣起了兩條大魚~ :D
由於小弟不會寫DOS程式,也對這些工程級的完全不懂,由在此無法給與任何的意見... XDD,在此一拜三位大神 (跪~)
(謎之聲: 來灌水的就閃一邊拉~) 被拖走...

FYI 2007-03-20 04:51 PM

插花無罪, 灌水有理
 
灌水無妨, 但 "[B]謎之聲[/B]" 是啥東東啊? 記得有一陣子流行 "[B]素還真[/B]", 讓小弟有如局外人, 因為小弟只知道 "[B]史豔文[/B]" & "[B]藏鏡人[/B]", [B]老萊子[/B]是否可教啊?

huangmax 2007-03-20 08:55 PM

回覆: 插花無罪, 灌水有理
 
[QUOTE=FYI;957199]灌水無妨, 但 "[B]謎之聲[/B]" 是啥東東啊? 記得有一陣子流行 "[B]素還真[/B]", 讓小弟有如局外人, 因為小弟只知道 "[B]史豔文[/B]" & "[B]藏鏡人[/B]", [B]老萊子[/B]是否可教啊?[/QUOTE]

那是勸敗網站mobile01常出現的用語!

FYI兄我想你要的是一個 ap a(hyper Terminal Like)<-> network <-> client ap b <-> serial device

是吧?

如果不要挑剔那個ap a的介面, 這種程式大概花一天功夫就可完成.

FYI 2007-03-21 04:38 AM

踏破鐵鞋無覓處, 得來全不費工夫
 
[B]mobile01[/B]? 小弟前一陣子常去啊! 有一陣子常上國外的討論區, 因為看不懂老外所使用的縮寫, 所以小弟特別貼了一篇[URL="http://www.pczone.com.tw/vbb3/thread/7/128839/"]【轉貼】Acronyms and Abbreviations Used In IM (Instant Messaging)[/URL], 什麼 "[B]LOL[/B]", "[B]IMHO[/B]", "[B]AFAIK[/B]" 等, 但是要上哪兒去找[B]中文最新網路常用語[/B]呢? 想不到小弟竟然也成為[B]LKK[/B] 了!

huangmax 兄畫的沒錯, [B]就是那個光[/B]! 由於最近可能會用到遠端遙控串列裝置, 不打算使用遠端桌面([U]第101招[/U]), 剛剛花了點時間實驗HW VSP, 在小弟的WinXP Home 無法建立虛擬COMx, 繼續努力Google, 這種軟體應該不難找才對

[B]補充[/B]: 找是找到了, 不過大分都是商業軟體, 而HW VSP 是支援Virtual Null Modem over Network (COM Port Redirector) 的兩個免費軟體之一(還有com0com)[INDENT][URL="http://en.wikipedia.org/wiki/Virtual_serial_port"][B]Virtual serial port[/B] - Wikipedia, the free encyclopedia[/URL]
[URL="http://en.wikipedia.org/wiki/COM_port_redirector"][B]COM port redirector[/B] - Wikipedia, the free encyclopedia[/URL][/INDENT]就在小弟實驗證實HW VSP 可以連接Hercules 之時, 這才發現HHD Software - Free Serial Port Monitor [B]免費版[/B]只能監控串列埠, 不允許橋接, 原本已經打算回頭試用[URL="http://www.eltima.com/serialport-ethernet.html"]Eltima Software - Serial to Ethernet Connector[/URL], 無意間卻發現SourceForge 的[URL="http://com0com.sourceforge.net/"][B]Null-modem emulator (com0com)[/B] - virtual serial port driver for Windows[/URL]本身就已經提供[URL="http://com0com.cvs.sourceforge.net/*checkout*/com0com/com2tcp/ReadMe.txt?revision=RELEASED"][B]COM port to TCP redirector[/B][/URL], 您也可以選用[URL="http://com0com.cvs.sourceforge.net/*checkout*/com0com/hub4com/ReadMe.txt?revision=RELEASED"][B]HUB for COM ports[/B][/URL], 真是 "[B]踏破鐵鞋無覓處, 得來全不費工夫[/B]"[INDENT]Serial Device <-> COM1@PC1 <-> com2tcp (Server) <-> [B]Internet[/B] <-> Hercules TCP Client (PC2)

Serial Device <-> COM1@PC1 <-> hub4com <-> HW VSP Server (COM5@PC1) <-> [B]Internet[/B] <-> Hercules TCP Client (PC2)[/INDENT]第一種方法最單純, 但是com2tcp 的指令介面並不方便, 第二種方法適用於[B]一對多[/B]或[B]多對多[/B], 以上兩種方式都可以做到由近端(主控, PC2)主動連線遠端(被控, PC1)

除了 "COM Port Redirector" 之外, 小弟也意外發現 "[URL="http://www.hhdsoftware.com/Products/home/usb-monitor.html"]USB Monitor[/URL]", 甚至 "[URL="http://www.eltima.com/products/usb-over-ethernet/"]USB to Ethernet Connector[/URL]" 這種東西, 透過Client/Server 的方式遠端控制USB 裝置(例如USB 掃瞄器), 這樣的軟體早該出現了, 卻直到最近兩年才冒出頭

FYI 2007-04-15 03:08 AM

遠端遙控序列埠
 
[URL="http://forum.brighthand.com/showpost.php?p=43305&postcount=216"]Re: A quick guide to installing the free com0com virtual COM port [/URL]
[URL="http://www.junefabrics.com/palmnet/faq.php#tsinstall"]Installation failed with error message: "UpdateDriverForPlugAndPlayDevices err=2"[/URL][INDENT]Your Windows registry is corrupted probably due to uninstallation of certain program. If you are familiar with registry, you can create the following folder in your registry to fix this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

Or you can simply download and open/run this file on your Windows to merge your registry: [URL="http://www.junefabrics.com/bin2/runonce.reg"]runonce.reg[/URL][/INDENT][URL="http://sourceforge.net/forum/forum.php?thread_id=1571345&forum_id=440108"]com2tcp - baud rate[/URL][INDENT]Comment in com2tcp.cpp lines 544-547:

dcb.BaudRate = CBR_19200;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;[/INDENT]小弟實驗com0com 的結果是功能大致完備, hub4com 虛擬Hub 獨具巧思, 不過com2tcp v1.2.0.0 無法通過以超級終端機傳送大檔案, 這是可惜之處

安裝好com0com 之後, 不妨將CNCA0 和CNCB0 改名為COM3 和COM4, 否則無法被Hercules Setup 所開啟[INDENT]change CNCA0 PortName=COM3,EmuBR=yes,EmuOverrun=yes
change CNCB0 PortName=COM4,EmuBR=yes,EmuOverrun=yes[/INDENT]假設ADSL Modem Console Port 連接於COM1, 欲遠端遙控COM1, 則以下開啟TCP:23(telnet) 等待連入, 在此並未使用telnet 協定, 請勿混淆[INDENT]com2tcp --ignore-dsr \\.\com1 telnet[/INDENT]不過com2tcp v1.2.0.0 會將COM1 設成19200 8-N-1, 硬體流量控制(RTS/CTS), 在新版推出之前, 暫時只能以hub4com 串接CNCA0/CNCB0 以便由超級終端機設定COM1 的速率, 或者請參考以上, 自行修改並編譯com2tcp, 如[URL="http://www.pczone.com.tw/vbb3/thread/67/132505/"]直接修改com2tcp.exe (v1.2.0.0)[/URL], 則請以8 個 "90h" (nop) 蓋掉offset 1d68h 開始的程式碼
[CODE]00001D68 C7 44 24 2C 00 4B 00 00 mov dword ptr ss:[esp+2c],4b00 ;dcb.BaudRate = CBR_19200[/CODE]

同樣的, HW Virtual Serial Port v2.5.8 也無法通過以超級終端機傳送大檔案, 原因待查, 或許和MTU 或TCP Receive Windows 有關

執行命令提示字元(cmd), 再執行 "mode", 可查詢序列埠狀態


所有時間均為 +8。現在的時間是 01:41 PM



 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。