한국어 English Chinese Russian
bannerbar

Q&A



Your information is protected by SSL.
No. 1350 Re: Re: Re: Re: Re: Re: Re: How i can get content html thought cse-h53n 2015-07-21

Hello again.

If Host is not using a socket program, please set it like this for the connection.

[CSE-H53N]
Client
IP address: 192.168.1.2
Peer IP address: 192.168.1.3 (server IP)
Peer port: 80 (server port)

[Host]
Server
IP address: 192.168.1.3
Local port: 80

If TCP connection is established, STS LED of CSE-H53N will be on.
After that, You can send data from RS232 to LAN and vice versa.

Here is an example, refer to this image.



As I said before, you have to implement HTTP protocol like (②) and send it from your device. I am sorry but we can not support it.

Implementing HTTP

For the detailed information, refer to the RFC2616.

Thank you.



> Anonymous wrote:
> ------------------------------------
>
> Hi Sollae Systems!
>
> Thanks for regards!
>
> I dont understand know how to send a data from (user device) with rs-232 to Host(web server) thought cse-H53n and after host could response a data to user device.
> Do you give me something a example to connect it?
>
> Thanks so much
>
>
>
>
> > Sollae Systems wrote:
> > ------------------------------------
> > Hello.
> >
> > If your device has LAN port, you can connect to host directly without CSE-H53N.
> >
> > But If you want to use RS232 port, TCP connection is needed between CSE-H53N and host.
> >
> > Here are Examples.
> >
> > 1.
> >
> > [CSE-H53N]
> > Server
> > IP address: 192.168.1.2
> > Local port: 1470
> >
> > [Host with socket program]
> > Client
> > IP address: 192.168.1.3
> > Peer IP address: 192.168.1.2 (server IP)
> > Peer port: 1470 (server port)
> >
> > 2.
> >
> > [CSE-H53N]
> > Client
> > IP address: 192.168.1.2
> > Peer IP address: 192.168.1.3 (server IP)
> > Peer port: 1470 (server port)
> >
> > [Host with socket program]
> > Server
> > IP address: 192.168.1.3
> > Local port: 1470
> >
> >
> > If TCP connection is established, STS LED of CSE-H53N will be on.
> >
> > After that, You can send data from RS232 to LAN and vice versa.
> >
> > Thank you.
> >
> >
> > > Anonymous wrote:
> > > ------------------------------------
> > >
> > > Hello Sollae
> > >
> > > Thanks you so much for relay
> > >
> > > My device is a network device but only
> > > two communication port: LAN, RS-232c
> > > LAN has connect to router
> > > RS-232c: i use CSE-h53n to connect HOST
> > > This is my problem and Im trying connect RS-232c to HOST...(T_T)
> > >
> > >
> > > Thanks
> > >
> > > > Sollae Systems wrote:
> > > > ------------------------------------
> > > > Hello.
> > > >
> > > > CSE-H53N is just a serial to ethernet converter.
> > > >
> > > > I am not sure why you use CSE-H53N even if your device is a network device.
> > > >
> > > > If the Host sends HTTP protocol, CSE-H53N bypass to RS232 port.
> > > >
> > > > Then serial port of your device can receive data.
> > > >
> > > > So you should implements about HTTP protocol to send to the host.
> > > >
> > > > We do not have any examples.
> > > >
> > > > So I am sorry we can not support to get url files.
> > > >
> > > > You can find an application note about HTTP protocol at our hompage.
> > > >
> > > > Implementing HTTP
> > > >
> > > > For the detailed information, refer to the RFC2616.
> > > >
> > > > I hope It will be helpful.
> > > >
> > > > Thank you.
> > > >
> > > >
> > > >
> > > > > Anonymous wrote:
> > > > > ------------------------------------
> > > > > Hello Sollae!
> > > > >
> > > > > I have a example:
> > > > > My device:
> > > > > OS: linux
> > > > > IP: 192.168.1.1
> > > > > CSE-H53n:
> > > > > IP: 192.168.1.2
> > > > > TCP Server port is 80
> > > > > HOST:
> > > > > OS: linux
> > > > > IP: 192.168.1.3
> > > > > url get file: http://192.168.1.3/download.pdf
> > > > >
> > > > > above My device how to bypass data to call url form host thought CSE-H53n
> > > > >
> > > > > Can you give me a example for do that!
> > > > >
> > > > > Thanks for regards
> > > > >
> > > > > > Sollae Systems wrote:
> > > > > > ------------------------------------
> > > > > > Hello.
> > > > > >
> > > > > > This is a technical support team of Sollae Systems.
> > > > > >
> > > > > > I think you want to communicate each other through HTTP protocol.
> > > > > >
> > > > > > But CSE-H53N(or all of ezTCP) supported only TCP/IP protocol.
> > > > > >
> > > > > > HTTP is the Application layer.
> > > > > >
> > > > > > CSE-H53N does not care about an application layer.
> > > > > >
> > > > > > It just bypass all data from serial device to the host.
> > > > > >
> > > > > > So, after TCP connection between CSE-H53N and a host, you can send what you implement protocol to the host and vice versa.
> > > > > >
> > > > > > Have a nice day.
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > > Khanh wrote:
> > > > > > > ------------------------------------
> > > > > > > Current i have a problem with get content html
> > > > > > >
> > > > > > > This is my environment
> > > > > > >
> > > > > > > Device(supported web server) -> cse-h53n -> HOST(web server)
> > > > > > >
> > > > > > > Device connect to cse-h53n by serial rs-232c
> > > > > > > HOST connect to cse-h53n by LAN
> > > > > > >
> > > > > > > Question: I can call a url from Device to HOST thought cse-h53n and get result is html content from HOST?
> > > > > > >
> > > > > > > how i can setting on cse-h53n
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >

Writer Sollae Systems Company