ethernet

P1010 MAC to Switch port direct connection without PHY

余生颓废 提交于 2020-01-02 09:55:16
问题 I have a custom board with freescale P1010 processor in which P1010's eTSEC2 ( Enhanced 3-speed Ethernet controller) port is directly connected to Marvell 88E6046 ethernet switch Port 9 in SGMII mode. Linux (3.17) DSA driver is able to probe and detect switch ( Port 9 is 'cpu' whereas port 0 and 1 are designated as 'lan1' and 'lan2'). The problem however is, that there is no PHY for switch to attach to ( 'ifconfig up' fails to attach to ethx). U-boot creates a 'generic PHY' eth0 since it

Get ipconfig result with python in windows

谁说胖子不能爱 提交于 2020-01-01 19:07:13
问题 I am new here and just learning python. I need help to get the right mac-address of my network card in windows using python. I tried to search, and found these : Python - Get mac address Getting MAC Address Command output parsing in Python Parsing windows 'ipconfig /all' output If I run "ipconfig /all" from command prompt, I get this : Windows-IP-Konfiguration Hostname . . . . . . . . . . . . : DESKTOP-CIRBA63 Primäres DNS-Suffix . . . . . . . : Knotentyp . . . . . . . . . . . . : Hybrid IP

Get ipconfig result with python in windows

徘徊边缘 提交于 2020-01-01 19:07:05
问题 I am new here and just learning python. I need help to get the right mac-address of my network card in windows using python. I tried to search, and found these : Python - Get mac address Getting MAC Address Command output parsing in Python Parsing windows 'ipconfig /all' output If I run "ipconfig /all" from command prompt, I get this : Windows-IP-Konfiguration Hostname . . . . . . . . . . . . : DESKTOP-CIRBA63 Primäres DNS-Suffix . . . . . . . : Knotentyp . . . . . . . . . . . . : Hybrid IP

How use thermal printer(USB/Ethernet) on android, without using vendor SDK,?

人盡茶涼 提交于 2020-01-01 10:30:21
问题 I already implemented EPSON SDK(for Bluetooth) and working fine, but not Working on other printers, is there is any general way to accomplish it. what is ESC command, How it works?, 回答1: Please find this one.It will help your problem. ESC/POS Command Reference provides detailed information on ESC/POS commands, such as standard command syntax and protocol. It targets programmers who want to control the printer with ESC/POS commands. ESC/POS Command Reference is provided as replacement of ESC

How use thermal printer(USB/Ethernet) on android, without using vendor SDK,?

邮差的信 提交于 2020-01-01 10:30:10
问题 I already implemented EPSON SDK(for Bluetooth) and working fine, but not Working on other printers, is there is any general way to accomplish it. what is ESC command, How it works?, 回答1: Please find this one.It will help your problem. ESC/POS Command Reference provides detailed information on ESC/POS commands, such as standard command syntax and protocol. It targets programmers who want to control the printer with ESC/POS commands. ESC/POS Command Reference is provided as replacement of ESC

Ethernet data transfer between FPGA-PC

▼魔方 西西 提交于 2020-01-01 07:12:11
问题 I am developing a logic core to perform data transfer between a FPGA and a PC over ethernet, using a LAN8710 PHY on my FPGA board. I've achieved to transfer some UDP data packets from the FPGA to the PC. It's a simple core that complies with the PHY transfer requirements. It builds the UDP package and transfer it to the PC. To check the reception on the PC, I am using Wireshark and as said above, I receive the packets correctly. I've checked the reception with a simple UDP receiver written by

Ethernet CRC32 calculation - software vs algorithmic result

限于喜欢 提交于 2020-01-01 02:25:07
问题 I'm trying to calculate the Frame Check Sequence (FCS) of an Ethernet packet byte by byte. The polynomial is 0x104C11DB7 . I did follow the XOR-SHIFT algorithm seen here http://en.wikipedia.org/wiki/Cyclic_redundancy_check or here http://www.woodmann.com/fravia/crctut1.htm Assume the information that is supposed have a CRC is only one byte. Let's say it is 0x03. step: pad with 32 bits to the right 0x0300000000 align the polynomial and the data at the left hand side with their first bit that

Python - Get MAC address of only the connected local NIC [duplicate]

一曲冷凌霜 提交于 2019-12-31 04:15:09
问题 This question already has answers here : Getting MAC Address (14 answers) Closed 4 years ago . The goal is to collect the MAC address of the connected local NIC, not a list of all local NICs :) By using socket and connect (to_a_website) , I can just use getsockname() to get the IP, that is being used to connect to the Internet. But from the IP how can I then get the MAC address of the local NIC ? Main reason for the question is if there are multiple NICs. 回答1: As vartec suggested netifaces

Ethernet Connectivity through Programmatically (Android) (Rooted Device)

醉酒当歌 提交于 2019-12-28 11:46:46
问题 I have a small issue regarding Ethernet . My three questions are: Can we programmatically Turn-On/Off Ethernet ? Can we programmatically Enable/Disable Ethernet ? Can we programmatically Connect Ethernet ? The above Questions are done with the Wifi . Like We can programmatically Turn-On/Off Wifi . We can programmatically Enable/Disable Wifi . We can programmatically Connect Wifi using WifiManager . Does android provides any EthernetManager like as WifiManager to handle Ethernet ? Or, if this

Raw Socket promiscuous mode not sniffing what I write

帅比萌擦擦* 提交于 2019-12-28 06:15:32
问题 I am writing a program with a Raw Socket in promiscuous mode and I need the raw socket not sniff the packet I send. I need to read only the data over the ethernet rx wire (not the tx wire). It's posible? Thanks a lot. 回答1: The solution is to look in the read packet if it is a PACKET_OUTGOING. Using this option you can diference the packet you put in the ethernet tx wire and the packet you read from the rx wire. Open the Socket in promiscuous mode: char* i = "eth0"; int fd; struct ifreq ifr;