Sunday, November 4, 2007

Erlang - Serial Blues

So serial comunication does not work out of the box when retrieved from CEAN. This of course boils down to the fact that sl contains a native driver written in C. Now a makefile exists, so I just tried to call make, alas no go! Apparently make includes a file called ../../support/include.mk and this file was no-where in sight, not in any subdirectory of my erlang installation, not in the erlang source distribution, hmm. So this was where luck stroke, trying to peek around for this file I ended up in the Yaws source, and hey there was I file with the right name, so I made a link to that and tried make again... YES succes the C driver builded.

And now doing P = sl:start(). in the erlang shell gave me: #Port<0.100>

Time to do some Erlang ...

No comments: