1

How to consume protocoller data in php

Тема: How to consume protocoller data in php

Hi,

I have setup a translator using Wialon Protocoller. I have set the IP address of my server and some random username password.
Now, I am stuck at how to setup my server and how I can write PHP code to cosume this data.
I just want to save this data in MysQL database table.

Please share any links if possible.

2

How to consume protocoller data in php

Re: How to consume protocoller data in php

Hello on my expirience for this type of task is than better use C# with threads.
On this application your thread listen the specific port.
PHP have a max_execution_time one script always be ended.


Best Regards

3

How to consume protocoller data in php

Re: How to consume protocoller data in php

@cerpas : that is fine suggestion. but i can't afford to learn c# right now. I am just learning wialon development with PHP.
Please help me if you can with proper setup and api dev for receiving data from protocoller.

4

How to consume protocoller data in php

Re: How to consume protocoller data in php

a.hussain, you can bypass your traffic via flespi using following scheme:
Wialon => Wialon Retranslator => flespi channel => your server

From flespi channel you can fetch messages via HTTP REST, sample work flow (in pics): https://flespi.com/api-guidelines#faq9
or you can stream them via HTTP to your server.

I think it is much easier for you to make or receive HTTP calls from PHP application rather then parse TCP data stream.

flespi is free for use in such setup.

At the dark side of telematics...
5

How to consume protocoller data in php

Re: How to consume protocoller data in php

You need a language to receive the data from Wialon Retranslator or FLESPI. I'd recommend either ASP.NET or PHP. They are both decent web-programming languages.

In order to run these services you need a web-server. There are a lot of web-servers out there. The most popular and easy to use is probably Apache / httpd. Available as LAMP (Linux) or WAMP (Windows) Nginx can also be recommended - but is a bit difficult to work with.

If you are using SOAP as a protocol then it would send directly to port 80 to your webserver you can easily convert XML to JSON with built in functions in .NET or PHP.

Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam

"Computer science is no more about computers than astronomy is about telescopes."