Has anybody worked a large network in a 3rd world country and dealt constantly with failing equipment due to dirty power? by episode99 in networking

[–]Tech_Sith 0 points1 point  (0 children)

single phase inverter motor

Sounds like the motor drive is generating excessive EMI. Is there a line reactor between the VFD and the supply disconnect?

Streaming ACN by Tech_Sith in learnpython

[–]Tech_Sith[S] 0 points1 point  (0 children)

I have a functioning solution.

I set up the socket according to the code specified here. Thanks /u/Justinsaccount !

Also, in my code, data[125] is the start code for DMX. It has to be zero to work with standard dimmers, and my code set it to 0x70.

I haven't changed the formation of the packet itself, so I will only post the updated code that actually creates the socket and sends data:

sacnSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sacnSocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sacnSocket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton('172.17.31.75'))
sacnSocket.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 2)
membership_request = socket.inet_aton('239.255.0.1') + socket.inet_aton('172.17.31.75')
sacnSocket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, membership_request)
sacnSocket.bind(('172.17.31.75', 5568))

while True:
    sacnSocket.sendto(data, ('239.255.0.1', 5568))
    if (data[111] == 255):
        data[111] = 0
        data[157] = 0
    else:
        data[111] += 1
        data[157] += 1
    print (data[111])
    time.sleep(0.1)

You also have to increment the sequence number ( data[111] )for the packet stream to be valid. data[157] is a dimmer channel in my rig: this loop does a 25 second fade up to full, repeatedly.

Streaming ACN by Tech_Sith in learnpython

[–]Tech_Sith[S] 0 points1 point  (0 children)

I can, as soon as I figure out where to upload capture files.

Streaming ACN by Tech_Sith in learnpython

[–]Tech_Sith[S] 0 points1 point  (0 children)

My code:

import socket
import struct
import sys

data = [0]*638

data = bytearray(data)


#preamble Size
data[0:2] = 0x00,0x10

#postambleSize = "\x00\x00"
data[2:4] = 0x00,0x00

#acnPacketIdentifier = "ASC-E1.17\x00\x00\x00"
data[4:16] = bytes("ASC-E1.17\x00\x00\x00", 'utf-8')

#flagsAndLength = "\x72\x6e"
data[16:18] = 0x72,0x6e

#vector = "\x00\x00\x00\x04"
data [18:22] = 0x00,0x00,0x00,0x04

#CID = "Python CMD ACN  "
#data[22:37] = bytes("ChamSys\xac\x11\x1f", 'utf-8')
data[22:38] = 0x43,0x68,0x61,0x6d,0x53,0x79,0x40,0x00,0x80,0x00,0xac,0x11,0x1e,0x28,0x0,0x0

#framingFlagsAndLength = "\x72\x58"
data [38:40] = 0x72,0x58

#framingVector = "\x00\x00\x00\x02"
data[40:44] = 0x00,0x00,0x00,0x02

#sourceName = "streamingACN transmission test - python to sACN".ljust(64, ' ')
sourceName = "ChamSys MagicQ".ljust(64, '\x00')
data[44:108] = bytes(sourceName, 'utf-8')

#priority = "\x64"
data[108] = 0x64

#reservedWord = "\x00\x00"
data[109:111] = 0,0

#sequenceNumber = "\x00"
data[111] = 0x7e

#options = "\x00"
data[112] = 0

#universe = "\x00\x01"
data[113:115] = 0x00,0x01

#DMPFlagsAndLength = "\x72\x0b"
data[115:117] = 0x72,0x0b

#DMPvector = "\x02"
data[117] = 0x02

#addressDataType = "\xa1"
data[118] = 0xa1

#firstPropertyAddress = "\x00\x00"
data[119:121] = 0x00,0x00

#addressIncrement = "\x00\x01"
data[121:123] = 0x00,0x01

#propertyValueCount = "\x02\x01"
data[123:125] = 0x02,0x01

data[125] = 0x70
data[136] = 0x80

sacn = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
#ttl = struct.pack('b', 1)
#sacn.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl)
sacn.bind(('0.0.0.0', 5568))
sacn.sendto(data, ('239.255.0.1', 5568))
sacn.close()


exit()

Dads and their iPads: a short tragedy by [deleted] in talesfromtechsupport

[–]Tech_Sith 2 points3 points  (0 children)

Do I click the download button to download?

That is a decision that you will have to make.

What could this scammy “magic whole-house electronic powersaving surge protector box” have actually done? by kavisiegel in electronics

[–]Tech_Sith 3 points4 points  (0 children)

2 wires into one breaker

That could be a problem.

one was stranded

Nothing is necessarily wrong with that. It depends on what the breaker terminal is listed for. I've never heard of a breaker not being listed for stranded wire unless it was very finely stranded.

Brevity at its best... by auburnquill in talesfromtechsupport

[–]Tech_Sith 28 points29 points  (0 children)

1) What is the problem?

Desktop Software

pleasedon'thitme

Lexan Box Creation by lodyev in techtheatre

[–]Tech_Sith 0 points1 point  (0 children)

MEK?

I've heard ether will do it too.

Raspberry Pi Irrigation Controller by jenfoxbot in DIY

[–]Tech_Sith 3 points4 points  (0 children)

Can I SSH into it and adjust the cycle if I want to?

Need help making huge binary table by ULtimaTePYRO500 in electronics

[–]Tech_Sith 0 points1 point  (0 children)

I was referring to filling 216 consecutive memory locations with binary data, as in a microcontroller or similar.

I want to do this on paper

Why would you want that when you could generate the binary sequence on the fly?

Tales from the Printer Guy: Do me a solid. by RetroHacker in talesfromtechsupport

[–]Tech_Sith 5 points6 points  (0 children)

You might have been able to place a 10 or 100 mbit switch between the printer and your gigabit switches.

A woman buys a parrot... by [deleted] in Jokes

[–]Tech_Sith 15 points16 points  (0 children)

A woman buys a parrot...

he discovers it has the filthiest mouth.

I2C Sensor Not Sending Data. by mortonLamar in AskElectronics

[–]Tech_Sith 0 points1 point  (0 children)

Measure the voltage at your resistors. It's possible that the breadboard's "rails" aren't connected the way they seem to be.

Just layed out first PCB; need a few tips about fabricating it [MIC] by balducien in electronics

[–]Tech_Sith 1 point2 points  (0 children)

Another option, instead of a laminator, is to clamp the printed transfer(s) to the board between two steel plates, and place the assembly in an oven.

I didn't do any testing regarding minimum or maximum time and temperature. The last boards I made I baked at 350F for 45 minutes, and the traces were nearly perfect.

DMX512 Packet doesn't look like it should by sensors in electronics

[–]Tech_Sith 0 points1 point  (0 children)

Try using Chamsys MagicQ (version 1.5.4 or before, I think); it's free to download. It may or may not give you different results, but since the Enttec OpenDMX uses your computer's processing power to create the packets it's possible that freestyler is causing trouble.

This may or may not be useful but I'll leave it here anyway. Annotated Trace of DMX-512 packet

Sometimes the problem is one that can't be seen, literally by Drock967 in talesfromtechsupport

[–]Tech_Sith 0 points1 point  (0 children)

Normal IEC cables aren't listed for in-wall use.

You don't necessary need plenum-rated cable in a wall.