PDA

View Full Version : Hill 320 to run on falcon pi ??????



derickgrey
09-05-2015, 11:30 AM
Hi last year i ran my show on pc (dmx and hill320) with vixen
I made large led net with 320 leds (for the roof) that run off the hill 320.

This year i have got two e1.31 bridges ,led pixels, dmx controllers , renard controllers and a raspberry pi,running falcon player.:biggrin2:

I would like to know if there is any way to get the falcon pi to run the hill 320 controller as i have the led net and the controller
Would be a shame to just toss it , was a lot of work that went into making them ,just a waist :(

hoping someone could help me with this

If there's some conversion to be made on the hill320 i can do it cause i made the hill320 myself and know a little about electronics :hmm:

thanx

i_wannabe
09-05-2015, 04:27 PM
I am not an expert nor do I play one on TV
I too built a 320 and had fun with it
The Hill320 uses the printer port (parallel port) to communicate. A quick google turned up this link
https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=23688
It would take a lot of work and some programming

CaptainMurdoch
09-05-2015, 11:46 PM
Do you already have the Falcon Player up and running? Based on my quick reading of the code to drive the hill320, I think this wouldn't be too hard to add to FPP using a MCP23017 chip and a little code on the FPP side. There wouldn't be any parts other than the chip
Itself and some way to connect it to the Pi and printer cable.

How many people are still using the hill320 boards?

derickgrey
09-06-2015, 03:45 AM
Hi guys

Thanks for the reply

Yes i have set up the falcon pi player on a raspberry pi ,and have done some testing to see if it works correctly with the e1.31 bridge .

I don't have much experience with writing code ,and wouldn't even know where to start .
Is there any place where there would be a walk through for this ?
and which which channel out puts would i set it up to?...... ,the GPIO-595 ????????

dont think there is many ppl using the hill 320 anymore
its just that i have it and would like to use it
its alot of cable and time to connect 320 leds on a 10m x5 m led net ,just dont wanna toss it out cause of simple connection.

I was just thinking of going back to using the pc for the show ,but last year running +/- 800 channels i got some lagging now and then while show was running.
This year im planning on running 4000 channels and ive read on the forums that the falcon pi player is the way to go to stop the lagging of show

thanks guys

CaptainMurdoch
09-06-2015, 10:45 AM
The GPIO-595 is for outputs that use a 595 type shift register, but the hill320 is not one of them.

There isn't any walk through for adding a new Channel Output to FPP. This one would be a little different and would require writing to the mcp23017 via the i2c bus.

Are you proficient enough to wire up a chip to the GPIO pins on the Pi using a breakout board or development PCB if you had a diagram showing you the pins to connect to the Pi and to your parallel cable?

I am the lead FPP developer, if you want to pick up a pair of MCP23017 DIP chips and send me one I can take a look at adding a hill320 output to FPP for you. I think it would be pretty easy to do based on the code I have looked at since seeing seeing this thread.

The MCP could also be used as additional GPIO by other users so I would probably also look at adding support for that use later.

derickgrey
09-06-2015, 02:27 PM
Hi Captain

Thanks for the help

I am capable of to read circuit diagrams and make simple circuit pcb's if i had a diagram

I am willing to buy the chips .
There is only one problem with that , I live in South Africa and for me to buy a 15 rand (your 1$ ) chip here
and ship it to you, will cost me more on on freight than the chip and will take forever (our postal system is sh!+)

Is there any other way we could do it??
I can paypal you the cost??
or me try buy a chip online at one of your local stores and ship it straight to you?

if you give me your preferred electronics supplier and address, maybe i can pay them online and ship it to you directly

Thanks for all the help

jnealand
09-06-2015, 04:00 PM
Any chance a USB to parallel adapter would help here? I have used them with printers, but not with lights or anything else.

i_wannabe
09-06-2015, 04:54 PM
I believe the USB adapters are printer specific and the ports are not directly addressable.
If Falcon Player had HILL320 I would play with it some time but I doubt many of us are left.

CaptainMurdoch
09-07-2015, 10:15 AM
I will just order a chip, it looks like I can get a couple off eBay for a few bucks. This looks very simple to implement in code so I may take a shot at coding before I get the chip if I need a short distraction from other things I am working on. I will report back here.

derickgrey
09-07-2015, 11:09 AM
Thanks again Captain

Will be looking out for your update
Sorry for the inconvenience

And well done to you guys for the effort you have put into the falcon player
DIY Christmas would not have been possible without guys like you that putting back into the community

THANKS

derickgrey
10-27-2015, 10:41 AM
Hi

Eventually got my chips any news on getting the hill working ?

CaptainMurdoch
10-28-2015, 06:38 PM
Unfortunately I haven't had a chance yet to spend on it so the chip is just sitting on my desk right now. I can't promise anything for this year but will try to look at it if I can get a few other things off my TODO list first.

CaptainMurdoch
10-31-2015, 02:08 AM
I took a break from other things and put together some code tonight. I haven't tested it with a MCP23017 yet, but the code is pretty simple so hopefully it should be easy to debug if there are any issues.

Do you have a Pi and breadboard to hookup the MCP and parallel connections?

You'll need to install the FPP v1.5 image on the Pi if you don't have that running already. I can hook up my MCP to do some basic testing and then post a set of pinouts to hook up along with the FPP config entry that you will need to add to configure the channel output.

derickgrey
11-01-2015, 04:24 AM
Hi Captain

Thanks for looking at this for me:rolleyes:

I do have a small bread board and parallel connection

Busy installing ffp v1.5 now, had to get a 8 gig sd

if you can give me the circuit diagram and the config I can do some testing aswell

thank you

do I upgrade the ffp to 1.6 ??

CaptainMurdoch
11-01-2015, 05:15 PM
Yeah, go ahead and upgrade to v1.6. For testing you will switch to the master branch via a page in the UI. I will try to post the instructions and diagram later today.

CaptainMurdoch
11-03-2015, 01:13 AM
I haven't had a chance to hookup the circuit yet to test the code, but here is the circuit and config file you will need to use to test:



MCP Pin Connection
---------- ------------------------
9 (VDD) - Pi Pin 4 (5V)
10 (VSS) - Pi Pin 6 (Ground) AND DB25 Parallel Port Pin 25
12 (SCL) - Pi Pin 5 (SCL)
13 (SDA) - Pi Pin 3 (SDA)
18 (Reset)- Pi Pin 4 (5V)
15 (A0) - Pi Pin 6 (Ground)
16 (A1) - Pi Pin 6 (Ground)
17 (A2) - Pi Pin 6 (Ground)

1 (GPB0) - DB25 Parallel Port Pin 1
2 (GPB1) - DB25 Parallel Port Pin 14
21 (GPA0) - DB25 Parallel Port Pin 2
22 (GPA1) - DB25 Parallel Port Pin 3
23 (GPA2) - DB25 Parallel Port Pin 4
24 (GPA3) - DB25 Parallel Port Pin 5
25 (GPA4) - DB25 Parallel Port Pin 6
26 (GPA5) - DB25 Parallel Port Pin 7
27 (GPA6) - DB25 Parallel Port Pin 8
28 (GPA7) - DB25 Parallel Port Pin 9


If you want to go ahead and give it a shot, you can do so. It will probably be a few days before I can get to hooking up the circuit and test LED's and then add some test code to slow the output down far enough to see if it is toggling the LED's when it is supposed to. The logic is straight from the ComputerChristmas.com web site, so hopefully it works or is not too far off.

In FPP, you will need to switch to the master code branch. You can do this by going to the 'developer.php' page. There isn't a link on the menu, you have to change the filename in the URL. Once on the developer.php page, you can select 'master' from the Git branch dropdown and it will switch your system to the master code branch.

To test, you will need to edit the /home/fpp/media/config/channeloutputs.json file and add a channeloutput section. Unless you have configured LED panels on the Pi, this file probably won't exist yet, so you can just create this file and paste in the following contents:



{
"channelOutputs": [
{
"type": "Hill320",
"enabled": 1,
"startChannel": 1,
"channelCount": 320
}
]
}


Restart fppd after editting the .json file. Then if the code works the first time, :) you should be able to play a sequence. If it doesn't work, we'll need to turn on some debug logging. Go to the FPP Settings page and set your log level to Debug and make sure the 'Most' checkbox is checked. This will print out some debug entries to the log. The log can be seen by going to the Logs tab of the FPP File Manager and looking at the 'fppd.log' file.

derickgrey
11-13-2015, 02:16 AM
Hi Captain

Been out of the country for a wile

had some time last night to try it out , a couple of questions( couldnt get an out put on hill controller :sad: )

the file i need to edit is that on the usb media flash drive under the config folder ?,and
do i switch off the pi remove the flash, edit file on my pc then put back in pi and restart fpp?
do i need to configure the outputs some where on the pi ?
do take the fpp out of master mode when im done?
will there any output channel configurations to be done ,i cant find any?
can i plug the hill controller in to test or do i just put leds on the parallel port ?


thanks Derick

derickgrey
11-13-2015, 12:06 PM
hi

ok did some more testing still no output on the hill 320

here is part of the log file when trying to run sequence

2015-11-13 18:00:02 (4481) command.c:583:P 2,1,Playlist Started,,,,,,,,,,
2015-11-13 18:00:02 (4481) Playlist.cpp:270:PlayListPlayingInit() playing test_hill once.
2015-11-13 18:00:02 (4481) Playlist.cpp:231:Opening File Now /home/fpp/media/playlists/test_hill
2015-11-13 18:00:02 (4481) Playlist.cpp:154:Playlist Starting
2015-11-13 18:00:02 (4481) Playlist.cpp:496:playListCount=1 CurrentPlaylistEntry = 0
2015-11-13 18:00:02 (4481) mediadetails.c:66:ParseMedia(Armin van Buuren - A State of Trance Festival_ Sydney _Australia_.mp3)
2015-11-13 18:00:02 (4481) mediadetails.c:123: Title : A State of Trance Festival, Sydney (Australia)
2015-11-13 18:00:02 (4481) mediadetails.c:124: Artist : Armin van Buuren
2015-11-13 18:00:02 (4481) mediadetails.c:125: Album :
2015-11-13 18:00:02 (4481) mediadetails.c:126: Year : 0
2015-11-13 18:00:02 (4481) mediadetails.c:127: Comment :
2015-11-13 18:00:02 (4481) mediadetails.c:128: Track : 0
2015-11-13 18:00:02 (4481) mediadetails.c:129: Genre :
2015-11-13 18:00:02 (4481) mediadetails.c:130: Properties:
2015-11-13 18:00:02 (4481) mediadetails.c:131: Length : 7115
2015-11-13 18:00:02 (4481) mediadetails.c:132: Seconds : 35
2015-11-13 18:00:02 (4481) mediadetails.c:133: Minutes : 118
2015-11-13 18:00:02 (4481) mediadetails.c:134: Bitrate : 192
2015-11-13 18:00:02 (4481) mediadetails.c:135: Sample Rate: 44100
2015-11-13 18:00:02 (4481) mediadetails.c:136: Channels : 2
2015-11-13 18:00:02 (4481) Sequence.cpp:90:OpenSequenceFile(hill test.fseq, 0)
2015-11-13 18:00:02 (4481) Sequence.cpp:245:Sequence File Information
2015-11-13 18:00:02 (4481) Sequence.cpp:246:seqFilename : hill test.fseq
2015-11-13 18:00:02 (4481) Sequence.cpp:248:seqVersion : 1.0
2015-11-13 18:00:02 (4481) Sequence.cpp:249:seqFormatID : FSEQ
2015-11-13 18:00:02 (4481) Sequence.cpp:250:seqChanDataOffset : 28
2015-11-13 18:00:02 (4481) Sequence.cpp:251:seqFixedHeaderSize : 28
2015-11-13 18:00:02 (4481) Sequence.cpp:252:seqStepSize : 3392
2015-11-13 18:00:02 (4481) Sequence.cpp:253:seqNumPeriods : 1200
2015-11-13 18:00:02 (4481) Sequence.cpp:254:seqStepTime : 50ms
2015-11-13 18:00:02 (4481) Sequence.cpp:255:seqNumUniverses : 0 *
2015-11-13 18:00:02 (4481) Sequence.cpp:256:seqUniverseSize : 0 *
2015-11-13 18:00:02 (4481) Sequence.cpp:257:seqGamma : 1 *
2015-11-13 18:00:02 (4481) Sequence.cpp:258:seqColorEncoding : 2 *
2015-11-13 18:00:02 (4481) Sequence.cpp:259:seqRefreshRate : 20
2015-11-13 18:00:02 (4481) Sequence.cpp:260:seqFileSize : 4070428
2015-11-13 18:00:02 (4481) Sequence.cpp:261:seqDuration : 60
2015-11-13 18:00:02 (4481) Sequence.cpp:262:'*' denotes field is currently ignored by FPP
2015-11-13 18:00:02 (4481) channeloutput/channeloutputthread.c:214:StartChannelOutputThread ()
2015-11-13 18:00:02 (4481) channeloutput/channeloutputthread.c:232:Using mediaOffset of 0.000
2015-11-13 18:00:02 (6962) channeloutput/channeloutputthread.c:98:RunChannelOutputThread() starting
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/channeloutputthread.c:172:Output Thread: Loop: 50000us, Send: 4007us, Read: 22us, Sleep: 45968us, FrameNum: 1
2015-11-13 18:00:02 (4481) Scheduler.cpp:403:NowSecs = 496802, CurrEndSecs = -1 (-496803 seconds away)
2015-11-13 18:00:02 (4481) command.c:583:s 2,1,100,/home/fpp/media/playlists/test_hill,s,hill test.fseq,Armin van Buuren - A State of Trance Festival_ Sydney _Australia_.mp3,1,1,0,60,No playlist scheduled.,,0
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:02 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:03 (4481) Scheduler.cpp:403:NowSecs = 496803, CurrEndSecs = -1 (-496804 seconds away)
2015-11-13 18:00:03 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:00:03 (6962) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied


i dont know what to look for maybe you can see some thing

regards

derickgrey
11-13-2015, 12:22 PM
this is the log file from start up to play test sequence


2015-11-13 18:16:53 (4521) settings.c:969:Volume change: 100
2015-11-13 18:16:53 (4521) log.c:218:======================================== =
2015-11-13 18:16:53 (4521) log.c:219:FPP 1.5-stage-320-g1b38d0b
2015-11-13 18:16:53 (4521) log.c:220:Branch: master
2015-11-13 18:16:53 (4521) log.c:221:======================================== =
2015-11-13 18:16:53 (4528) gpio.c:62:SetupGPIOInput()
2015-11-13 18:16:53 (4528) gpio.c:101:0 GPIO Input(s) enabled
2015-11-13 18:16:53 (4528) channeloutput/FPD.c:384:FPD_IsConfigured()
2015-11-13 18:16:53 (4528) channeloutput/E131.c:340:E131_IsConfigured()
2015-11-13 18:16:53 (4528) channeloutput/E131.c:218:Opening File Now /home/fpp/media/universes
2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:1:1:512:1 192.168.1.206
2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:2:513:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:3:1025:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:4:1537:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:5:2049:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:6:2561:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:320:E131_Open()
2015-11-13 18:16:53 (4528) channeloutput/E131.c:141:Initializing E1.31 output
2015-11-13 18:16:53 (4528) channeloutput/E131.c:218:Opening File Now /home/fpp/media/universes
2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:1:1:512:1 192.168.1.206
2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:2:513:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:3:1025:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:4:1537:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:5:2049:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:310:E1.31 Universe: 1:6:2561:512:1

2015-11-13 18:16:53 (4528) channeloutput/E131.c:148:E131LocalAddress = 192.168.1.113
2015-11-13 18:16:53 (4528) channeloutput/channeloutput.c:158:Loading /home/fpp/media/config/channeloutputs.json
2015-11-13 18:16:53 (4528) channeloutput/channeloutput.c:234:Unknown Channel Output type: Hill320
2015-11-13 18:16:53 (4528) channeloutput/channeloutput.c:250:Loading /home/fpp/media/channeloutputs
2015-11-13 18:16:53 (4528) channeloutput/channeloutput.c:376:1 Channel Outputs configured
2015-11-13 18:16:53 (4528) Sequence.cpp:426:Sending Blanking Data
2015-11-13 18:16:53 (4528) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:16:53 (4528) PixelOverlay.cpp:69:InitializeChannelDataMemoryMap ()
2015-11-13 18:16:53 (4528) PixelOverlay.cpp:412:LoadChannelMemoryMapData()
2015-11-13 18:16:53 (4528) fppd.c:186:MainLoop()
2015-11-13 18:16:53 (4528) command.c:71:Initializing Command Module
2015-11-13 18:16:53 (4528) Scheduler.cpp:439:Loading Schedule from /home/fpp/media/schedule
2015-11-13 18:16:53 (4528) Scheduler.cpp:516:Current Schedule: (Status: '+' = Enabled, '-' = Disabled, '!' = Outside Date Range, '*' = Repeat)
2015-11-13 18:16:53 (4528) Scheduler.cpp:517:St Start & End Dates Days Start & End Times Playlist
2015-11-13 18:16:53 (4528) Scheduler.cpp:518:--- ----------------------- ------------ ------------------- ---------------------------------------------
2015-11-13 18:16:53 (4528) Scheduler.cpp:565://////////////////////////////////////////////////
2015-11-13 18:16:53 (4528) controlrecv.c:57:InitControlSocket()
2015-11-13 18:16:53 (4528) fppd.c:210:Starting main processing loop
2015-11-13 18:16:53 (4528) command.c:583:s 2,0,100,No playlist scheduled.,
2015-11-13 18:16:53 (4528) Scheduler.cpp:439:Loading Schedule from /home/fpp/media/schedule
2015-11-13 18:16:53 (4528) Scheduler.cpp:516:Current Schedule: (Status: '+' = Enabled, '-' = Disabled, '!' = Outside Date Range, '*' = Repeat)
2015-11-13 18:16:53 (4528) Scheduler.cpp:517:St Start & End Dates Days Start & End Times Playlist
2015-11-13 18:16:53 (4528) Scheduler.cpp:518:--- ----------------------- ------------ ------------------- ---------------------------------------------
2015-11-13 18:16:53 (4528) Scheduler.cpp:565://////////////////////////////////////////////////
2015-11-13 18:16:53 (4528) Scheduler.cpp:174:nextEntryIndex = -1, least diff = 604800, weekly index = 0
2015-11-13 18:16:53 (4528) Scheduler.cpp:174:nextEntryIndex = -1, least diff = 604800, weekly index = 0
2015-11-13 18:16:54 (4528) command.c:583:s 2,0,100,No playlist scheduled.,
2015-11-13 18:16:55 (4528) command.c:583:s 2,0,100,No playlist scheduled.,
....
...
...
2015-11-13 18:17:02 (4528) command.c:583:P 2,1,Playlist Started,,,,,,,,,,
2015-11-13 18:17:02 (4528) Playlist.cpp:270:PlayListPlayingInit() playing test_hill once.
2015-11-13 18:17:02 (4528) Playlist.cpp:231:Opening File Now /home/fpp/media/playlists/test_hill
2015-11-13 18:17:02 (4528) Playlist.cpp:154:Playlist Starting
2015-11-13 18:17:02 (4528) Playlist.cpp:496:playListCount=1 CurrentPlaylistEntry = 0
2015-11-13 18:17:02 (4528) mediadetails.c:66:ParseMedia()
2015-11-13 18:17:02 (4528) Sequence.cpp:90:OpenSequenceFile(hill test.fseq, 0)
2015-11-13 18:17:03 (4528) Sequence.cpp:245:Sequence File Information
2015-11-13 18:17:03 (4528) Sequence.cpp:246:seqFilename : hill test.fseq
2015-11-13 18:17:03 (4528) Sequence.cpp:248:seqVersion : 1.0
2015-11-13 18:17:03 (4528) Sequence.cpp:249:seqFormatID : FSEQ
2015-11-13 18:17:03 (4528) Sequence.cpp:250:seqChanDataOffset : 28
2015-11-13 18:17:03 (4528) Sequence.cpp:251:seqFixedHeaderSize : 28
2015-11-13 18:17:03 (4528) Sequence.cpp:252:seqStepSize : 3392
2015-11-13 18:17:03 (4528) Sequence.cpp:253:seqNumPeriods : 1200
2015-11-13 18:17:03 (4528) Sequence.cpp:254:seqStepTime : 50ms
2015-11-13 18:17:03 (4528) Sequence.cpp:255:seqNumUniverses : 0 *
2015-11-13 18:17:03 (4528) Sequence.cpp:256:seqUniverseSize : 0 *
2015-11-13 18:17:03 (4528) Sequence.cpp:257:seqGamma : 1 *
2015-11-13 18:17:03 (4528) Sequence.cpp:258:seqColorEncoding : 2 *
2015-11-13 18:17:03 (4528) Sequence.cpp:259:seqRefreshRate : 20
2015-11-13 18:17:03 (4528) Sequence.cpp:260:seqFileSize : 4070428
2015-11-13 18:17:03 (4528) Sequence.cpp:261:seqDuration : 60
2015-11-13 18:17:03 (4528) Sequence.cpp:262:'*' denotes field is currently ignored by FPP
2015-11-13 18:17:03 (4528) channeloutput/channeloutputthread.c:214:StartChannelOutputThread ()
2015-11-13 18:17:03 (4528) channeloutput/channeloutputthread.c:232:Using mediaOffset of 0.000
2015-11-13 18:17:03 (4574) channeloutput/channeloutputthread.c:98:RunChannelOutputThread() starting
2015-11-13 18:17:03 (4574) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:17:03 (4574) channeloutput/channeloutputthread.c:172:Output Thread: Loop: 50000us, Send: 4048us, Read: 17us, Sleep: 45931us, FrameNum: 1
2015-11-13 18:17:03 (4528) Scheduler.cpp:403:NowSecs = 497823, CurrEndSecs = 0 (-497823 seconds away)
2015-11-13 18:17:03 (4528) command.c:583:s 2,1,100,/home/fpp/media/playlists/test_hill,s,hill test.fseq,,1,1,0,60,No playlist scheduled.,,0
2015-11-13 18:17:03 (4574) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:17:03 (4574) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-13 18:17:03 (4574) channeloutput/E131.c:197:sendto() failed for

CaptainMurdoch
11-13-2015, 12:23 PM
had some time last night to try it out , a couple of questions( couldnt get an out put on hill controller :sad: )

the file i need to edit is that on the usb media flash drive under the config folder ?,and
do i switch off the pi remove the flash, edit file on my pc then put back in pi and restart fpp?
do i need to configure the outputs some where on the pi ?
do take the fpp out of master mode when im done?
will there any output channel configurations to be done ,i cant find any?
can i plug the hill controller in to test or do i just put leds on the parallel port ?


The channeloutputs.json file is in /home/fpp/media/config/channeloutputs.json. Can you post or IM me a copy of that so I can see what it looks like.

You can ssh into the Pi to edit that file or perform the "shutdown/copy to pc/edit/put back in Pi" sequence that you mentioned above.

Editting that file will add the channel output necessary for the new Channel Output for the Hill320. There is no UI for this yet.

This should work in master or player mode, it is a regular channel output. I would test with the FPP Channel Tester though, to exclude other config issues regarding bridge mode or the .fseq file.

You can use either LED's or the Hill to test. The chip should be putting out 5V to match the paralell spec, so if you use LED's, use a resistor as well.

Your log file didn't include the entries early enough to show me whether the Hill320 output was enabled. Can you look further back in the logs right after fppd was restarted and you should see something about the Hill320 output and it's config (start channel and channel count).


EDIT: I just saw this "2015-11-13 18:16:53 (4528) channeloutput/channeloutput.c:234:Unknown Channel Output type: Hill320" in your new log, which makes me think that you did not switch to the master branch using the developer.php page in the UI. Are you running the v1.6 release branch or master development branch?

derickgrey
11-13-2015, 03:36 PM
Hi captain

i did change to master development branch on the developer.php page
i atached a screen shot of my ui for you to see and the channeloutputs.json i made

what is the user name and password for ssh

thanks for all the help

how does one clear the error log ?

CaptainMurdoch
11-13-2015, 06:37 PM
OK, I found a bug and pushed a fix. The channel output wasn't getting initialized properly. Can you go to the About page and click the manual update button to pull in the fixes?

SSH username and password is "fpp" and "falcon". We don't use the default pi/raspberry since FPP is multi-platform.

To clear a log file, you can go to the Logs tab of the FPP File Manager and select a log file and click the Delete button. That should work for any of the FPP logs, but not the syslog and messages system log files.

derickgrey
11-14-2015, 02:16 AM
Ok done the up date looks like it is initializing the hill now but still not getting any out puts
maybe not pointing to the right pins ??
used display testing to test



2015-11-14 08:04:16 (4535) settings.c:969:Volume change: 100
2015-11-14 08:04:16 (4535) log.c:218:======================================== =
2015-11-14 08:04:16 (4535) log.c:219:FPP 1.5-stage-322-g31e53bd
2015-11-14 08:04:16 (4535) log.c:220:Branch: master
2015-11-14 08:04:16 (4535) log.c:221:======================================== =
2015-11-14 08:04:16 (4542) gpio.c:62:SetupGPIOInput()
2015-11-14 08:04:16 (4542) gpio.c:101:0 GPIO Input(s) enabled
2015-11-14 08:04:16 (4542) channeloutput/FPD.c:384:FPD_IsConfigured()
2015-11-14 08:04:16 (4542) channeloutput/E131.c:340:E131_IsConfigured()
2015-11-14 08:04:16 (4542) channeloutput/E131.c:218:Opening File Now /home/fpp/media/universes
2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:1:1:512:1 192.168.1.206
2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:2:513:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:3:1025:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:4:1537:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:5:2049:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:6:2561:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:320:E131_Open()
2015-11-14 08:04:16 (4542) channeloutput/E131.c:141:Initializing E1.31 output
2015-11-14 08:04:16 (4542) channeloutput/E131.c:218:Opening File Now /home/fpp/media/universes
2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:1:1:512:1 192.168.1.206
2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:2:513:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:3:1025:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:4:1537:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:5:2049:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:310:E1.31 Universe: 1:6:2561:512:1

2015-11-14 08:04:16 (4542) channeloutput/E131.c:148:E131LocalAddress = 192.168.1.113
2015-11-14 08:04:16 (4542) channeloutput/channeloutput.c:158:Loading /home/fpp/media/config/channeloutputs.json
2015-11-14 08:04:16 (4542) channeloutput/Hill320.cpp:81:Hill320Output::Hill320Output(0, 320)
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:82:ChannelOutputBase::Init(J SON)
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:67:ChannelOutputBase::Init()
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:186:ChannelOutputBase::Start OutputThread()
2015-11-14 08:04:16 (4543) channeloutput/ChannelOutputBase.cpp:177:RunChannelOutputBaseThre ad()
2015-11-14 08:04:16 (4543) channeloutput/ChannelOutputBase.cpp:254:ChannelOutputBase::Outpu tThread()
2015-11-14 08:04:16 (4543) channeloutput/ChannelOutputBase.cpp:261:ChannelOutputBase thread started
2015-11-14 08:04:16 (4542) channeloutput/Hill320.cpp:212:Hill320Output::DumpConfig()
2015-11-14 08:04:16 (4542) channeloutput/Hill320.cpp:214: fd : -1
2015-11-14 08:04:16 (4542) channeloutput/Hill320.cpp:215: BoxCount: 40
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:160:ChannelOutputBase::DumpC onfig()
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:162: Output Type : Hill320
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:163: Max Channels : 320
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:164: Start Channel : 1
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:165: Channel Count : 320
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:166: Use Output Thread: 1
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:167: Thread Running : 1
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:168: Run Thread : 1
2015-11-14 08:04:16 (4542) channeloutput/ChannelOutputBase.cpp:169: Data Waiting : 0
2015-11-14 08:04:16 (4542) channeloutput/channeloutput.c:254:Loading /home/fpp/media/channeloutputs
2015-11-14 08:04:16 (4542) channeloutput/channeloutput.c:378:2 Channel Outputs configured
2015-11-14 08:04:16 (4542) Sequence.cpp:426:Sending Blanking Data
2015-11-14 08:04:16 (4542) channeloutput/E131.c:197:sendto() failed for E1.31 Universe 2 with error: Permission denied
2015-11-14 08:04:16 (4542) PixelOverlay.cpp:69:InitializeChannelDataMemoryMap ()
2015-11-14 08:04:16 (4542) PixelOverlay.cpp:412:LoadChannelMemoryMapData()
2015-11-14 08:04:16 (4542) fppd.c:186:MainLoop()
2015-11-14 08:04:16 (4542) command.c:71:Initializing Command Module
2015-11-14 08:04:16 (4542) Scheduler.cpp:439:Loading Schedule from /home/fpp/media/schedule
2015-11-14 08:04:16 (4542) Scheduler.cpp:516:Current Schedule: (Status: '+' = Enabled, '-' = Disabled, '!' = Outside Date Range, '*' = Repeat)
2015-11-14 08:04:16 (4542) Scheduler.cpp:517:St Start & End Dates Days Start & End Times Playlist
2015-11-14 08:04:16 (4542) Scheduler.cpp:518:--- ----------------------- ------------ ------------------- ---------------------------------------------
2015-11-14 08:04:16 (4542) Scheduler.cpp:565://////////////////////////////////////////////////
2015-11-14 08:04:16 (4542) controlrecv.c:57:InitControlSocket()
2015-11-14 08:04:16 (4542) fppd.c:210:Starting main processing loop
2015-11-14 08:04:16 (4542) Scheduler.cpp:439:Loading Schedule from /home/fpp/media/schedule
2015-11-14 08:04:16 (4542) Scheduler.cpp:516:Current Schedule: (Status: '+' = Enabled, '-' = Disabled, '!' = Outside Date Range, '*' = Repeat)
2015-11-14 08:04:16 (4542) Scheduler.cpp:517:St Start & End Dates Days Start & End Times Playlist
2015-11-14 08:04:16 (4542) Scheduler.cpp:518:--- ----------------------- ------------ ------------------- ---------------------------------------------
2015-11-14 08:04:16 (4542) Scheduler.cpp:565://////////////////////////////////////////////////
2015-11-14 08:04:16 (4542) Scheduler.cpp:174:nextEntryIndex = -1, least diff = 604800, weekly index = 0
2015-11-14 08:04:17 (4542) Scheduler.cpp:174:nextEntryIndex = -1, least diff = 604800, weekly index = 0
2015-11-14 08:04:17 (4542) command.c:583:s 2,0,100,No playlist scheduled.,
2015-11-14 08:04:18 (4542) command.c:583:s 2,0,100,No playlist scheduled.,

derickgrey
11-14-2015, 02:42 AM
ok logged in to ssh and went to the file here is a screen shot don't know if it helps any ,cause i'm clearly not cleaver enough to work in the ssh shell :huh:

CaptainMurdoch
11-14-2015, 04:04 AM
OK, I finally got a chance to actually wire up my MCP23017 to a few LED's and I found another bug, so that is fixed now as well. I think that you may get blinky when you pull in the latest updates and test again. The LED's connected to my MCP23017 seem to be blinking in the right spots if I read the Hill320 spec correctly.

Can you pull in the latest updates and try again?

derickgrey
11-14-2015, 05:50 AM
Hi captain



GREAT !! I'm getting all blinky now ,but they don't follow a sequence made for the hill ,looks like it is following the same sequence as the first e1.31 out puts

do i need to program the hill as the first 320 channles (in vixen 3) or is there away to set in falcon?

Regards Derick

CaptainMurdoch
11-14-2015, 06:05 AM
In the channeloutputs.json file you need to set the desired start channel and then restart fppd via the button in the UI.

You should probably turn off automatic updates on the about page since you are running master code. I wanted to have a v1.7 release but it is getting late for that and time is very short right now so this feature may only exist in the master development code branch for a while.

derickgrey
11-14-2015, 06:47 AM
:rolleyes::yeah::thup:

Thanks for all your help Captain

looks like it is all working fine now just have to set up more lights and do some sequence checks and make a small pcb for the MCP23017 to neaten it up

I've turned of automatic updates and wont update till i see release 1.7

last question for now .Do I switch back to release 1.6 or leave it in master
Thanks again for all your help !!!

Derick

CaptainMurdoch
11-14-2015, 11:09 AM
You need to leave it on master until the next release then manually switch to that release branch via the developer page. I don't know that I will have time to get a UI setup before then but the backend code will work if you edit the channeloutputs.json file as you have done.

I'm glad it is working for you. I like giving our users options and letting them use what they have as long as they want or need to use it.

derickgrey
11-14-2015, 01:21 PM
:thup::biggrin:Thanks to u and the Falcon team!!