1

Send to Wialon

Тема: Send to Wialon

hello
i have a cache server to save gps data from devices
now we get data on our server and then sending them to wialon
i have 50 device and 50 account
but my server send 40-43 packet to wialon each minutes so there are a lot of packet waiting to send

is there any way to send more packet ?

2

Send to Wialon

Re: Send to Wialon

Hello

What protocol do you use to send data to wialon?

3

Send to Wialon

Re: Send to Wialon

shmi пишет:

Hello

What protocol do you use to send data to wialon?

tcp with python

4

Send to Wialon

Re: Send to Wialon

roozgar пишет:

tcp with python

And what about protocol?
Wialon IPS or Wialon Retranslator or something else?

5

Send to Wialon

Re: Send to Wialon

shmi пишет:
roozgar пишет:

tcp with python

And what about protocol?
Wialon IPS or Wialon Retranslator or something else?

im using the original device format

mega stack mt60
im sending something like this:

$MGV002,<imei>,12345,S,231116,105258,A,3544.7068,N,05130.1272,E,0,9,00,1.24,0.0,0,,,432,11,11,4208,23,,,,,,,,,00,17,Timer;!

to a custom port of wialon

6

Send to Wialon

Re: Send to Wialon

roozgar our Wialon datacenter analyses more than 800 000 messages per minute.
http://gurtam.com/en/datacenter
Your 40 packet's can't make any queue.
It seems that the problem is somewhere on your cash-server.

Viktor Yarovenko
Business Analyst
Wialon
7

Send to Wialon

(23/11/2016 15:31:58 отредактировано roozgar)

Re: Send to Wialon

yavi пишет:

roozgar our Wialon datacenter analyses more than 800 000 messages per minute.
http://gurtam.com/en/datacenter
Your 40 packet's can't make any queue.
It seems that the problem is somewhere on your cash-server.

im speaking about socketing limits
i cant send any request until last one complete
because i cant open two soscket on one ip port on my machine
the 800000 request is made by 800000 unit!!

this is my code

        try:
                sistr='$MGV002,'+devimei+',12345,S,'+devdate+','+devtime+',A,'+lat+',N,'+lon+',E,0,'+satcount+',00,'+hdop+','+speed+',0,,,432,11,'+lac+','+cid+','+gsmQ
                print(sistr)
                clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                result = clientsocket.connect(('193.193.165.165',21033))
                clientsocket.send(sistr)
                data = clientsocket.recv(1024)
                print(str(datetime.datetime.now())+' -> send completed :'+format(sig[0]))
                clientsocket.close()
        except:
                print(str(datetime.datetime.now())+' -> connection to tcp server failed!!')

each request need up to 1 seconds to complete
so i can send 60 request per minutes

8

Send to Wialon

Re: Send to Wialon

roozgar, you are blocked by tcp connection open/close sequence. Try open connection and send as much data as you need, then close it. No need to open/close it constantly. Or you can try to use UDP to send datagrams if this is supported by receiving side (check device page).

At the dark side of telematics...