Switch to desktop version  
BASIC SCRIPT program.bas from one eWON to others - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: BASIC SCRIPT program.bas from one eWON to others (/thread-1101.html)

Pages: 1 2


RE: BASIC SCRIPT program.bas from one eWON to others - Nikolai - 18-12-2019

Hi Simon, I got admin account but script doesn't work on Flexy, always returns
"403"
"date: Wed, 18 Dec 2019 08:36:40 GMT
content-length: 300
connection: close
server: Apache
content-type: text/html; charset=iso-8859-1
"
"Apache"
"<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /t2mapi/POST/xxxxxx/rcgi.bin/ExeScriptForm&amp;Command1=&amp;Command2=&amp;Command3=&amp;Command4=
on this server.</p>
</body></html>
"
..when sent through the browser-it works: 4 commands of 4 executed
but idea is to enforce script on flexy..
Could be the reason in a negative balance?


RE: BASIC SCRIPT program.bas from one eWON to others - simon - 20-12-2019

Hi,

No the credit balance has nothing to do with that.
In the error message, the URL "/t2mapi/POST/xxxxxx/rcgi.b.." is missing the Ewon name... Have you doubled checked if the URL is correct ? Have you tried to PRINT it before the RequestHTTPX call ?

Simon


RE: BASIC SCRIPT program.bas from one eWON to others - Nikolai - 20-12-2019

Hi, Simon. Finally I decided to use Talk2M-SDK, slightly changing the basic example.
It works fine: requests every 10s server and if eWON online sends commands.
Now there is another problem: eWON still sends reports via ftp, but there is no record in the ecatcher logs that it was online.
Apparently the vpn connection is not established, although the script is the same.
Thats why I can't intercept it.
Are there any SMS commands besides Talk2MConnect?


RE: BASIC SCRIPT program.bas from one eWON to others - simon - 20-12-2019

(20-12-2019, 02:12 PM)Nikolai Wrote: Hi, Simon. Finally I decided to use Talk2M-SDK, slightly changing the basic example.
It works fine: requests every 10s server and if eWON online sends commands.
Now there is another problem: eWON still sends reports via ftp, but there is no record in the ecatcher logs that it was online.
Apparently the vpn connection is not established, although the script is the same.
Thats why I can't intercept it.
Are there any SMS commands besides Talk2MConnect?

Hi Nikolai,

To be honest, it is not 100% clear to me :-|
I am missing details to understand the problem globally.  Can you give more details (like the topology of the app, WAN type - 4G/WAN,...) and share your backup file (via wetransfer or something else) via private message ?

Simon


RE: BASIC SCRIPT program.bas from one eWON to others - Nikolai - 06-01-2020

(20-12-2019, 05:50 PM)simon Wrote:
(20-12-2019, 02:12 PM)Nikolai Wrote: Hi, Simon. Finally I decided to use Talk2M-SDK, slightly changing the basic example.
It works fine: requests every 10s server and if eWON online sends commands.
Now there is another problem: eWON still sends reports via ftp, but there is no record in the ecatcher logs that it was online.
Apparently the vpn connection is not established, although the script is the same.
Thats why I can't intercept it.
Are there any SMS commands besides Talk2MConnect?

Hi Nikolai,

To be honest, it is not 100% clear to me :-|
I am missing details to understand the problem globally.  Can you give more details (like the topology of the app, WAN type - 4G/WAN,...) and share your backup file (via wetransfer or something else) via private message ?

Simon
Hi Simon, 
I've caught one eWON when it was sending a report on the FTP, for this I had to just send commands every 10 seconds without checking online/offline because 2eu-server receives data with a delay relative to eCatcher about 1 minute. Talk2M-SDK is a very useful tool.
Thanks a lot!

Nikolai.


RE: BASIC SCRIPT program.bas from one eWON to others - simon - 07-01-2020

Good job !! :-)