WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ser2net, Arduino, and microCore  (Read 4521 times)

Offline Project23D

  • Newbie
  • *
  • Posts: 24
    • Technology Research and Development
ser2net, Arduino, and microCore
« on: February 23, 2014, 10:58:04 PM »
Seeing that using the search in this forum yields nothing for ser2net, I thought I would share the following:

to use ser2net, it's seems you must start is using the command: (perhaps I need to update my $PATH)
/usr/sbin/ser2net

But to add to that, the .conf file does not exist when you install ser2net, so you need to add one. Because I am new, and yet to learn how ideally to place files, I placed the .conf file here:
/home/tc

because what I'm doing with arduino needs to happen when the computer is booted, I updated bootlocal.sh with the following:
/usr/sbin/ser2net -c /home/tc/ser2net.conf

.filetool already saves the home folder, so I figured what better place to put the .conf file.

After that, I performed a backup, rebooted, and without SSH'ing back into the unit, I went into puTTY on my laptop and entered in the pertinents to the microCore box, and the output from the arduino was displayed. Awesome!

microCore is installed on a HP thin client with 128MB RAM, and even with all the junk I need, it only takes 70MB RAM with services running.

you can find the ser2net.conf examples on the net, but mine is just here and just one line:
2738:raw:0:/dev/ttyUSB0:9600

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ser2net, Arduino, and microCore
« Reply #1 on: February 23, 2014, 11:40:04 PM »
What version of Core are you running?
Where did you get ser2net?  Applications are supposed to install into /usr/local not /usr.

Offline Project23D

  • Newbie
  • *
  • Posts: 24
    • Technology Research and Development
Re: ser2net, Arduino, and microCore
« Reply #2 on: February 24, 2014, 12:19:08 AM »
microCore 4.7.7

ser2net is in the repository, searched using tce-ab

after installing and trying to find where ser2net.conf file might be, (before I learned that I had to make it) I did:
sudo find / -name ser2net

gave the following output:
/tmp/tcloop/ser2net
/tmp/tcloop/ser2net/usr/sbin/ser2net
/usr/local/tce.installed/ser2net
/usr/sbin/ser2net

I didn't know what the other stuff really was for, and being an unorthodox Linux user, I just went with the /usr/sbin. Seemed right to me, ha.

Works great with what I wrote in the first post. I'm very excited that it worked first time.

I have microCore installed to the thin client's DOM, or Disk on Module, which is what HP calls the flash drive module with a laptop IDE connector on it. I am sure that some configs are obfuscated, but it works!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ser2net, Arduino, and microCore
« Reply #3 on: February 24, 2014, 12:34:20 AM »
OK, I checked the 5.x repository and did not see it, that is why I asked.
I also run HP thin clients.
I have one T5720, four T5730 and one T5740.

Offline Project23D

  • Newbie
  • *
  • Posts: 24
    • Technology Research and Development
Re: ser2net, Arduino, and microCore
« Reply #4 on: February 24, 2014, 12:46:58 AM »
unless ser2net is no longer supported in 5.x, or socat has taken it's place, please put ser2net in 5.x!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11657
Re: ser2net, Arduino, and microCore
« Reply #5 on: February 24, 2014, 01:00:45 AM »
Hi Project23D
If you wish, you can try it under 5.x yourself. Boot up 5.x and fetch the extension:
Code: [Select]
cd /etc/sysconfig/tcedir/optional/
wget -c http://repo.tinycorelinux.net/4.x/x86/tcz/ser2net.tcz
Load it and try it. It has no dependencies, so I suspect it will work. If you confirm it functions, it will be copied to the 5.x repo.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ser2net, Arduino, and microCore
« Reply #6 on: February 24, 2014, 01:02:35 AM »
You can try it in 5.2, and if it works post a message in http://forum.tinycorelinux.net/index.php/topic,15906.0.html

Offline Project23D

  • Newbie
  • *
  • Posts: 24
    • Technology Research and Development
Re: ser2net, Arduino, and microCore
« Reply #7 on: March 04, 2014, 04:18:54 PM »
ser2net works with 5.2!

now to figure out how to make it install it to load on boot...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ser2net, Arduino, and microCore
« Reply #8 on: March 04, 2014, 04:32:50 PM »
The same way you make any other program install at boot.