Jump to content









Photo

Carriots server RST packet issue


  • Please log in to reply
4 replies to this topic

#1 sachinghadi

sachinghadi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 12 May 2015 - 05:33 AM

Hello, 

         We have created three devices using our corporate account. We have observed the following scenarios.

 

1.When we connect to the server and start sending data to the devices the server terminates the         connection. We have observed this using Wireshark Utility.The server sends a RST packet and the     connection is lost.

  

2.If we are sending data to the devices using two sources (MQTT send called from two different sources), then the server sends RST packet to each of the source as and  when it receives new data from each of these sources.

 

Can you please let us know what is the cause of the above mentioned scenarios. Also let us know if we are doing something incorrect.

 


#2 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 12 May 2015 - 11:54 AM

Hello sachinghadi

We are doing some tests sending streams to Carriots and it seems is working properly.
Is there any possibility that your device are sending streams with wrong values (ports closed, different ack sequences, ...)?

 

Best regards!



#3 sachinghadi

sachinghadi

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 19 May 2015 - 07:04 AM

Hello,

         Following are the steps in the our code.

1. Initialize the WAN interface by opening port 1883 @ mqtt.carriots.com. Call MQTTSerialise_connect API and wait for connection Acknowledgement. (MQTT data Version=3).

2. Then Initialize the sensors and communication interface.

 

Steps 1 and 2 execute once.

 

3. Read data from sensors.

4. Send this data to the cloud server using MQTTSerialize_publish API and calling the corresponding transport send API.

 

Steps 3 and 4 run continuously.

 

When we are running the setup using above steps and one source then sometimes we receive RST packet. This is handled in our code by again establishing a new connection.

 

But, when we have more than one source sending data to the cloud server the server sends RST packets continuously to each source when it receives new data. This is also handled in our code as described above.

 

The sensor data from the sources is visible at the cloud interface.

 

Let us know if we are doing something wrong.

 

Regards.



#4 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 20 May 2015 - 07:14 AM

Hello sachinghadi

 

We will try to check streams that sends your user account to see that may be happening.
When we have a conclusion, we will tell you.

 

Best regards!



#5 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 03 June 2015 - 10:07 AM

Hello sachinghadi

We are testing our platform without important conclusions about this topic.
In order to solve your problem, could you send us to support@carriots.com your code to check it?

 

Best regards






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users