Python Forum
For Xilinx EthernetLite LWIP:Need help in Python SOCKET Coding
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For Xilinx EthernetLite LWIP:Need help in Python SOCKET Coding
#1
Hello,

Now i am able to print the data in Hercules, instead i need to print the data in Python Shell. I don`t know anything about Python Socket eventhough i have tried but i am not able to do that. Please apologize me and help in Python coding part.

Thank you in advance

The below screenshot , results are printing in XSDk using Hercules. I need to Print the data in Python Shell instead Hercules.


Please refer this link. I have posted my files


Below code is working for Normal UART
import serial.tools.list_ports
list = serial.tools.list_ports.grep('VID:PID=10C4:EA60','hwid')
connected = []
for element in list:
connected.append(element.device)
a=str(connected)
try:
port = connected[0]
baud = 115200
ser = serial.Serial(port, baud, timeout=1)
#input1.encode('UTF-8')
if ser.isOpen():
print(ser.name + ' is open...')
while (1):
out1 = ser.read()
print out1,
ser.close()
except:
pass


But i need code for SOCKET Programming . Anyone Please Huh
Reply
#2
Error message means,

Output from TCP Ethernet Files (C-code) is printing in Hercules only.

But i need to read the data into Python, without using Hercules. How ?
I have compiled below code only.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python socket connect only sometimes espDino 0 1,525 Jul-15-2020, 12:13 PM
Last Post: espDino
  Python 2.7 vs Python 3.8 (Socket Module) MattB 8 6,633 Mar-18-2020, 01:02 PM
Last Post: MattB
  how to get your own ip using python (NO SOCKET:) ) julio2000 3 2,299 Mar-02-2020, 09:35 PM
Last Post: buran
  Python Socket programming with packets sourabhjaiswal92 1 4,127 Sep-18-2018, 06:24 AM
Last Post: martingever
  Python socket : Error receive data quanglnh1993 1 13,017 Mar-14-2018, 11:59 AM
Last Post: avorane
  Python // C # - SOCKET connection is constantly interrupted raspberryPiBRA 0 2,410 Feb-01-2018, 09:53 AM
Last Post: raspberryPiBRA

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020