![U.S. Converters USC520 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/u-s-converters/usc520/usc520_user-manual_3092695027.webp)
USC520 / USC540 User Manual www.usconverters.com
U.S. Converters LLC 27 / 52 Copyrights © U.S.
Converters
3.4.5. Web to serial
Web to serial function can make interaction between webpage and serial.
1. Set port 6432 as default.
2. Open webpage and click “web to serial”. It pops up “connect success” then can send/receive
data. Open USR-TCP232-TEST Software, configure serial parameter and click “Open”.
3. Click “send ASCII data”, COM can receive data. Click “Send” in TEST Software, webpage can
receive data.
Web to serial needs user’s webpage programming ability. Design webpage, request own device’s data
and process data then reveal the results on webpage. According to chapter4.1.17 Customized Webpage, can
download revised webpage into USC520/USC540 .
1. Build a connection and connect to USC520/USC540
function connectx(){
try{
socket=new WebSocket('ws://'+window.location.host+':6432');
socket.binaryType = "arraybuffer";
}catch(e){
alert('error');
return;
}
socket.onopen = sOpen;