top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the proper format to send the request from Device 1 to Device 2?

+1 vote
237 views

Device 1 (Client) IP 10.11.3.51 is questioning Device 2 (Slave) IP 10.11.3.49:200 to view Device 2 status.
Only 5 Commands are ever sent from Device 1 to Device 2, each requesting a predetermined groups of status parameters for Device 2.
Command 1 0x02 0xF1 0xA1 0x03 0xF0 0x04 0x0 0xA7 0x05
Command 2 0x02 0xF1 0xA2 0x03 0xF0 0x04 0x0 0xA4 0x05
Command 3 0x02 0xF1 0xA3 0x03 0xF0 0x04 0x0 0xA5 0x05
Command 4 0x02 0xF1 0xA5 0x03 0xF0 0x04 0x0 0xA3 0x05
Command 5 0x02 0xF1 0xA6 0x03 0xF0 0x04 0x0 0xA0 0x05

Device 2 will send data in the format of a floating point value (Big Endian order) and it expects
to receive data from an Device 1 in the format of int32 value (Little Endian order)

posted Dec 11, 2014 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
This is half information cant understand the context, provide more detail then only its possible to address this problem.

Similar Questions
+1 vote

In Socket-Programming, I want to send whole ".txt" file from server to client. is it possible?

+2 votes

I have function in python,(Assume that i have imported all necessary module),

 def DL_Iperf(args):
        ssh=paramiko.SSHClient()
        ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        ssh.connect(server_ip,username="root",password=Password)
some_code

This function is actually a thread and it will be created as many no of UE i have, (Ex: if i have 1 UE than 1 Thread will be created),

So, if i have 1 UE/ 2 UE than its working but if i have 3 UE then it is failing, with error "Paramiko : Error reading SSH protocol banner",

Below is the stderr of the script,

    No handlers could be found for logger "paramiko.transport"

    Unhandled exception in thread started by <function DL_Iperf at 0x02B8ACF0>
    Traceback (most recent call last):

    File "C:\Users\qxdm-5\Desktop\Chirag\LTE_11_Perfect_Working\TCP_Latest_2\Windo
    ws_UE\slave.py", line 379, in DL_Iperf

    ssh.connect(ServerIp,username="root",password=Pwd)

    File "build\bdist.win32\egg\paramiko\client.py", line 295, in connect

    File "build\bdist.win32\egg\paramiko\transport.py", line 451, in start_client

paramiko.SSHException: Error reading SSH protocol banner

From some reference i found that this is because of some network related issue, but my question is if it network related then why everytime in 3rd call of the function i am getting this error? And how do i resolve it?

+1 vote

Is it right that it is used to bind Port number with IP?
If it is, then What is the need of binding it? and Why it is not present in UDP?
And also, What is the use of listen(5) ?
Does it mean that server can be connected maximum to 5 client? or it means that if server is busy with other client then 5 more client can be in queue.?
and also, What is the use of select() ?
As far as i know it is used when we want to monitor continuously input/output for that particular file descriptor.
is it correct?
If yes, then why it is used only when accepting connection request from multiple client.?

+2 votes

I want to pass a string over the network, After Coding and Decoding How will i make sure that this is the same string ?

...