• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

tricking network port into thinking cable is connected

Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
i have a solar powered router a TPlink wr703n. and its all working nicely but i have been wanting a way of remotely monitoring when the battery is charging and discharging and i was thinking if I could make it so that when current went into the battery the Ethernet port would show up as connected and when it was discharging it would show disconnected unfortunately i have no idea on how to make this happen so has anyone any ideas?

i think all i need to do is figure out how the jack detection works then make a small circuit to mimic it
 
Joined
Apr 19, 2012
Messages
12,062 (2.75/day)
Location
Gypsyland, UK
System Name HP Omen 17
Processor i7 7700HQ
Memory 16GB 2400Mhz DDR4
Video Card(s) GTX 1060
Storage Samsung SM961 256GB + HGST 1TB
Display(s) 1080p IPS G-SYNC 75Hz
Audio Device(s) Bang & Olufsen
Power Supply 230W
Mouse Roccat Kone XTD+
Software Win 10 Pro
Fudge something together with POE? This certainly isn't my speciality (rigging network ports to do things they aren't normally made for), but I do a great deal of custom networking in my workplace.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
Fudge something together with POE? This certainly isn't my speciality (rigging network ports to do things they aren't normally made for), but I do a great deal of custom networking in my workplace.

so you know how does the port detect a cable is connected to another device? like when you plug the cable in and the led comes on instantly. i need to fake a device with the minimum amount of parts.
 
Joined
Apr 19, 2012
Messages
12,062 (2.75/day)
Location
Gypsyland, UK
System Name HP Omen 17
Processor i7 7700HQ
Memory 16GB 2400Mhz DDR4
Video Card(s) GTX 1060
Storage Samsung SM961 256GB + HGST 1TB
Display(s) 1080p IPS G-SYNC 75Hz
Audio Device(s) Bang & Olufsen
Power Supply 230W
Mouse Roccat Kone XTD+
Software Win 10 Pro
so you know how does the port detect a cable is connected to another device? like when you plug the cable in and the led comes on instantly. i need to fake a device with the minimum amount of parts.

It has to recieve blank data in the form of power (poe), or recieve packets from any source. A Lan cable tester might do it. We use them to check a cable is wired correctly. Very lower power.
 
Joined
May 13, 2010
Messages
5,698 (1.12/day)
System Name RemixedBeast-NX
Processor Intel Xeon E5-2690 @ 2.9Ghz (8C/16T)
Motherboard Dell Inc. 08HPGT (CPU 1)
Cooling Dell Standard
Memory 24GB ECC
Video Card(s) Gigabyte Nvidia RTX2060 6GB
Storage 2TB Samsung 860 EVO SSD//2TB WD Black HDD
Display(s) Samsung SyncMaster P2350 23in @ 1920x1080 + Dell E2013H 20 in @1600x900
Case Dell Precision T3600 Chassis
Audio Device(s) Beyerdynamic DT770 Pro 80 // Fiio E7 Amp/DAC
Power Supply 630w Dell T3600 PSU
Mouse Logitech G700s/G502
Keyboard Logitech K740
Software Linux Mint 20
Benchmark Scores Network: APs: Cisco Meraki MR32, Ubiquiti Unifi AP-AC-LR and Lite Router/Sw:Meraki MX64 MS220-8P
PRTG and possibly add as sensor. I believe it has one if it is supported. I will test on my laptop to see if it has a batt. lvl sensor.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
It has to recieve blank data in the form of power (poe), or recieve packets from any source. A Lan cable tester might do it. We use them to check a cable is wired correctly. Very lower power.

what pins would the power have to be on for it to detect it?

i just tried a cable tester on it and nothing happened.
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,446 (2.42/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
i have been wanting a way of remotely monitoring when the battery is charging and discharging

i am surprised it does not do that.

edit: nvm i see that your router is not solar powered by default.
 
Last edited:
Joined
Apr 19, 2012
Messages
12,062 (2.75/day)
Location
Gypsyland, UK
System Name HP Omen 17
Processor i7 7700HQ
Memory 16GB 2400Mhz DDR4
Video Card(s) GTX 1060
Storage Samsung SM961 256GB + HGST 1TB
Display(s) 1080p IPS G-SYNC 75Hz
Audio Device(s) Bang & Olufsen
Power Supply 230W
Mouse Roccat Kone XTD+
Software Win 10 Pro
what pins would the power have to be on for it to detect it?

i just tried a cable tester on it and nothing happened.

Power is Pins 7&8 (Stripey brown & brown), data is 1,2,3&6, and then 4 & 5 are ground. Note: this is for straight cable, not crossover or any other crazy standard. CAT 5 Type B.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
Power is Pins 7&8 (Stripey brown & brown), data is 1,2,3&6, and then 4 & 5 are ground. Note: this is for straight cable, not crossover or any other crazy standard. CAT 5 Type B.

from some searching on wikipedia it says
A 10BASE-T transmitter sends two differential voltages, +2.5 V or −2.5 V.

so does that mean i just put 2.5v on the data pins and it should show as connected?

i am surprised it does not do that.

edit: nvm i see that your router is not solar powered by default.

the reason i use it is it only uses 0.5w of power so is very easy to power with a 22v 10w solar panel and a 5800mah 4s lithium pack.

the batteries will be mounted with 6mm foam around them to try and stop them freeing and burning.

its had so many combinations of batteries, chargers and regulators till i got to a point where it was cheap and efficient as i could make it.
 

Attachments

  • DSCF4017.jpg
    DSCF4017.jpg
    793.8 KB · Views: 339
Last edited:
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
ok after some more goggling do you think if wired the tx pair to the Rx pair on the same port it would detect its self? then i could use something like a transistor to turn it on and off.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
since ever more googling didnt get me anywhere i done it the old fashoned way of stripping and old router and soldering 2 ports together and slowly cutting wires one by one till i only had 2 left. then took them off and jumped the 2 remaining wires on the port and it lit up. im pretty sure its the tx + and Rx -.

so all i have to do now is make a small relay or transistor that will bridge the 2 pins when power is going into the battery.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
after all that there is no way to check the port status on ddwrt :(

so plan B is an arduino board that im going to make into a battery monitoring station

Arduino lipllypad
2x resistor for votage devider
current sensor
thermistor to drive a TEC plate for overheat and cold protection.
sent over the network via serial and ser2net


this should give me all the read outs i need
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Using resistors for voltage division consumes power since you're "wasting" power to heat in the resistors. It's not very efficient. Making a poor mans PWM voltage controller using a 555 timer and a transistor and an output filter cap might give you better results and more consistent power output. The other problem by using resistors for voltage control is that the voltage applied to the circuit depends on its resistance remaining constant, which electronics seldom are. Just my two cents.
 
Joined
Mar 12, 2009
Messages
1,080 (0.20/day)
Location
SCOTLAND!
System Name Machine XV
Processor Dual Xeon E5 2670 V3 Turbo unlocked
Motherboard Kllisre X99 Dual
Cooling 120mm heatsink
Memory 64gb DDR4 ECC
Video Card(s) RX 480 4Gb
Storage 1Tb NVME SSD
Display(s) 19" + 23" + 17"
Case ATX
Audio Device(s) XFi xtreme USB
Power Supply 800W
Software Windows 10
Using resistors for voltage division consumes power since you're "wasting" power to heat in the resistors. It's not very efficient. Making a poor mans PWM voltage controller using a 555 timer and a transistor and an output filter cap might give you better results and more consistent power output. The other problem by using resistors for voltage control is that the voltage applied to the circuit depends on its resistance remaining constant, which electronics seldom are. Just my two cents.

the router is running from a pwm but the voltage divider is so the arduio can measure the voltage. it can only measure from 0-5v on its analog input so i need to drop the maximum 22v to a maximum of 5v so i dont burn out the arduino.

http://www.ebay.co.uk/itm/400362498785?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
 
Top