2009-04-29 09:00:54     add sercd to trunk

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-04-29 09:00:54     add sercd to trunk

Filip Van Rillaer (BELGIUM)

Message: 73428   

 

Hello,

 

Is it possble to add the user application "sercd" in the user-directory of uclinux? The sources can be found on sourceforge:

svn co    sercd.svn.sourceforge.net/svnroot/sercd sercd

 

Best regards,

 

Filip

TranslateQuoteReplyEditDelete

 

 

2009-04-29 09:26:51     Re: add sercd to trunk

Robin Getz (UNITED STATES)

Message: 73430   

 

Filip:

 

I would normally take their last release - (3.0.0 - October 22, 2008)  - is that OK - or do you need their trunk?

 

-Robin

QuoteReplyEditDelete

 

 

2009-04-29 11:20:07     Re: add sercd to trunk

Filip Van Rillaer (BELGIUM)

Message: 73434   

 

Hello Robin,

 

As far as I know, rev 3.0.0 is the most up-to-date (and that is what I am using), so that would be great.

 

Thanks,

 

Filip.

TranslateQuoteReplyEditDelete

 

 

2009-04-29 13:21:03     Re: add sercd to trunk

Robin Getz (UNITED STATES)

Message: 73446   

 

Filip:

 

Done.

 

Let me know if you find any issues - I built it, but didn't try it out. (If you want, you could add some micro-documentation in the wiki).

 

-Robin

QuoteReplyEditDelete

 

 

2009-05-04 05:49:08     Re: add sercd to trunk

Filip Van Rillaer (BELGIUM)

Message: 73553   

 

Hello Robin,

 

Thanks, it works fine.

 

As sercd is running under inetd control, please apply the patch (see attachment) to the Makefile.

The only thing that a user than has to do, to customize it to it's own needs, is to make a symbolic link between a device (for example /dev/modem) and /dev/rfc2217.  The modem can then be accesed remotely over IP.

 

ln -s /dev/modem /dev/rfc2217

 

Best regards,

Filip

 

svndiffsercd.txt

TranslateQuoteReplyEditDelete

 

 

2009-05-04 10:34:32     Re: add sercd to trunk

Robin Getz (UNITED STATES)

Message: 73569   

 

Filip:

 

Applied. Thanks

 

Is there a default link that we should add into the romfs? (based on Kconfig?) or just let people do it by hand?

 

-Robin

QuoteReplyEditDelete

 

 

2009-05-05 11:51:30     Re: add sercd to trunk

Filip Van Rillaer (BELGIUM)

Message: 73674   

 

Hello Robin,

 

I didn't notice that the sercd-application was installed in the directory /usr/sbin instead of /sbin, so the line in the Makefile should be:

$(ROMFSINST) -a "sredir stream tcp nowait root /usr/sbin/sercd 8 /dev/rfc2217 /var/lock/LCK..rfc2217" /etc/inetd.conf

 

I am using the sercd program with custom hardware (modem front-end) plugged onto the bf537 stamp board + custom driver.  So the link I am effectively using is unfortunately not relevant for other users.

I did a quick test with /dev/ttyBF0, but the connection seems to work only in 1 direction (I don't know jet why).

Just for the fun, one can use following command to receive random data at a RFC2217 compatible client:

ln -s /dev/urandom /dev/rfc2217

 

So as you suggested, I would leave it open to the end-user to make the link between /dev/rfc2217 and some specific device.

 

Best regards,

Filip

Attachments

    Outcomes