WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Ser2net  (Read 13981 times)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 718
Re: Ser2net
« Reply #30 on: January 27, 2022, 05:24:12 AM »
Can you make a new netstat command to the both, from rasbian and picore.

So you can see now that ser2net LISTEN to ipv4 instead of ipv6, so you don't need
ipv6-netfilter-xxx.tcz any more.


Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #31 on: January 27, 2022, 05:26:59 AM »
Can you make a new netstat command to the both, from rasbian and picore.

So you can see now that ser2net LISTEN to ipv4 instead of ipv6, so you don't need
ipv6-netfilter-xxx.tcz any more.

@patrickg, yes I will remove ipv6 extension. Thanks for your hint

Now I'm on the way understand how uucp can be disabled on piCore in order to work as on Raspbian.
« Last Edit: January 27, 2022, 05:34:41 AM by olivier.com »

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #32 on: January 27, 2022, 12:20:38 PM »
Does anybody have some hints about UUCP ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Ser2net
« Reply #33 on: January 28, 2022, 02:38:27 AM »
Probably you need to look into ser2net's source, what it's doing with uucp. Or just use the -u option ;)
The only barriers that can stop you are the ones you create yourself.

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #34 on: January 28, 2022, 03:07:53 AM »
Probably you need to look into ser2net's source, what it's doing with uucp. Or just use the -u option ;)

He doing what is he doing and it doesn't matter at all. With Raspbian it is no need to add the -u option. So, i want to know why piCore has not the same behavior.
There is rights problem ? piCOre configuration problem ? ...
« Last Edit: January 28, 2022, 03:17:49 AM by olivier.com »

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 718
Re: Ser2net
« Reply #35 on: January 28, 2022, 11:15:49 AM »
You may read little of this, to understand how the serial device locking feature working.

https://tldp.org/HOWTO/Serial-HOWTO-13.html

Is ser2net some deamon or application ?
You can test to strace if its a application, to see if the application tries to make some type of lock file, and can't create if because of lack of file rights.
 
« Last Edit: January 28, 2022, 11:29:38 AM by patrikg »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11675
Re: Ser2net
« Reply #36 on: January 28, 2022, 11:32:33 AM »
Hi olivier.com
Before you built  ser2net , you had to build  gensio , right?
When you run  ./configure  for  gensio , include  --with-uucp-locking=no

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Ser2net
« Reply #37 on: January 28, 2022, 11:53:06 AM »
He doing what is he doing and it doesn't matter at all. With Raspbian it is no need to add the -u option. So, i want to know why piCore has not the same behavior.
There is rights problem ? piCOre configuration problem ? ...
Of course it matters. If you don't know what it's doing, how will you find out why the behavior differs?

You're asking us, but none of us know. We don't have the hw, and it seems none have ever used ser2net.
The only barriers that can stop you are the ones you create yourself.

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #38 on: January 31, 2022, 01:12:32 PM »
Hi olivier.com
Before you built  ser2net , you had to build  gensio , right?
When you run  ./configure  for  gensio , include  --with-uucp-locking=no

You are right Rich !
The thing I have missed is gensio part.
I'll give it a try.

Many many thanks for your help and your advice. It helped me so much.
 

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #39 on: January 31, 2022, 01:16:23 PM »
He doing what is he doing and it doesn't matter at all. With Raspbian it is no need to add the -u option. So, i want to know why piCore has not the same behavior.
There is rights problem ? piCOre configuration problem ? ...
Of course it matters. If you don't know what it's doing, how will you find out why the behavior differs?

You're asking us, but none of us know. We don't have the hw, and it seems none have ever used ser2net.

Ok Sorry. I thought (but it is not right) that piCOre has these type of locking activated by default. Thank you for your answer and hints.

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #40 on: February 01, 2022, 12:43:50 PM »
So I achieve my extension building with success and it is working like a charm.

I give a little walkthrough if some people want to build and use the ser2net extension with piCore (and specially with with piCorePlayer in order to control old DENON AVR)

I cant post the message so I add it in attachment.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Ser2net
« Reply #41 on: February 01, 2022, 01:45:28 PM »
I'll add this to the piCorePlayer projects documentation if you like? See https://docs.picoreplayer.org/projects/

Offline olivier.com

  • Newbie
  • *
  • Posts: 26
Re: Ser2net
« Reply #42 on: February 01, 2022, 02:10:17 PM »
I'll add this to the piCorePlayer projects documentation if you like? See https://docs.picoreplayer.org/projects/

Hum... Why not.
It would a way that this little tiny walkthrough don't get lost on this forum.... and may help someone.

Please correct my obvious english fault.. As I am a french guy, my english is quite good..

Many thanks Greg.

Olivier

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11675
Re: Ser2net
« Reply #43 on: February 01, 2022, 05:31:21 PM »
Hi olivier.com
A couple of minor points:
You misspelled export:
Code: [Select]
xport CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
I was under the (possibly mistaken) impression that  piCorePlayer  like  piCore  compiled 32 bit apps to be
armv6 compatible:
Code: [Select]
export CFLAGS="-O2 -pipe -march=native -mfpu=vfp"
export CXXFLAGS="-O2 -pipe -fno-exceptions -fno-rtti -march=native -mfpu=vfp"

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Ser2net
« Reply #44 on: February 01, 2022, 06:15:01 PM »
Please confirm potential typos.

Code: [Select]
3.9 Add the ser2net conf file

sudo touch /etc/ser2net.conf
sudo echo protocol,src_ip,port_to_reach_onRpi:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT >> ser2net.conf

Missing directory. Should be ">>/etc/ser2net.conf"

Code: [Select]
3.10 We have to tell piCorePlayer to save these setting for future reboots :

sudo echo /etc/ser2name.conf >> /opt/.filetool.lst

Extra / and ser2name should be ser2net. Should be "etc/ser2net.conf"

Ready for review: https://docs.picoreplayer.org/projects/using-ser2net/
« Last Edit: February 01, 2022, 06:32:13 PM by Greg Erskine »