Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

hdlc over serial?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Progman3K
l33t
l33t
User avatar
Posts: 805
Joined: Sat Jan 03, 2004 11:59 pm
Contact:
Contact Progman3K
Website

hdlc over serial?

  • Quote

Post by Progman3K » Tue Feb 13, 2018 9:01 pm

Hi,

I have a serial device which sends hdlc over a serial port, how can I read it?

I can open the tty and read the hdlc directly, of course, but this seems like it is short-circuiting something.

Is there a way to get the traffic coming in over the serial port into the network stack, like it probably should be?

Sorry for the scarcity of details but I'm sort of a noob in this particular instance.

Thanks
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Feb 13, 2018 9:08 pm

Progman3K,

Here's a pointer into the kernel
There may well be some userspace bits too.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
AngelKnight
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Tue Jan 14, 2003 3:21 am

  • Quote

Post by AngelKnight » Wed Feb 14, 2018 10:07 am

Hi Progman3K,

You mentioned "you have a serial device." We can probably help more if you provide more details on what kind of "serial device", or the device on the remote end of this "serial device."

I don't have a lot of experience with HDLC on Linux, so while I believe you when you say your device is represented with a tty, I find this a little weird since HDLC typically involves a synchronously-clocked serial port, which I don't usually expect to see represented in Linux with a tty device.
Top
Progman3K
l33t
l33t
User avatar
Posts: 805
Joined: Sat Jan 03, 2004 11:59 pm
Contact:
Contact Progman3K
Website

  • Quote

Post by Progman3K » Wed Feb 14, 2018 1:43 pm

Hello Neddy, hello AngelKnight!

Thanks for taking the time.

The device is not commercially available, it is homebrew, it apparently writes hdlc packets over /dev/ttyACM0 at 115200 kbps,N81

To go into more detail, it does not conform to synchronous HDLC, there are no timing bits.

Rather, it sends a series of HDLC packet (header, escaped-data, CRC) over the line.

I've tried using mmcli -L but this simply returns
[date time] [Debug] ModemManager process found at ':1.10536'

No modems were found
Top
Progman3K
l33t
l33t
User avatar
Posts: 805
Joined: Sat Jan 03, 2004 11:59 pm
Contact:
Contact Progman3K
Website

journalctl --no-pager -u ModemManager.service

  • Quote

Post by Progman3K » Wed Feb 14, 2018 2:11 pm

ModemManager[13892]: <info> Creating modem with plugin 'Generic' and '1' ports
ModemManager[13892]: <warn> Could not grab port (tty/ttyACM0): 'Cannot add port 'tty/ttyACM0', unhandled serial type'
ModemManager[13892]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2': Failed to find primary AT port
ModemManager[13892]: <info> (tty/ttyACM0): released by modem /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2
ModemManager[13892]: <info> Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2': Operation was cancelled
Top
Progman3K
l33t
l33t
User avatar
Posts: 805
Joined: Sat Jan 03, 2004 11:59 pm
Contact:
Contact Progman3K
Website

  • Quote

Post by Progman3K » Wed Feb 14, 2018 2:37 pm

At this point, I am guessing the device needs to support a specific AT-command set to be registered as an actual HDLC network interface card
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic