Members | Sign In
All Forums > Hardware and LBE construction
avatar

How on Earth does the lightingIpAddress field work?

posted Dec 28, 2012 01:35:36 by KiranShila
So, I'm trying to build a lighting server using an Arduino Ethernet Shield, but I can't seem to get it to communicate with it. I've entered the Arduino's IP address into the lightingIpAddress field in artemis.ini, but the Arduino isn't receiving a connection. It just communicates over HTTP, correct? The Arduino is listening on port 80 for incoming connections, but nothing happens.

So, how does Artemis communicate with the host specified in lightingIpAddress?
page   1
3 replies
avatar
MarkBell said Dec 28, 2012 13:46:39
The lightingIPAddress is only for setting Red Alert to a specific device - i.e. this one. The power strip can have whatever IP address the network assigns it, but it is only for that device, and Artemis only sets it when going to Red Alert. I suspect there is a specific network packet that the device gets, but you'd have to get into the data sheet for that device.

For more general lighting stuff, Artemis uses a DMX-512 protocol, typically accessible through a USB-DMX converter to a DMX controller. I know there is an Arduino shield for DMX (RS-485) communication, why not just use that? This shield can be used as the USB-DMX controller, and you can monkey with it to be more flexible - i.e. take the DMX commands internally and control non-DMX lights and such directly. Currently, the DMX setup in Artemis handles states such as Normal, Shields Up, Tractored for Docking, Docked, Red Alert, and Taking Damage. It also has states for 20%, 40% and 60% damaged, hopefully with more to come in future updates. These can be set to activate up to 512 addresses (variables in a micro) with 0-255 values - which is a lot of values. You could set red alert to trigger 100 different devices with various states of on, off, dimmed, or spinning. You could also take the DMX commands and translate them into network commands for ethernet connected devices, and have more options than just Red Alert.

If you want to get more network bit-bangy, you could look at the OSC section that Tom Wyatt posted in this forum also. There are ways of making it talk to Arduino also, although I don't know much about it.
avatar
harpur.mark said Jun 22, 2013 22:14:07
The device's datasheet should be irrelevant, the problem is that Artemis.exe isn't sending any packet at all. I've been trying to catch it with wireshark but I can't find it at all. I can capture other client's red alert by a specific data string but the exe isn't sending this specific packet.
avatar
MarkBell said Jun 26, 2013 12:45:34
Well, there ya go - it may have been (un/intentionally) deprecated sometime in the last few versions, since very few people ended up using that device and started using the much more flexible DMX protocol. There are plenty of DMX-controlled relays and AC outlets, which can easily reproduce the effect from the previous device. Also, there are Arduino shields that handle DMX communications, so no real need to go this route. You should be able to read the RS-485 signalling from the game if you've got a USB-Serial device, much like this one.

Short answer - go to DMX and go to town :)

Again, if you want to go the network sniffing route, check out Tom Wyatt's OSC.
Login below to reply: