@@ -104,6 +104,7 | |||||
104 | if first == 0: |
|
104 | if first == 0: | |
105 | first = 1 |
|
105 | first = 1 | |
106 | lng = int(trama_rx[20:26]) |
|
106 | lng = int(trama_rx[20:26]) | |
|
107 | print str(lng) | |||
107 | if cnt == lng: |
|
108 | if cnt == lng: | |
108 | break |
|
109 | break | |
109 |
|
110 | |||
@@ -116,6 +117,7 | |||||
116 | # Short data through ethernet |
|
117 | # Short data through ethernet | |
117 | trama_rx = self.socket_c.recv(nbytes) |
|
118 | trama_rx = self.socket_c.recv(nbytes) | |
118 | lng = int(trama_rx[20:26]) |
|
119 | lng = int(trama_rx[20:26]) | |
|
120 | print str(lng) | |||
119 | print "\nThis socket has received this data: " + str(trama_rx) |
|
121 | print "\nThis socket has received this data: " + str(trama_rx) | |
120 |
|
122 | |||
121 | return trama_rx, lng |
|
123 | return trama_rx, lng |
@@ -170,6 +170,7 | |||||
170 |
|
170 | |||
171 | all_blocks = all_blocks + one_block |
|
171 | all_blocks = all_blocks + one_block | |
172 | #Using tx buffer |
|
172 | #Using tx buffer | |
|
173 | print all_blocks | |||
173 | self.tx_buffer = all_blocks |
|
174 | self.tx_buffer = all_blocks | |
174 |
|
175 | |||
175 | def __getConnectionStatus(self): |
|
176 | def __getConnectionStatus(self): |
General Comments 0
You need to be logged in to leave comments.
Login now