Improve network debugger. Update tools to latest ,net version.
This commit is contained in:
parent
98179939a6
commit
494036b7cb
|
@ -3,6 +3,8 @@ import sys
|
||||||
import getopt
|
import getopt
|
||||||
import time
|
import time
|
||||||
import platform
|
import platform
|
||||||
|
import os
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
import msvcrt
|
import msvcrt
|
||||||
|
@ -46,42 +48,62 @@ sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||||
# Number of messages to check through to suppress duplicates ... if two identical messages are received subsequent ones will be suppressed
|
# Number of messages to check through to suppress duplicates ... if two identical messages are received subsequent ones will be suppressed
|
||||||
suppressDupCount = 30
|
suppressDupCount = 30
|
||||||
|
|
||||||
# either use the default port or take the port from the command line
|
print (os.getcwd(), "/debug.txt")
|
||||||
port = 10000
|
|
||||||
if len(sys.argv) > 1:
|
|
||||||
port = sys.argv[1]
|
|
||||||
|
|
||||||
# Bind the socket to the port
|
with open('debug.txt', 'a') as f:
|
||||||
server_address = ('', port)
|
|
||||||
print ('starting up on port', port)
|
|
||||||
sock.bind(server_address)
|
|
||||||
|
|
||||||
recent = []
|
f.write("***********************************\n")
|
||||||
|
now = datetime.now()
|
||||||
|
print("now =", now)
|
||||||
|
f.write(now.strftime("%d/%m/%Y %H:%M:%S"))
|
||||||
|
f.write("\n")
|
||||||
|
f.write("***********************************\n")
|
||||||
|
|
||||||
while True:
|
# either use the default port or take the port from the command line
|
||||||
|
port = 10000
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
port = sys.argv[1]
|
||||||
|
|
||||||
data, address = sock.recvfrom(4096)
|
# Bind the socket to the port
|
||||||
|
server_address = ('', port)
|
||||||
|
print ('starting up on port', port)
|
||||||
|
f.write('starting up on port ')
|
||||||
|
f.write(str(port))
|
||||||
|
f.write("\n")
|
||||||
|
f.flush()
|
||||||
|
sock.bind(server_address)
|
||||||
|
|
||||||
try:
|
recent = []
|
||||||
d = data.decode("utf-8")
|
|
||||||
|
|
||||||
# this suppresses any messages duplicated within the last suppressDupCount messages
|
while True:
|
||||||
if recent.count(d) == 0:
|
|
||||||
print (d)
|
|
||||||
recent.append(d)
|
|
||||||
while len(recent) > suppressDupCount:
|
|
||||||
recent.pop(0)
|
|
||||||
except:
|
|
||||||
#print("Error receiving data.")
|
|
||||||
d = ""
|
|
||||||
|
|
||||||
if kbhit():
|
data, address = sock.recvfrom(4096)
|
||||||
while kbhit():
|
|
||||||
getch()
|
try:
|
||||||
print('')
|
d = data.decode("utf-8")
|
||||||
print('paused - press any key to resume')
|
|
||||||
print('')
|
# this suppresses any messages duplicated within the last suppressDupCount messages
|
||||||
while not kbhit():
|
if recent.count(d) == 0:
|
||||||
time.sleep(1)
|
print(d)
|
||||||
while kbhit():
|
now = datetime.now()
|
||||||
getch()
|
f.write(now.strftime("%d/%m/%Y %H:%M:%S.%f "))
|
||||||
|
f.write(str(d))
|
||||||
|
f.write("\n")
|
||||||
|
f.flush()
|
||||||
|
recent.append(d)
|
||||||
|
while len(recent) > suppressDupCount:
|
||||||
|
recent.pop(0)
|
||||||
|
except:
|
||||||
|
#print("Error receiving data.")
|
||||||
|
d = ""
|
||||||
|
|
||||||
|
if kbhit():
|
||||||
|
while kbhit():
|
||||||
|
getch()
|
||||||
|
print('')
|
||||||
|
print('paused - press any key to resume')
|
||||||
|
print('')
|
||||||
|
while not kbhit():
|
||||||
|
time.sleep(1)
|
||||||
|
while kbhit():
|
||||||
|
getch()
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"runtimeTarget": {
|
||||||
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
|
"signature": ""
|
||||||
|
},
|
||||||
|
"compilationOptions": {},
|
||||||
|
"targets": {
|
||||||
|
".NETCoreApp,Version=v6.0": {
|
||||||
|
"DumpFalconJSON/1.0.0": {
|
||||||
|
"runtime": {
|
||||||
|
"DumpFalconJSON.dll": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"libraries": {
|
||||||
|
"DumpFalconJSON/1.0.0": {
|
||||||
|
"type": "project",
|
||||||
|
"serviceable": false,
|
||||||
|
"sha512": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net6.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "6.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"runtimeTarget": {
|
"runtimeTarget": {
|
||||||
"name": ".NETCoreApp,Version=v5.0",
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
"signature": ""
|
"signature": ""
|
||||||
},
|
},
|
||||||
"compilationOptions": {},
|
"compilationOptions": {},
|
||||||
"targets": {
|
"targets": {
|
||||||
".NETCoreApp,Version=v5.0": {
|
".NETCoreApp,Version=v6.0": {
|
||||||
"FSEQDump/1.0.0": {
|
"FSEQDump/1.0.0": {
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"FSEQDump.dll": {}
|
"FSEQDump.dll": {}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,9 +1,12 @@
|
||||||
{
|
{
|
||||||
"runtimeOptions": {
|
"runtimeOptions": {
|
||||||
"tfm": "net5.0",
|
"tfm": "net6.0",
|
||||||
"framework": {
|
"framework": {
|
||||||
"name": "Microsoft.NETCore.App",
|
"name": "Microsoft.NETCore.App",
|
||||||
"version": "5.0.0"
|
"version": "6.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"runtimeTarget": {
|
"runtimeTarget": {
|
||||||
"name": ".NETCoreApp,Version=v5.0",
|
"name": ".NETCoreApp,Version=v6.0",
|
||||||
"signature": ""
|
"signature": ""
|
||||||
},
|
},
|
||||||
"compilationOptions": {},
|
"compilationOptions": {},
|
||||||
"targets": {
|
"targets": {
|
||||||
".NETCoreApp,Version=v5.0": {
|
".NETCoreApp,Version=v6.0": {
|
||||||
"FV4PLSTReader/1.0.0": {
|
"FV4PLSTReader/1.0.0": {
|
||||||
"runtime": {
|
"runtime": {
|
||||||
"FV4PLSTReader.dll": {}
|
"FV4PLSTReader.dll": {}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,9 +1,12 @@
|
||||||
{
|
{
|
||||||
"runtimeOptions": {
|
"runtimeOptions": {
|
||||||
"tfm": "net5.0",
|
"tfm": "net6.0",
|
||||||
"framework": {
|
"framework": {
|
||||||
"name": "Microsoft.NETCore.App",
|
"name": "Microsoft.NETCore.App",
|
||||||
"version": "5.0.0"
|
"version": "6.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -95,3 +95,16 @@ Build 12: 2021-10-31
|
||||||
- Fix : FPP Sync over wifi not working
|
- Fix : FPP Sync over wifi not working
|
||||||
- Fix : When scheduled playlist does not actually exist SD card read/writes become unstable
|
- Fix : When scheduled playlist does not actually exist SD card read/writes become unstable
|
||||||
|
|
||||||
|
Build 13: 2021-11-??
|
||||||
|
- Enh : Add network debug client to repository
|
||||||
|
- Fix : Handle FSEQ files with > 256 compression blocks
|
||||||
|
- Fix : Address issues with Wifi web confusing itself when multiple pages are open
|
||||||
|
- Fix : APA102 pixels dont display number test pattern correctly
|
||||||
|
- Fix : Address scratchy audio playback due to idle loop starvation - workaround only - more work required on this
|
||||||
|
- Fix : Move utilities to .net 6
|
||||||
|
- Fix : APA109 pixels not working on smart remotes
|
||||||
|
- Fix : 4 channel pixels show wrong end channel in pixel ports page
|
||||||
|
- Fix : Handle off WAV file bitrates better including online tool able to generate different bitrates
|
||||||
|
|
||||||
|
*** If there is a fix in an unreleased build you believe would help fix an issue you are experiencing then reach out to us at
|
||||||
|
support@pixelcontroller.com and we will provide you a pre-release.
|
||||||
|
|
Loading…
Reference in New Issue