ЗАО «ЗЭО»

Пожалуйста, войдите или зарегистрируйтесь.

Расширенный поиск  

Новости:

Автор Тема: Интерфейсы RS232/RS485  (Прочитано 11628 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Интерфейсы RS232/RS485
« : 11 Декабря, 2014, 09:16:49 »

Здравствуйте, планируется работа с интерфейсом RS-232 (подключение к через него ZigBee модема). Читал ваш форум и документацию, понял, что порт настроены так:
Порт1 - X16 - работает в режиме RS-232 и в системе должен быть как /dev/ttySP1
Порт2 - X17 - работает в режиме RS-485 и в системе должен быть как /dev/ttySP2
Но я в системе их не вижу ls -l /dev/ttyS*, что для этого сделать?
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Интерфейсы RS232/RS485
« Ответ #1 : 15 Декабря, 2014, 12:23:02 »

Прикрепите к письму лог загрузки Linux.
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #2 : 15 Декабря, 2014, 17:09:42 »

PowerPrep start initialize power...
Battery Voltage = 0.19V
No battery or bad battery                                       detected!!!.Disa
bling battery                                   voltage measurements./r/nApr 24
201311:42:00
FRAC 0x92925552
memory type is DDR2
                   Wait for ddr ready 1power 0x00820616
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress
ddr2 0x40000000
finish simple test


U-Boot 2009.08 (Oct 28 2014 - 08:01:45)

Freescale i.MX28 family
CPU:   454 MHz
BUS:   151 MHz
EMI:   205 MHz
GPMI:   24 MHz
DRAM:  128 MB
MMC:   IMX_SSP_MMC: 0, IMX_SSP_MMC: 1
In:    serial
Out:   serial
Err:   serial
Net:   got MAC address from IIM: 00:04:00:00:00:00
FEC0
Hit any key to stop autoboot:  0

MMC read: dev # 0, block # 256,count 12288 ...
12288 blocks read: OK
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-2.6.35.3-zeo-svn2890
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2487648 Bytes =  2.4 MB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35.3-zeo-svn2890 (ubuntu@ubuntu) (gcc version 4.4.4 (4.4.4_09.
06.2010) ) #19 PREEMPT Wed Mar 26 12:45:06 EDT 2014
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX28EVK board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyAM0,115200n8 root=/dev/mmcblk0p3 rw rootwait
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 124472k/124472k available, 6600k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xfde00000 - 0xffe00000   (  32 MB)
    vmalloc : 0xc8800000 - 0xf0000000   ( 632 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0030000   ( 160 kB)
      .text : 0xc0030000 - 0xc04d1000   (4740 kB)
      .data : 0xc04d2000 - 0xc050e980   ( 243 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
        RCU-based detection of stalled CPUs is disabled.
        Verbose stalled-CPUs detection is disabled.
NR_IRQS:288
Console: colour dummy device 80x30
console [ttyAM0] enabled
Calibrating delay loop... 226.09 BogoMIPS (lpj=1130496)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
regulator: vddd: 800 <--> 1575 mV at 1500 mV fast normal
regulator: vdddbo: 800 <--> 1575 mV fast normal
regulator: vdda: 1500 <--> 2275 mV at 1800 mV fast normal
vddio = 3380000, val=10
regulator: vddio: 2880 <--> 3680 mV at 3380 mV fast normal
regulator: overall_current: fast normal
regulator: vbus5v:
regulator: mxs-duart-1: fast normal
regulator: mxs-bl-1: fast normal
regulator: mxs-i2c-1: fast normal
regulator: mmc_ssp-1: fast normal
regulator: mmc_ssp-2: fast normal
regulator: charger-1: fast normal
regulator: power-test-1: fast normal
regulator: cpufreq-1: fast normal
i.MX IRAM pool: 120 KB@0xc8820000
Initializing GPMI pins
usb DR wakeup device is registered
IMX usb wakeup probe
audit: cannot initialize inotify handle
bio: create slab <bio-0> at 0
SCSI subsystem initialized
Freescale USB OTG Driver loaded, $Revision: 1.55 $
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource mxs clock source
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Bus freq driver module loaded
IMX usb wakeup probe
usb h1 wakeup device is registered
mxs_cpu_init: cpufreq init finished
audit: initializing netlink socket (disabled)
type=2000 audit(0.600:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 243
alg: No test for stdrng (krng)
cryptodev: driver loaded.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x30
mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
UART set mode; UART - 0, mode - 0
mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
Found APPUART 3.1.0
UART set mode; UART - 1, mode - 1
mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
Found APPUART 3.1.0
UART set mode; UART - 2, mode - 2
mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2
Found APPUART 3.1.0
UART set mode; UART - 3, mode - 0
mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3
Found APPUART 3.1.0
UART set mode; UART - 4, mode - 0
brd: module loaded
loop: module loaded
i.MX GPMI NFC
NFC: Version 1, 8-chip GPMI and BCH
Boot ROM: Version 1, Single-chip boot area, block mark swapping supported
Scanning for NAND Flash chips...
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit
)
Scanning device for bad blocks
Boot area protection is enabled.
Creating 2 MTD partitions on "gpmi-nfc-main":
0x000000000000-0x000001400000 : "gpmi-nfc-0-boot"
0x000001400000-0x000010000000 : "gpmi-nfc-general-use"
mxs-spi mxs-spi.0: Max possible speed 24000 = 24000000/2 kHz
mxs-spi mxs-spi.0: at 0x80014000 mapped to 0xF0014000, irq=84, bus 1, DMA ver_ma
jor 4
Freescale FlexCAN Driver
FEC Ethernet Driver
fec_enet_mii_bus: probed
Register PTP device as char /dev/ptp
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci: irq 93, io base 0x80080000
fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 2
fsl-ehci fsl-ehci.0: irq 92, io base 0x80090000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ARC USBOTG Device Controller driver (1 August 2005)
mice: PS/2 mouse device common for all mice
input: MXS touchscreen as /devices/virtual/input/input0
rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
Linux video capture interface: v2.00
WARNING : No battery connected !
Aborting power driver initialization
mxs-battery: probe of mxs-battery.0 failed with error 1
mxs watchdog: initialized, heartbeat 19 sec
mxs-mmc: MXS SSP Controller MMC Interface driver
mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 82 ERRIRQ 96
dcp dcp.0: DCP crypto enabled.!
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USD   14.7 GiB
 mmcblk0: p1 p2 p3
regulator_init_complete: incomplete constraints, leaving vbus5v on
rtc-ds1307 0-0068: setting system clock to 2000-02-01 07:49:52 UTC (949391392)
EXT3-fs: barriers not enabled
EXT3-fs (mmcblk0p3): warning: maximal mount count reached, running e2fsck is rec
ommended
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p3): using internal journal
EXT3-fs (mmcblk0p3): recovery complete
EXT3-fs (mmcblk0p3): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:3.
Freeing init memory: 160K
Starting logging: OK
Initializing random number generator... done.
Starting network...
eth0: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:00, ir
q=-1)
udhcpc (v1.22.1) started
Sending discover...
Sending discover...
PHY: 0:00 - Link is Up - 100/Full
Sending discover...
Sending select for 192.168.1.100...
Lease of 192.168.1.100 obtained, lease time 7200
deleting routers
adding dns 192.168.1.1
eth1: Freescale FEC PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:01, ir
q=-1)
Starting dropbear sshd: OK
Starting postgresql: pg_ctl: another server might be running; trying to start se
rver anyway
server starting
OK
Starting action: PPP generic driver version 2.4.2
NET: Registered protocol family 24
OK

Welcome to Tech-New
buildroot login: _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet
6
_XSERVTransOpen: transport open failed for inet6/buildroot:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
01/02/2000 07:50:08 passing arg to libvncserver: -passwd
01/02/2000 07:50:08 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 1201
01/02/2000 07:50:09 Using X display :0
01/02/2000 07:50:09 rootwin: 0x41 reswin: 0x200001 dpy: 0x3a3eb0
01/02/2000 07:50:09
01/02/2000 07:50:09 ------------------ USEFUL INFORMATION ------------------
01/02/2000 07:50:09 X DAMAGE available on display, using it for polling hints.
01/02/2000 07:50:09   To disable this behavior use: '-noxdamage'
01/02/2000 07:50:09
01/02/2000 07:50:09   Most compositing window managers like 'compiz' or 'beryl'
01/02/2000 07:50:09   cause X DAMAGE to fail, and so you may not see any screen
01/02/2000 07:50:09   updates via VNC.  Either disable 'compiz' (recommended) or
01/02/2000 07:50:09   supply the x11vnc '-noxdamage' command line option.
01/02/2000 07:50:09
01/02/2000 07:50:09 Wireframing: -wireframe mode is in effect for window moves.
01/02/2000 07:50:09   If this yields undesired behavior (poor response, painting
01/02/2000 07:50:09   errors, etc) it may be disabled:
01/02/2000 07:50:09    - use '-nowf' to disable wireframing completely.
01/02/2000 07:50:09    - use '-nowcr' to disable the Copy Rectangle after the
01/02/2000 07:50:09      moved window is released in the new position.
01/02/2000 07:50:09   Also see the -help entry for tuning parameters.
01/02/2000 07:50:09   You can press 3 Alt_L's (Left "Alt" key) in a row to
01/02/2000 07:50:09   repaint the screen, also see the -fixscreen option for
01/02/2000 07:50:09   periodic repaints.
01/02/2000 07:50:09
01/02/2000 07:50:09 XFIXES available on display, resetting cursor mode
01/02/2000 07:50:09   to: '-cursor most'.
01/02/2000 07:50:09   to disable this behavior use: '-cursor arrow'
01/02/2000 07:50:09   or '-noxfixes'.
01/02/2000 07:50:09 using XFIXES for cursor drawing.
01/02/2000 07:50:09 GrabServer control via XTEST.
01/02/2000 07:50:09
01/02/2000 07:50:09 Scroll Detection: -scrollcopyrect mode is in effect to
01/02/2000 07:50:09   use RECORD extension to try to detect scrolling windows
01/02/2000 07:50:09   (induced by either user keystroke or mouse input).
01/02/2000 07:50:09   If this yields undesired behavior (poor response, painting
01/02/2000 07:50:09   errors, etc) it may be disabled via: '-noscr'
01/02/2000 07:50:09   Also see the -help entry for tuning parameters.
01/02/2000 07:50:09   You can press 3 Alt_L's (Left "Alt" key) in a row to
01/02/2000 07:50:09   repaint the screen, also see the -fixscreen option for
01/02/2000 07:50:09   periodic repaints.
01/02/2000 07:50:09
01/02/2000 07:50:09 XKEYBOARD: number of keysyms per keycode 7 is greater
01/02/2000 07:50:09   than 4 and 51 keysyms are mapped above 4.
01/02/2000 07:50:09   Automatically switching to -xkb mode.
01/02/2000 07:50:09   If this makes the key mapping worse you can
01/02/2000 07:50:09   disable it with the "-noxkb" option.
01/02/2000 07:50:09   Also, remember "-remap DEAD" for accenting characters.
01/02/2000 07:50:09
01/02/2000 07:50:09 X FBPM extension not supported.
01/02/2000 07:50:09 X display is not capable of DPMS.
01/02/2000 07:50:09 --------------------------------------------------------
01/02/2000 07:50:09
01/02/2000 07:50:09 Default visual ID: 0x21
01/02/2000 07:50:09 Read initial data from X display into framebuffer.
01/02/2000 07:50:09 initialize_screen: fb_depth/fb_bpp/fb_Bpl 16/16/1280
01/02/2000 07:50:09
01/02/2000 07:50:09 X display :0 is 16bpp depth=16 true color
01/02/2000 07:50:09
01/02/2000 07:50:09 Autoprobing TCP port
01/02/2000 07:50:09 Autoprobing selected port 5900
01/02/2000 07:50:09 listen6: socket: Address family not supported by protocol
01/02/2000 07:50:09 (Ignore the above error if this system is IPv4-only.)
01/02/2000 07:50:09 Not listening on IPv6 interface.
01/02/2000 07:50:09 fb read rate: 21 MB/sec
01/02/2000 07:50:09 The X server says there are 10 mouse buttons.
01/02/2000 07:50:09 screen setup finished.
01/02/2000 07:50:10

The VNC desktop is:      buildroot:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching


01/02/2000 07:50:10 check_xrandr_event():
01/02/2000 07:50:10 Detected XRANDR event at location 'check_xevents':
01/02/2000 07:50:10 check_xrandr_event: no change detected.
01/02/2000 07:50:10 check_xrandr_event: enabling full XRANDR trapping anyway.
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Интерфейсы RS232/RS485
« Ответ #3 : 15 Декабря, 2014, 21:13:29 »

Судя по логам, порты инициализированы:

Цитировать
mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
Found APPUART 3.1.0
UART set mode; UART - 1, mode - 1
mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
Found APPUART 3.1.0
UART set mode; UART - 2, mode - 2
mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2
Found APPUART 3.1.0
UART set mode; UART - 3, mode - 0
mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3
Found APPUART 3.1.0
UART set mode; UART - 4, mode - 0
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #4 : 16 Декабря, 2014, 06:55:05 »

[root@buildroot ~]# ls /dev/ttyS*
/dev/ttyS0    /dev/ttyS3    /dev/ttySAC2  /dev/ttySC1   /dev/ttySC4   /dev/ttySC7
/dev/ttyS1    /dev/ttySAC0  /dev/ttySAC3  /dev/ttySC2   /dev/ttySC5
/dev/ttyS2    /dev/ttySAC1  /dev/ttySC0   /dev/ttySC3   /dev/ttySC6
Согласен, но почему я их не вижу?
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Интерфейсы RS232/RS485
« Ответ #5 : 17 Декабря, 2014, 14:58:23 »

Вероятно, это они:
/dev/ttyS0    /dev/ttyS1    /dev/ttyS2   /dev/ttyS3

Покажите вывод
Цитировать
find / -name "*uart*"

и содержимое каталога /etc/udev/rules.d/
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #6 : 17 Декабря, 2014, 15:53:38 »

[root@buildroot ~]# find / -name "*uart"
/proc/tty/driver/auart
/sys/bus/platform/drivers/mxs-duart
/sys/bus/platform/drivers/mxs-auart
/sys/module/mxs_duart

А вот каталога udev в etc нет:
[root@buildroot ~]# ls /etc/
X11/           hosts          ld.so.conf.d/  ppp/           shadow
dhcp/          init.d/        mtab@          profile        ssl/
dropbear/      inittab        network/       protocols      ts.conf
fonts/         inputrc        nsswitch.conf  random-seed
fstab          issue          os-release     resolv.conf@
group          ld.so.cache    passwd         securetty
hostname       ld.so.conf     pointercal     services
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #7 : 18 Декабря, 2014, 16:45:29 »

[root@buildroot ~]# dmesg | grep tty
Kernel command line: console=ttyAM0,115200n8 root=/dev/mmcblk0p3 rw rootwait
console [ttyAM0] enabled
mxs-duart.0: ttyAM0 at MMIO 0x80074000 (irq = 47) is a DebugUART
mxs-auart.0: ttySP0 at MMIO 0x8006a000 (irq = 112) is a mxs-auart.0
mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 113) is a mxs-auart.1
mxs-auart.2: ttySP2 at MMIO 0x8006e000 (irq = 114) is a mxs-auart.2
mxs-auart.3: ttySP3 at MMIO 0x80070000 (irq = 115) is a mxs-auart.3

именно ttySP, не ttyS. Может какие библиотеки или модули нужны?
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Интерфейсы RS232/RS485
« Ответ #8 : 19 Декабря, 2014, 20:04:43 »

Покажите вывод
Цитировать
find / -name "*uart*"

со звездочкой в конце.

Вероятно нужно включить udev в ltib.
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #9 : 20 Декабря, 2014, 01:26:30 »


Вероятно нужно включить udev в ltib.

С этого места поподробнее, как это сделать?
Записан

Danila

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 703
Re: Интерфейсы RS232/RS485
« Ответ #10 : 23 Декабря, 2014, 14:09:39 »

Запустить ltib, в пакетах выбрать "device nodes -> udev", а также выбрать "Include I.MX rules".
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #11 : 23 Декабря, 2014, 17:44:05 »

Искал аналогичные пакеты в buildroot, т.к. вся сборка велась в нём, но не нашел чего либо похожего, какой пакет нужен от buildroot?
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #12 : 25 Декабря, 2014, 16:22:57 »

У вас есть информация по пакету:
Setserial : configuration of serial ports?
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #13 : 26 Декабря, 2014, 09:43:12 »

Покажите вывод
Цитировать
find / -name "*uart*"

со звездочкой в конце.

если поможет:

[root@buildroot ~]# find / -name "*uart*"
/proc/tty/driver/auart
/sys/devices/platform/mxs-duart.0
/sys/devices/platform/mxs-auart.0
/sys/devices/platform/mxs-auart.1
/sys/devices/platform/mxs-auart.2
/sys/devices/platform/mxs-auart.3
/sys/devices/platform/mxs-auart.4
/sys/bus/platform/devices/mxs-duart.0
/sys/bus/platform/devices/mxs-auart.0
/sys/bus/platform/devices/mxs-auart.1
/sys/bus/platform/devices/mxs-auart.2
/sys/bus/platform/devices/mxs-auart.3
/sys/bus/platform/devices/mxs-auart.4
/sys/bus/platform/drivers/mxs-duart
/sys/bus/platform/drivers/mxs-duart/mxs-duart.0
/sys/bus/platform/drivers/mxs-auart
/sys/bus/platform/drivers/mxs-auart/mxs-auart.0
/sys/bus/platform/drivers/mxs-auart/mxs-auart.1
/sys/bus/platform/drivers/mxs-auart/mxs-auart.2
/sys/bus/platform/drivers/mxs-auart/mxs-auart.3
/sys/module/mxs_duart
Записан

Александр Глухов

  • Full Member
  • ***
  • Оффлайн Оффлайн
  • Сообщений: 122
Re: Интерфейсы RS232/RS485
« Ответ #14 : 26 Декабря, 2014, 15:56:49 »

Пробую с setserial - пока никак
[root@buildroot ~]# setserial
BusyBox v1.22.1 (2014-11-27 11:31:19 EST) multi-call binary.

Usage: setserial [-gabGvzV] DEVICE [PARAMETER [ARG]]...

Request or set Linux serial port information

        -g      Interpret parameters as list of devices for reporting
        -a      Print all available information
        -b      Print summary information
        -G      Print in form which can be fed back
                to setserial as command line parameters
        -z      Zero out serial flags before setting
        -v      Verbose

Parameters: (* = takes an argument, ^ = can be turned off by preceding ^)
        *port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait,
        ^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout,
        ^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig,
        spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust

UART types:
        unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750,
        16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7,
        U6_16550A

[root@buildroot ~]# setserial /dev/ttySP1
setserial: /dev/ttySP1: No such file or directory
Записан