Page 1 of 1

Developing for Synology NAS

Posted: Sun Nov 16, 2014 11:59 am
by Baldrick
So, I have had a break of more than 18 months from any coding & am now feeling just about ready to go again. (I think.... :? )
I have a little project I started in PB as a bit of proof of concept a couple of years ago which I find still runs in the 5.22 LTS version, so I am thinking I might like to use this as a bit of a base to work with.

Trouble is I would really like to have it run on the Synology NAS units.
Anybody here had any experience writing for these units?
& if so, what language, compiler, etc would you recommend to use for me to port my code over to?

Re: Developing for Synology NAS

Posted: Sun Nov 16, 2014 12:37 pm
by Fangbeast
G'day David, did you have a look here yet??

https://www.synology.com/en-us/support/developer

They mention "Supported programming languages vary from C, C++, Java, and scripting languages like Perl and Python"

And, I image QNap wouldn't be much different than Synology as they both run the same Linux substructure and seem to share some of the same apps like "Downloadstation" and "filestation" among other.

I finally got myself a Qnap with 8 terabytes (busy saving for more space) and this interests me from the end user perspective.

Re: Developing for Synology NAS

Posted: Sun Nov 16, 2014 1:15 pm
by Baldrick
Fangbeast wrote:G'day David, did you have a look here yet??

https://www.synology.com/en-us/support/developer
Hi fangles, long time no speak!! (But that is pretty much my fault except you had your pm disabled last time I tried to contact you :)
Yes, I have all that information in your link. I am actually talking with Synology atm about my project & currently waiting on some advice from their engineers.
I am leaning for now towards 'C' mainly as I have written with it before & in places where I get stuck I write routines in PB to get my head around things, then port back to 'C', so should hopefully be able to knock the rust out of my feeble little brain without too much trouble.... (Again, which editor, compiler, etc :? )
I am also juggling with the idea of Java which would possibly make life easier for writing the Android component, although again, the Eclipse editor will work with 'C' also if it is set up properly apparently.

Edit:
By the way, yes, Qnap & Synology both look & feel almost the same from the end user point of view & both are pretty awsome units from what I have seen. :D

Re: Developing for Synology NAS

Posted: Sun Nov 16, 2014 1:24 pm
by Danilo
Baldrick wrote:(Again, which editor, compiler, etc :? )
It is all explained in the DSM Developer Guide.pdf.

You cross-compile on a 32-bit Linux box. Use whatever editor you like. ;)

Re: Developing for Synology NAS

Posted: Mon Nov 17, 2014 7:22 am
by Baldrick
Think I been out of the game too long. all seems very daunting at the moment! :(

Re: Developing for Synology NAS

Posted: Mon Nov 17, 2014 11:26 am
by Fangbeast
Hi fangles, long time no speak!! (But that is pretty much my fault except you had your pm disabled last time I tried to contact you :)
True, it's your fault. You have my email address:):)
By the way, yes, Qnap & Synology both look & feel almost the same from the end user point of view & both are pretty awsome units from what I have seen. :D
Got a QNAP TS-420 and it's not bad. Initially only 8 terabytes but saving up for bigger drives.

Also, it seems that Synology and QNAP share some of the same base app so if they are the same mob making them, DownLoad station will turn out to be a pig on both.

They new fancy software on top of the Linux base is crap as it's all graphical rather than fast and efficient and anything I do on the box seems to ma out the CPU at 96/97% most times.

Apart from that, very useful.

Re: Developing for Synology NAS

Posted: Mon Nov 17, 2014 1:25 pm
by Baldrick
Fangbeast wrote:True, it's your fault. You have my email address:):)
Nope I don't. I have dug up ur mobile number though, so might sms u my email tomorrow
Fanbeast wrote:Got a QNAP TS-420 and it's not bad. Initially only 8 terabytes but saving up for bigger drives.
I only have this atm https://www.synology.com/en-global/products/DS213j with 2 x 3TB drives running in raid with a 3rd desktop usb drive as an expansion for extra backup.
I am saving up to get this 1: https://www.synology.com/en-global/products/DS415+
Fangbeast wrote:anything I do on the box seems to ma out the CPU at 96/97% most times.
Only time I have ever struck that with mine was a couple of weeks ago when I updated to the latest manager & immediately installed the 3TB usb drive & ran a full system backup. Which took almost a full day btw...
I have it running 2 CCTV cameras, a mail server with pop & web based interfaces, file server, photo server, music server, video server which I use to stream to my TV all the time, etc & apart from that hiccup I just mentioned, it has never missed a beat.