게임/ace combat2025. 2. 22. 00:08

와.. 자동으로 추가되는 거 보소 -_-

pxn-2119pro 셋팅한다고 개고생한거 생각하면 어후..

 

[Joystick-A2210738-0000-0000-0000-504944564944]
ProductName=Saitek Pro Flight X-56 Rhino Throttle
Flight_Gun=
Flight_Missile=
Flight_Weapon=
Flight_Target=Button21
Flight_Radar=Button5
Flight_Flare=Button1
Flight_View=Button2
Flight_AccelerationDeceleration=Button4
Flight_AutoPilot=Button3
Flight_Pause=Button25
Flight_HatSwitchUp=
Flight_HatSwitchDown=
Flight_HatSwitchLeft=
Flight_HatSwitchRight=
Flight_Pitch=
Flight_Roll=
Flight_Yaw=
Flight_Throttle=X + Y
Flight_CameraPitch=Ry
Flight_CameraYaw=Rx
UI_B=
UI_A=
UI_X=
UI_Y=Button21
UI_LB=
UI_RB=
UI_LT=
UI_RT=
UI_LeftStickPress=Button32
UI_RightStickPress=Button2
UI_DPadUp=
UI_DPadDown=
UI_DPadLeft=
UI_DPadRight=
UI_LeftStickUp=
UI_LeftStickDown=
UI_LeftStickLeft=
UI_LeftStickRight=
UI_RightStickUp=
UI_RightStickDown=
UI_RightStickLeft=
UI_RightStickRight=
UI_Menu=Button25

[Joystick-22210738-0000-0000-0000-504944564944]
ProductName=Saitek Pro Flight X-56 Rhino Stick
Flight_Gun=Button1
Flight_Missile=Button2
Flight_Weapon=Button3
Flight_Target=Button14
Flight_Radar=Button11
Flight_Flare=Button12
Flight_View=Button5
Flight_AccelerationDeceleration=Button6
Flight_AutoPilot=Button13
Flight_Pause=Button4
Flight_HatSwitchUp=POV_U1
Flight_HatSwitchDown=POV_D1
Flight_HatSwitchLeft=POV_L1
Flight_HatSwitchRight=POV_R1
Flight_Pitch=Y:R
Flight_Roll=X
Flight_Yaw=Rz
Flight_Throttle=
Flight_CameraPitch=Ry
Flight_CameraYaw=Rx
UI_B=Button2
UI_A=Button1
UI_X=Button3
UI_Y=Button14
UI_LB=Button10
UI_RB=Button8
UI_LT=Button9
UI_RT=Button7
UI_LeftStickPress=
UI_RightStickPress=Button5
UI_DPadUp=POV_U1
UI_DPadDown=POV_D1
UI_DPadLeft=POV_L1
UI_DPadRight=POV_R1
UI_LeftStickUp=Y:N
UI_LeftStickDown=Y:P
UI_LeftStickLeft=X:N
UI_LeftStickRight=X:P
UI_RightStickUp=
UI_RightStickDown=
UI_RightStickLeft=
UI_RightStickRight=
UI_Menu=Button4

 

그나저나 saitek에서 제조한걸 OEM 으로 로지텍에서 판매하나?

[링크 : https://www.saitek.com/]

'게임 > ace combat' 카테고리의 다른 글

ace comabt 7 - F-15C 뽑음  (0) 2025.02.13
ace combat 7 joystick 설정  (0) 2025.01.06
ace combat 7 그래픽 구린...데?  (0) 2025.01.05
스팀판 ace combat 7 첫 플레이  (0) 2025.01.04
Posted by 구차니
게임/컨트롤러2025. 2. 22. 00:01

 

stick

러더는 z 회전

햇은 그냥 햇인데

x 회전, y 회전은 ace combat에서 시점 조정으로 사용된다.

15번은 어디서 눌린거지?

 

쓰로틀. 별도의 USB 장치로 인식되는게 신기하네..(내껀 본체에 연결해서 하나로 인식되는데..)

그 와중에 스틱보다 축 많은게 포인트.. 얘가 본체고 스틱은 덤(?)

X,Y 회전은 시야로 동일하고

F는 Z축

G는 Z회전

좌측 스로틀은 X축

우측 스로틀은 Y축

RTY 3는 전화걸기(?)

RTY 4는 슬라이더로 할당되어 있다.

[링크 : https://www.logitechg.com/en-us/products/space/x56-space-flight-vr-simulator-controller.945-000058.html]

'게임 > 컨트롤러' 카테고리의 다른 글

잘가 조이스틱  (0) 2025.01.10
pxn2119pro 중고구매  (0) 2025.01.06
ex m air 펌웨어 (안드로이드 갤럭시 S10)  (0) 2023.01.25
블루투스 조이스틱 DIY  (0) 2018.04.24
조이스틱 분해 그리고.. 수...리?  (4) 2018.04.10
Posted by 구차니
Microsoft/Windows2025. 2. 21. 18:29

서비스 프로그램을 작성해서 실행파일과 동일 경로상에

static web을 넣어두었는데 찾지를 못해서 찾아보니

C:\Windows\System32 가 기본 실행 경로라고 한다.

실제로 static web 을 C:\Windows\System32\static 식으로 넣어주니 작동 확인

 

chatGPT 사라사대

Windows 서비스 프로그램에서 GetCurrentDirectory 함수의 기본값은 일반적으로 C:\Windows\System32 폴더로 설정됩니다.
Posted by 구차니
프로그램 사용/wayland2025. 2. 21. 12:27

USB HID class 확인을 위해서 /sys/class 라던가 온갖데 찾아봐도 답이 없어서

검색하다가 바로 똭!! 아니 저번에 개고생 할 때 찾았더라면... -_ㅠ

 

우분투에서 아래의 패키지를 설치하고 libinput 이라는 유틸리티를 실행하면 된다.

$ sudo apt install libinput-tools
$ sudo libinput list-devices

[링크 : https://wayland.freedesktop.org/libinput/doc/latest/tools.html]

 

+

명령을 실행해서 확인해보면 Capabilites 라고 해서 이 장치에 적용된 기능이 뜬다.

pointer 어우... 얘가 날 잡는구만

Device:           eGalax Inc. eGalaxTouch P80H84 0900 v12 k4.18.200
Kernel:           /dev/input/event23
Group:            5
Seat:             seat0, default
Size:             245x182mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
Device:           eGalax Inc. eGalaxTouch EXC3188-3374-08.00.00.00 LSE 19"
Kernel:           /dev/input/event23
Group:            5
Seat:             seat0, default
Size:             292x228mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a
  Device:           eGalax Inc. eGalaxTouch EXC3188-3374-08.00.00.00 LSE 19" UNKNOWN
Kernel:           /dev/input/event24
Group:            5
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

 

----------------

회사 노트북에서 하면 아래와 같이 표현되는데

$ sudo libinput list-devices
Device:           Power Button
Kernel:           /dev/input/event2
Group:            1
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Video Bus
Kernel:           /dev/input/event17
Group:            2
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Power Button
Kernel:           /dev/input/event1
Group:            3
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Lid Switch
Kernel:           /dev/input/event0
Group:            4
Seat:             seat0, default
Capabilities:     switch
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard
Kernel:           /dev/input/event4
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard Consumer Control
Kernel:           /dev/input/event6
Group:            5
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Usb KeyBoard Usb KeyBoard System Control
Kernel:           /dev/input/event14
Group:            5
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Logitech USB Optical Mouse
Kernel:           /dev/input/event7
Group:            6
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN0B00:00 04F3:3136 Mouse
Kernel:           /dev/input/event5
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   *button
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           ELAN0B00:00 04F3:3136 Touchpad
Kernel:           /dev/input/event13
Group:            7
Seat:             seat0, default
Size:             98x58mm
Capabilities:     pointer gesture
Tap-to-click:     disabled
Tap-and-drag:     enabled
Tap drag lock:    disabled
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   *two-finger edge 
Click methods:    *button-areas clickfinger 
Disable-w-typing: enabled
Accel profiles:   flat *adaptive
Rotation:         n/a

Device:           WCOM0111:00 2D1F:010D Stylus
Kernel:           /dev/input/event9
Group:            8
Seat:             seat0, default
Size:             294x165mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           WCOM0111:00 2D1F:010D
Kernel:           /dev/input/event10
Group:            8
Seat:             seat0, default
Size:             294x165mm
Capabilities:     tablet 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   none
Rotation:         n/a

Device:           ELAN902C:00 04F3:2AC2
Kernel:           /dev/input/event8
Group:            9
Seat:             seat0, default
Size:             284x160mm
Capabilities:     touch 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      identity matrix
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Intel HID events
Kernel:           /dev/input/event11
Group:            10
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           Intel HID 5 button array
Kernel:           /dev/input/event12
Group:            11
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

Device:           AT Translated Set 2 keyboard
Kernel:           /dev/input/event3
Group:            12
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Accel profiles:   n/a
Rotation:         n/a

 

sysfs 에서도 있는걸 보면.. 나중에 소스 뜯어서 capabilies만 봐도 어떤기능인게 알게 되려나?

/sys/class/hidraw/hidraw1/device$ tree 
.
├── country
├── driver -> ../../../../../../../bus/hid/drivers/hid-multitouch
├── hidraw
│   └── hidraw1
│       ├── dev
│       ├── device -> ../../../0018:04F3:2AC2.0002
│       ├── power
│       │   ├── async
│       │   ├── autosuspend_delay_ms
│       │   ├── control
│       │   ├── runtime_active_kids
│       │   ├── runtime_active_time
│       │   ├── runtime_enabled
│       │   ├── runtime_status
│       │   ├── runtime_suspended_time
│       │   └── runtime_usage
│       ├── subsystem -> ../../../../../../../../../class/hidraw
│       └── uevent
├── input
│   ├── input23
│   │   ├── capabilities
│   │   │   ├── abs
│   │   │   ├── ev
│   │   │   ├── ff
│   │   │   ├── key
│   │   │   ├── led
│   │   │   ├── msc
│   │   │   ├── rel
│   │   │   ├── snd
│   │   │   └── sw
│   │   ├── device -> ../../../0018:04F3:2AC2.0002
│   │   ├── event8
│   │   │   ├── dev
│   │   │   ├── device -> ../../input23
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── id
│   │   │   ├── bustype
│   │   │   ├── product
│   │   │   ├── vendor
│   │   │   └── version
│   │   ├── inhibited
│   │   ├── modalias
│   │   ├── mouse5
│   │   │   ├── dev
│   │   │   ├── device -> ../../input23
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── name
│   │   ├── phys
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── properties
│   │   ├── subsystem -> ../../../../../../../../../class/input
│   │   ├── uevent
│   │   └── uniq
│   ├── input24
│   │   ├── capabilities
│   │   │   ├── abs
│   │   │   ├── ev
│   │   │   ├── ff
│   │   │   ├── key
│   │   │   ├── led
│   │   │   ├── msc
│   │   │   ├── rel
│   │   │   ├── snd
│   │   │   └── sw
│   │   ├── device -> ../../../0018:04F3:2AC2.0002
│   │   ├── event15
│   │   │   ├── dev
│   │   │   ├── device -> ../../input24
│   │   │   ├── power
│   │   │   │   ├── async
│   │   │   │   ├── autosuspend_delay_ms
│   │   │   │   ├── control
│   │   │   │   ├── runtime_active_kids
│   │   │   │   ├── runtime_active_time
│   │   │   │   ├── runtime_enabled
│   │   │   │   ├── runtime_status
│   │   │   │   ├── runtime_suspended_time
│   │   │   │   └── runtime_usage
│   │   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   │   └── uevent
│   │   ├── id
│   │   │   ├── bustype
│   │   │   ├── product
│   │   │   ├── vendor
│   │   │   └── version
│   │   ├── inhibited
│   │   ├── modalias
│   │   ├── name
│   │   ├── phys
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── properties
│   │   ├── subsystem -> ../../../../../../../../../class/input
│   │   ├── uevent
│   │   └── uniq
│   └── input25
│       ├── capabilities
│       │   ├── abs
│       │   ├── ev
│       │   ├── ff
│       │   ├── key
│       │   ├── led
│       │   ├── msc
│       │   ├── rel
│       │   ├── snd
│       │   └── sw
│       ├── device -> ../../../0018:04F3:2AC2.0002
│       ├── event16
│       │   ├── dev
│       │   ├── device -> ../../input25
│       │   ├── power
│       │   │   ├── async
│       │   │   ├── autosuspend_delay_ms
│       │   │   ├── control
│       │   │   ├── runtime_active_kids
│       │   │   ├── runtime_active_time
│       │   │   ├── runtime_enabled
│       │   │   ├── runtime_status
│       │   │   ├── runtime_suspended_time
│       │   │   └── runtime_usage
│       │   ├── subsystem -> ../../../../../../../../../../class/input
│       │   └── uevent
│       ├── id
│       │   ├── bustype
│       │   ├── product
│       │   ├── vendor
│       │   └── version
│       ├── inhibited
│       ├── modalias
│       ├── name
│       ├── phys
│       ├── power
│       │   ├── async
│       │   ├── autosuspend_delay_ms
│       │   ├── control
│       │   ├── runtime_active_kids
│       │   ├── runtime_active_time
│       │   ├── runtime_enabled
│       │   ├── runtime_status
│       │   ├── runtime_suspended_time
│       │   └── runtime_usage
│       ├── properties
│       ├── subsystem -> ../../../../../../../../../class/input
│       ├── uevent
│       └── uniq
├── modalias
├── power
│   ├── async
│   ├── autosuspend_delay_ms
│   ├── control
│   ├── runtime_active_kids
│   ├── runtime_active_time
│   ├── runtime_enabled
│   ├── runtime_status
│   ├── runtime_suspended_time
│   └── runtime_usage
├── quirks
├── report_descriptor
├── subsystem -> ../../../../../../../bus/hid
└── uevent

 

/sys/class/hidraw/hidraw5/device/input$ tree
.
├── input17
│   ├── capabilities
│   │   ├── abs
│   │   ├── ev
│   │   ├── ff
│   │   ├── key
│   │   ├── led
│   │   ├── msc
│   │   ├── rel
│   │   ├── snd
│   │   └── sw
│   ├── device -> ../../../0018:04F3:3136.0001
│   ├── event5
│   │   ├── dev
│   │   ├── device -> ../../input17
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   └── uevent
│   ├── id
│   │   ├── bustype
│   │   ├── product
│   │   ├── vendor
│   │   └── version
│   ├── inhibited
│   ├── modalias
│   ├── mouse0
│   │   ├── dev
│   │   ├── device -> ../../input17
│   │   ├── power
│   │   │   ├── async
│   │   │   ├── autosuspend_delay_ms
│   │   │   ├── control
│   │   │   ├── runtime_active_kids
│   │   │   ├── runtime_active_time
│   │   │   ├── runtime_enabled
│   │   │   ├── runtime_status
│   │   │   ├── runtime_suspended_time
│   │   │   └── runtime_usage
│   │   ├── subsystem -> ../../../../../../../../../../class/input
│   │   └── uevent
│   ├── name
│   ├── phys
│   ├── power
│   │   ├── async
│   │   ├── autosuspend_delay_ms
│   │   ├── control
│   │   ├── runtime_active_kids
│   │   ├── runtime_active_time
│   │   ├── runtime_enabled
│   │   ├── runtime_status
│   │   ├── runtime_suspended_time
│   │   └── runtime_usage
│   ├── properties
│   ├── subsystem -> ../../../../../../../../../class/input
│   ├── uevent
│   └── uniq
└── input19
    ├── capabilities
    │   ├── abs
    │   ├── ev
    │   ├── ff
    │   ├── key
    │   ├── led
    │   ├── msc
    │   ├── rel
    │   ├── snd
    │   └── sw
    ├── device -> ../../../0018:04F3:3136.0001
    ├── event13
    │   ├── dev
    │   ├── device -> ../../input19
    │   ├── power
    │   │   ├── async
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_kids
    │   │   ├── runtime_active_time
    │   │   ├── runtime_enabled
    │   │   ├── runtime_status
    │   │   ├── runtime_suspended_time
    │   │   └── runtime_usage
    │   ├── subsystem -> ../../../../../../../../../../class/input
    │   └── uevent
    ├── id
    │   ├── bustype
    │   ├── product
    │   ├── vendor
    │   └── version
    ├── inhibited
    ├── modalias
    ├── mouse1
    │   ├── dev
    │   ├── device -> ../../input19
    │   ├── power
    │   │   ├── async
    │   │   ├── autosuspend_delay_ms
    │   │   ├── control
    │   │   ├── runtime_active_kids
    │   │   ├── runtime_active_time
    │   │   ├── runtime_enabled
    │   │   ├── runtime_status
    │   │   ├── runtime_suspended_time
    │   │   └── runtime_usage
    │   ├── subsystem -> ../../../../../../../../../../class/input
    │   └── uevent
    ├── name
    ├── phys
    ├── power
    │   ├── async
    │   ├── autosuspend_delay_ms
    │   ├── control
    │   ├── runtime_active_kids
    │   ├── runtime_active_time
    │   ├── runtime_enabled
    │   ├── runtime_status
    │   ├── runtime_suspended_time
    │   └── runtime_usage
    ├── properties
    ├── subsystem -> ../../../../../../../../../class/input
    ├── uevent
    └── uniq

 

/sys/class/hidraw$ ll
합계 0
drwxr-xr-x  2 root root 0  2월 18 10:45 ./
drwxr-xr-x 89 root root 0  2월 18 10:45 ../
lrwxrwxrwx  1 root root 0  2월 21 05:32 hidraw0 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/hidraw/hidraw0/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw1 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/hidraw/hidraw1/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw2 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/hidraw/hidraw2/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw3 -> ../../devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/hidraw/hidraw3/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw4 -> ../../devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0005/hidraw/hidraw4/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw5 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/hidraw/hidraw5/
lrwxrwxrwx  1 root root 0  2월 21 05:32 hidraw6 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/hidraw/hidraw6/
lrwxrwxrwx  1 root root 0  2월 18 10:45 hidraw7 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/hidraw/hidraw7/

 

$ ls -al  /sys/class/input
drwxr-xr-x  2 root root 0  2월 18 10:45 .
drwxr-xr-x 89 root root 0  2월 18 10:45 ..
lrwxrwxrwx  1 root root 0  2월 21 11:53 event0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0/event0
lrwxrwxrwx  1 root root 0  2월 21 11:53 event1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1
lrwxrwxrwx  1 root root 0  2월 18 10:45 event10 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12/event10
lrwxrwxrwx  1 root root 0  2월 18 10:45 event11 -> ../../devices/platform/INT33D5:00/input/input14/event11
lrwxrwxrwx  1 root root 0  2월 18 10:45 event12 -> ../../devices/platform/INT33D5:00/input/input15/event12
lrwxrwxrwx  1 root root 0  2월 18 10:45 event13 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19/event13
lrwxrwxrwx  1 root root 0  2월 21 11:53 event14 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input38/event14
lrwxrwxrwx  1 root root 0  2월 18 10:45 event15 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input24/event15
lrwxrwxrwx  1 root root 0  2월 18 10:45 event16 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input25/event16
lrwxrwxrwx  1 root root 0  2월 18 10:45 event17 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input27/event17
lrwxrwxrwx  1 root root 0  2월 18 10:45 event18 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28/event18
lrwxrwxrwx  1 root root 0  2월 18 10:45 event19 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29/event19
lrwxrwxrwx  1 root root 0  2월 21 11:53 event2 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2
lrwxrwxrwx  1 root root 0  2월 18 10:45 event20 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30/event20
lrwxrwxrwx  1 root root 0  2월 18 10:45 event21 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31/event21
lrwxrwxrwx  1 root root 0  2월 18 10:45 event22 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32/event22
lrwxrwxrwx  1 root root 0  2월 21 11:53 event3 -> ../../devices/platform/i8042/serio0/input/input3/event3
lrwxrwxrwx  1 root root 0  2월 21 11:53 event4 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/input/input36/event4
lrwxrwxrwx  1 root root 0  2월 18 10:45 event5 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17/event5
lrwxrwxrwx  1 root root 0  2월 21 11:53 event6 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input37/event6
lrwxrwxrwx  1 root root 0  2월 18 10:45 event7 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22/event7
lrwxrwxrwx  1 root root 0  2월 18 10:45 event8 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23/event8
lrwxrwxrwx  1 root root 0  2월 18 10:45 event9 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11/event9
lrwxrwxrwx  1 root root 0  2월 21 11:53 input0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
lrwxrwxrwx  1 root root 0  2월 21 11:53 input1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
lrwxrwxrwx  1 root root 0  2월 18 10:45 input11 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11
lrwxrwxrwx  1 root root 0  2월 18 10:45 input12 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12
lrwxrwxrwx  1 root root 0  2월 18 10:45 input14 -> ../../devices/platform/INT33D5:00/input/input14
lrwxrwxrwx  1 root root 0  2월 18 10:45 input15 -> ../../devices/platform/INT33D5:00/input/input15
lrwxrwxrwx  1 root root 0  2월 18 10:45 input17 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17
lrwxrwxrwx  1 root root 0  2월 18 10:45 input19 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19
lrwxrwxrwx  1 root root 0  2월 21 11:53 input2 -> ../../devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
lrwxrwxrwx  1 root root 0  2월 18 10:45 input22 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22
lrwxrwxrwx  1 root root 0  2월 18 10:45 input23 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23
lrwxrwxrwx  1 root root 0  2월 18 10:45 input24 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input24
lrwxrwxrwx  1 root root 0  2월 18 10:45 input25 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input25
lrwxrwxrwx  1 root root 0  2월 18 10:45 input27 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input27
lrwxrwxrwx  1 root root 0  2월 18 10:45 input28 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
lrwxrwxrwx  1 root root 0  2월 18 10:45 input29 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
lrwxrwxrwx  1 root root 0  2월 21 11:53 input3 -> ../../devices/platform/i8042/serio0/input/input3
lrwxrwxrwx  1 root root 0  2월 18 10:45 input30 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
lrwxrwxrwx  1 root root 0  2월 18 10:45 input31 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input31
lrwxrwxrwx  1 root root 0  2월 18 10:45 input32 -> ../../devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input32
lrwxrwxrwx  1 root root 0  2월 21 11:53 input36 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.0/0003:C0F4:07F5.000B/input/input36
lrwxrwxrwx  1 root root 0  2월 21 11:53 input37 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input37
lrwxrwxrwx  1 root root 0  2월 21 11:53 input38 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.2/1-3.4.2:1.1/0003:C0F4:07F5.000C/input/input38
lrwxrwxrwx  1 root root 0  2월 21 11:53 mice -> ../../devices/virtual/input/mice
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse0 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input17/mouse0
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse1 -> ../../devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-1/i2c-ELAN0B00:00/0018:04F3:3136.0001/input/input19/mouse1
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse2 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.4/1-3.4.3/1-3.4.3:1.0/0003:046D:C077.0008/input/input22/mouse2
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse3 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input11/mouse3
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse4 -> ../../devices/pci0000:00/0000:00:15.2/i2c_designware.1/i2c-2/i2c-WCOM0111:00/0018:2D1F:010D.0003/input/input12/mouse4
lrwxrwxrwx  1 root root 0  2월 18 10:45 mouse5 -> ../../devices/pci0000:00/0000:00:19.0/i2c_designware.2/i2c-3/i2c-ELAN902C:00/0018:04F3:2AC2.0002/input/input23/mouse5

 

'프로그램 사용 > wayland' 카테고리의 다른 글

weston evdev libinput  (0) 2024.03.11
weston 커서 숨기기  (0) 2024.02.26
wayland hdmi - touch 연결  (0) 2023.09.08
wayland atomic commit 패치?  (0) 2022.08.22
weston screen shooter 뜯어보기  (0) 2022.08.17
Posted by 구차니
파일방2025. 2. 21. 12:05

윈도우에서 usb 장치의 상세 정보를 보는 유틸리티

USB HID 상세 기능은 출력해주지 않아, 개인적으론 별로 도움이 안되었음

 

[링크 : https://www.nirsoft.net/utils/usb_devices_view.html]

[링크 : https://electronics.stackexchange.com/questions/69247/how-to-uniquely-identify-usb-hid-class-device]

'파일방' 카테고리의 다른 글

transmission for windows  (0) 2025.02.02
Apache ECharts  (0) 2025.01.14
AATU -> UXTU  (0) 2024.12.21
ryzen controller?  (0) 2024.12.21
modbus online 생성기  (0) 2024.12.18
Posted by 구차니
Microsoft/Windows2025. 2. 21. 11:50

변수를 설정하는 명령이 아니었나?

C:\> set
C:\> set 확인할 변수명

[링크 : https://hoohaha.tistory.com/93]

Posted by 구차니

먼가 불타오르는 것도 없는게

그냥 서서히 죽어간다라는 느낌만 든다

1초 1초 늙는것도 아닌 죽어간다는 느낌

 

회사도 일이 재미없는 것만 할당되고

이상하게(?) 시간만 가고 짜증만 나고..

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

차 끌고 일찍 옴, 10g 만져봄  (1) 2025.02.14
추워!!  (0) 2025.02.07
회사 정리 줍줍  (0) 2025.01.02
  (0) 2024.12.21
점심시간의 소소한(?) 유흥  (0) 2024.12.20
Posted by 구차니
개소리 왈왈/블로그2025. 2. 20. 22:39

요 근래 조금은(?) 하락세에서 반등중

 

그런다고 해서 월별추세로 봐서 올라갈것 같지도 않은데, 검색엔진 유입이라도 생겼나?

'개소리 왈왈 > 블로그' 카테고리의 다른 글

해피빈 기부 시즌  (0) 2024.12.18
오블완 챌린지 완료  (0) 2024.11.28
오블완 챌린지?  (3) 2024.11.07
티스토리 수익예측  (1) 2024.09.11
이번주는 개발자들 휴가?  (0) 2024.07.31
Posted by 구차니
개소리 왈왈/컴퓨터2025. 2. 20. 14:59

자꾸 link가 떨어지는데 랜 카드가 문제인지 케이블이 문제인지 몰라서

또 셋트로 지름!

이제 LP 2개, 표준형 2개! ㅋㅋ

 

걍 처음부터 2개씩 살걸..(원래 2배수 지르는 닝겐)

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

줍줍 7세대?  (0) 2025.02.11
10g nic 지름  (0) 2025.02.10
스피커 업그레이드  (0) 2025.01.29
다이소 키보드.... part 2?  (2) 2025.01.21
갑자기 MS 계정 해킹?  (0) 2025.01.09
Posted by 구차니
모종의 음모/CAN2025. 2. 19. 16:35

 

$ modprobe vcan
modprobe: ERROR: could not insert 'vcan': Operation not permitted

$ sudo modprobe vcan
sudo ip link add dev vcan0 type vcan

$ ifconfig
br-638c83b169eb: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        ether 02:42:d5:e6:f1:21  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:40:63:97:cb  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxf8e43b9b776b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.108  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::81f4:65ad:f7cc:2f2c  prefixlen 64  scopeid 0x20<link>
        ether f8:e4:3b:9b:77:6b  txqueuelen 1000  (Ethernet)
        RX packets 3619726  bytes 2156366501 (2.1 GB)
        RX errors 0  dropped 106170  overruns 0  frame 0
        TX packets 1452518  bytes 317915291 (317.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 160829  bytes 14028478 (14.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160829  bytes 14028478 (14.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.107  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::104b:d69c:878f:cfaa  prefixlen 64  scopeid 0x20<link>
        ether 8c:55:4a:28:25:bc  txqueuelen 1000  (Ethernet)
        RX packets 809871  bytes 90255020 (90.2 MB)
        RX errors 0  dropped 99865  overruns 0  frame 0
        TX packets 53067  bytes 6125665 (6.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ ifconfig -a
br-638c83b169eb: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        ether 02:42:d5:e6:f1:21  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:40:63:97:cb  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxf8e43b9b776b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.108  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::81f4:65ad:f7cc:2f2c  prefixlen 64  scopeid 0x20<link>
        ether f8:e4:3b:9b:77:6b  txqueuelen 1000  (Ethernet)
        RX packets 3620125  bytes 2156544266 (2.1 GB)
        RX errors 0  dropped 106183  overruns 0  frame 0
        TX packets 1452676  bytes 317938700 (317.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 160841  bytes 14030154 (14.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160841  bytes 14030154 (14.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vcan0: flags=128<NOARP>  mtu 72
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.107  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::104b:d69c:878f:cfaa  prefixlen 64  scopeid 0x20<link>
        ether 8c:55:4a:28:25:bc  txqueuelen 1000  (Ethernet)
        RX packets 809990  bytes 90270371 (90.2 MB)
        RX errors 0  dropped 99877  overruns 0  frame 0
        TX packets 53074  bytes 6126348 (6.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ sudo ifconfig vcan0 up
$ ifconfig
br-638c83b169eb: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255
        ether 02:42:d5:e6:f1:21  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:40:63:97:cb  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxf8e43b9b776b: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.108  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::81f4:65ad:f7cc:2f2c  prefixlen 64  scopeid 0x20<link>
        ether f8:e4:3b:9b:77:6b  txqueuelen 1000  (Ethernet)
        RX packets 3620430  bytes 2156573250 (2.1 GB)
        RX errors 0  dropped 106197  overruns 0  frame 0
        TX packets 1452764  bytes 317953427 (317.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 160841  bytes 14030154 (14.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160841  bytes 14030154 (14.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vcan0: flags=193<UP,RUNNING,NOARP>  mtu 72
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.220.107  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::104b:d69c:878f:cfaa  prefixlen 64  scopeid 0x20<link>
        ether 8c:55:4a:28:25:bc  txqueuelen 1000  (Ethernet)
        RX packets 810099  bytes 90278671 (90.2 MB)
        RX errors 0  dropped 99889  overruns 0  frame 0
        TX packets 53074  bytes 6126348 (6.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[링크 : https://ola-page.tistory.com/66]

 

 

 

$ candump 
candump - dump CAN bus traffic.

Usage: candump [options] <CAN interface>+
  (use CTRL-C to terminate candump)

Options:
         -t <type>   (timestamp: (a)bsolute/(d)elta/(z)ero/(A)bsolute w date)
         -H          (read hardware timestamps instead of system timestamps)
         -c          (increment color mode level)
         -i          (binary output - may exceed 80 chars/line)
         -a          (enable additional ASCII output)
         -S          (swap byte order in printed CAN data[] - marked with '`' )
         -s <level>  (silent mode - 0: off (default) 1: animation 2: silent)
         -l          (log CAN-frames into file. Sets '-s 2' by default)
         -L          (use log file format on stdout)
         -n <count>  (terminate after reception of <count> CAN frames)
         -r <size>   (set socket receive buffer to <size>)
         -D          (Don't exit if a "detected" can device goes down.
         -d          (monitor dropped CAN frames)
         -e          (dump CAN error frames in human-readable format)
         -x          (print extra message infos, rx/tx brs esi)
         -T <msecs>  (terminate after <msecs> without any reception)

Up to 16 CAN interfaces with optional filter sets can be specified
on the commandline in the form: <ifname>[,filter]*

Filters:
  Comma separated filters can be specified for each given CAN interface:
    <can_id>:<can_mask>
         (matches when <received_can_id> & mask == can_id & mask)
    <can_id>~<can_mask>
         (matches when <received_can_id> & mask != can_id & mask)
    #<error_mask>
         (set error frame filter, see include/linux/can/error.h)
    [j|J]
         (join the given CAN filters - logical AND semantic)

CAN IDs, masks and data content are given and expected in hexadecimal values.
When the can_id is 8 digits long the CAN_EFF_FLAG is set for 29 bit EFF format.
Without any given filter all data frames are received ('0:0' default filter).

Use interface name 'any' to receive from all CAN interfaces.

Examples:
candump -c -c -ta can0,123:7FF,400:700,#000000FF can2,400~7F0 can3 can8

candump -l any,0~0,#FFFFFFFF
         (log only error frames but no(!) data frames)
candump -l any,0:0,#FFFFFFFF
         (log error frames and also all data frames)
candump vcan2,12345678:DFFFFFFF
         (match only for extended CAN ID 12345678)
candump vcan2,123:7FF
         (matches CAN ID 123 - including EFF and RTR frames)
candump vcan2,123:C00007FF
         (matches CAN ID 123 - only SFF and non-RTR frames)

 

$ cansend vcan0
cansend - send CAN-frames via CAN_RAW sockets.

Usage: cansend <device> <can_frame>.

<can_frame>:
 <can_id>#{data}          for 'classic' CAN 2.0 data frames
 <can_id>#R{len}          for 'classic' CAN 2.0 data frames
 <can_id>##<flags>{data}  for CAN FD frames

<can_id>:
 3 (SFF) or 8 (EFF) hex chars
{data}:
 0..8 (0..64 CAN FD) ASCII hex-values (optionally separated by '.')
{len}:
 an optional 0..8 value as RTR frames can contain a valid dlc field
<flags>:
 a single ASCII Hex value (0 .. F) which defines canfd_frame.flags

Examples:
  5A1#11.2233.44556677.88 / 123#DEADBEEF / 5AA# / 123##1 / 213##311223344 /
  1F334455#1122334455667788 / 123#R / 00000123#R3

 

아래는 데이터 출력 포맷 확인용

인터페이스 / CAN id / 길이 / 데이터(페이로드 길이)

receive send
$ candump vcan0
  vcan0  111   [5]  01 02 03 04 05
$ cansend vcan0 111#010203.04.05
  vcan0  112   [5]  01 02 03 04 05 $ cansend vcan0 112#010203.04.05
  vcan0  112   [0]  $ cansend vcan0 112#
  vcan0  112  [00] $ cansend vcan0 112##1
  vcan0  112  [01]  23 $ cansend vcan0 112##123
  vcan0  112   [0]  remote request $ cansend vcan0 112#R
  vcan0  112   [3]  remote request $ cansend vcan0 112#R3

 

받는 쪽에서 CAN id 제한할 경우, 112를 받도록 설정했기에 113은 무시된다.

   
$ candump vcan0,112:FF $ cansend vcan0 111#R3
  vcan0  112   [3]  remote request $ cansend vcan0 112#R3
  $ cansend vcan0 113#R3
  vcan0  112   [5]  01 02 03 04 05 $ cansend vcan0 112#010203.04.05
  vcan0  112   [6]  01 02 03 04 05 06 $ cansend vcan0 112#010203.04.0506
  vcan0  112   [7]  01 02 03 04 05 06 07 $ cansend vcan0 112#010203.04.0506.07
  vcan0  112   [0]  remote request $ cansend vcan0 112#R
$ cansend vcan0 112#R10
$ cansend vcan0 112#R100
  vcan0  112   [1]  remote request $ cansend vcan0 112#R1
  vcan0  112   [2]  remote request $ cansend vcan0 112#R2
  vcan0  112   [8]  remote request $ cansend vcan0 112#R8

 

그나저나 mask 라는데 이해가 안되네..

123 = 0x7B & 0x7F0 하면 0x7B가 되어야 하니 16개에 대해서 받아들여야 할 거 같은데 왜 119에서 130 까지 12개 받아들여 질까?

$ candump vcan0,123:7F0
  vcan0  120   [0]  remote request
  vcan0  121   [0]  remote request
  vcan0  122   [0]  remote request
  vcan0  123   [0]  remote request
  vcan0  124   [0]  remote request
  vcan0  125   [0]  remote request
  vcan0  126   [0]  remote request
  vcan0  127   [0]  remote request
  vcan0  128   [0]  remote request
  vcan0  129   [0]  remote request
$ cansend vcan0 119#R
$ cansend vcan0 120#R
$ cansend vcan0 121#R
$ cansend vcan0 122#R
$ cansend vcan0 123#R
$ cansend vcan0 124#R
$ cansend vcan0 125#R
$ cansend vcan0 126#R
$ cansend vcan0 127#R
$ cansend vcan0 128#R
$ cansend vcan0 129#R
$ cansend vcan0 130#R

'모종의 음모 > CAN' 카테고리의 다른 글

can invader  (0) 2024.01.09
CAN(controller area network)  (0) 2023.10.31
mcp2515 can  (0) 2023.10.30
CAN 통신 우선순위  (0) 2015.01.23
Posted by 구차니