USR-TCP232-410S User Manual
24 / 46
Web to serial test
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 410S.
1. Build a connection and connect to 410S.
function connectx(){
try{
socket=new WebSocket('ws://'+window.location.host+':6432');
socket.binaryType = "arraybuffer";
}catch(e){
alert('error');
return;
}
socket.onopen = sOpen;
socket.onerror=sError;
socket.onmessage=sMessage;
socket.onclose=sClose
}
2. Receive Data Function
function sMessage(msg)
3. Send data function
function send()
Summary of Contents for USR-TCP232-410S
Page 1: ...USR TCP232 410S User Manual 1 46 USR TCP232 410S Manual File Version V1 0 0...
Page 3: ...USR TCP232 410S User Manual 3 46 5 3 Serial Configuration 45 6 Contact 46...
Page 20: ...USR TCP232 410S User Manual 20 46 USR VCOM Add a COM USR VCOM Build Connection...
Page 22: ...USR TCP232 410S User Manual 22 46 Web to Serial Webpage...
Page 23: ...USR TCP232 410S User Manual 23 46 Web to Serial COM Send Receive Data...
Page 37: ...USR TCP232 410S User Manual 37 46 Software Configuration Full Show...