Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR300 webpage through a router modem


Benjamin.vial May 25, 2020 11:44 AM

Hello,

I've made a bash script to retrieve data on campbell data logger with the URL API. The script works fine for ethernet links but not (yet) for the serial link.

For example, I have a CR1000 and a CR300 on the same router. The CR1000 is connected with a NL120 to use ethernet network with the router, and the CR300 use serial /USB converter plugged on the router.

On the router I set firewall rules :

URL_of_the_router:4080 -> reditect to 192.168.1.4:80 (IP of the cr1000 and port 80, so this is the webpage).

URL_of_the_router:2000 -> reditect to the USB converter, so the CR300. But I cant differenciate which is the response port, if I want the web page (and so use the URL API) of the CR300, I don't know how to setting this in the CR300.

I don't know if it's even possible.

Have you an idea ?

bye.


jtrauntvein May 26, 2020 03:23 PM

The HTTP service in the datalogger is bound to the TCP/IP stack in the datalogger and cannot be served over, what is to the datalogger, an RS-232 connection.  Your best bet is to configure a PPP/RS-232 link between the datalogger and the router.


Benjamin.vial May 26, 2020 04:32 PM

Ok thanks for your answer, so I'll test the PPP link.

bye

Log in or register to post/reply in the forum.