Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tested in MAC OS with Samsung Galaxy S9 #35

Closed
ritgail opened this issue Jul 18, 2020 · 6 comments
Closed

Tested in MAC OS with Samsung Galaxy S9 #35

ritgail opened this issue Jul 18, 2020 · 6 comments
Labels
samsung Bugs related to Samsung Exynos modem

Comments

@ritgail
Copy link

ritgail commented Jul 18, 2020

I tested scat in MAC OS, had to install:
brew install libusb
After that, it worked.

As it is said the user plane packet is routed to port 47290, can I get SIP messages in case of VoLTE calls?

@ritgail ritgail changed the title Tested in MAC with Samsung Galaxy S9 Tested in MAC OS with Samsung Galaxy S9 Jul 18, 2020
@peremen
Copy link
Member

peremen commented Aug 7, 2020

It should be (tested with Galaxy S8), but I haven't tested Samsung parsers these days so YMMV.

@rsin46
Copy link

rsin46 commented Nov 25, 2020

Hi @ritgail could I ask what settings you were using to get this working. I have a MacOS with Samsung S9 and get the following errors:
rohansingh@Rohans-MacBook-Pro scat % sudo python3 scat.py -t sec -m e303 -u -a 020:005 -i 3 Trying USB device at address 020:005 CONFIGURATION 1: 64 mA =================================== bLength : 0x9 (9 bytes) bDescriptorType : 0x2 Configuration wTotalLength : 0x79 (121 bytes) bNumInterfaces : 0x4 bConfigurationValue : 0x1 iConfiguration : 0x4 Conf 1 bmAttributes : 0xc0 Self Powered bMaxPower : 0x20 (64 mA) INTERFACE 0: CDC Communication ========================= bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x0 bAlternateSetting : 0x0 bNumEndpoints : 0x1 bInterfaceClass : 0x2 CDC Communication bInterfaceSubClass : 0x2 bInterfaceProtocol : 0x1 iInterface : 0x5 CDC Abstract Control Model (ACM) ENDPOINT 0x82: Interrupt IN ========================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x82 IN bmAttributes : 0x3 Interrupt wMaxPacketSize : 0xa (10 bytes) bInterval : 0x9 INTERFACE 1: CDC Data ================================== bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x1 bAlternateSetting : 0x0 bNumEndpoints : 0x2 bInterfaceClass : 0xa CDC Data bInterfaceSubClass : 0x0 bInterfaceProtocol : 0x0 iInterface : 0x6 CDC ACM Data ENDPOINT 0x81: Bulk IN =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x81 IN bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 ENDPOINT 0x1: Bulk OUT =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x1 OUT bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 INTERFACE 2: Vendor Specific =========================== bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x2 bAlternateSetting : 0x0 bNumEndpoints : 0x2 bInterfaceClass : 0xff Vendor Specific bInterfaceSubClass : 0x10 bInterfaceProtocol : 0x1 iInterface : 0x0 ENDPOINT 0x83: Bulk IN =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x83 IN bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 ENDPOINT 0x2: Bulk OUT =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x2 OUT bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 INTERFACE 3: Vendor Specific =========================== bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x3 bAlternateSetting : 0x0 bNumEndpoints : 0x2 bInterfaceClass : 0xff Vendor Specific bInterfaceSubClass : 0x42 bInterfaceProtocol : 0x1 iInterface : 0x9 ADB Interface ENDPOINT 0x3: Bulk OUT =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x3 OUT bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 ENDPOINT 0x84: Bulk IN =============================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x84 IN bmAttributes : 0x2 Bulk wMaxPacketSize : 0x200 (512 bytes) bInterval : 0x0 2020-11-25 19:06:39,882 scat.samsungparser (stop_diag) INFO: Stopping diag Traceback (most recent call last): File "scat.py", line 158, in <module> current_parser.stop_diag() File "/Users/rohansingh/git/scat/parsers/samsung/samsungparser.py", line 165, in stop_diag self.io_device.write(b'\x7f\x0e\x00\x00\x0b\x00\x00\x00\xa0\x00\x02\x00\x00\x00\x00\x7e') File "/Users/rohansingh/git/scat/iodevices/usbio.py", line 29, in write self.w_handle.write(write_buf) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 406, in write return self.device.write(self, data, timeout) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 974, in write intf, ep = self._ctx.setup_request(self, endpoint) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 113, in wrapper return f(self, *args, **kwargs) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 227, in setup_request self.managed_claim_interface(device, intf) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 113, in wrapper return f(self, *args, **kwargs) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/core.py", line 178, in managed_claim_interface self.backend.claim_interface(self.handle, i) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/backend/libusb1.py", line 829, in claim_interface _check(self.lib.libusb_claim_interface(dev_handle.handle, intf)) File "/Users/rohansingh/.pyenv/versions/3.6.10/lib/python3.6/site-packages/usb/backend/libusb1.py", line 604, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 13] Access denied (insufficient permissions)

Which interface works for you?

@peremen peremen added the samsung Bugs related to Samsung Exynos modem label Mar 12, 2021
@xgongluo
Copy link

I tested scat in MAC OS, had to install:
brew install libusb
After that, it worked.

As it is said the user plane packet is routed to port 47290, can I get SIP messages in case of VoLTE calls?

Could you please share your S9 firmware version? I cann't get LTE message output with G960FXXU6CSG8. Thanks.

@ritgail
Copy link
Author

ritgail commented May 3, 2021

Sorry for the delayed response. Have you activated the DM?
Dial *#0808, then activate DM + ACM + RNDIS, which will open up the new in interface 4 in the USB bus:address, with the endpoints.
Then run normally, layer 3 messages should show up.

Thanks to the team, I am still learning.

@ritgail
Copy link
Author

ritgail commented May 3, 2021

Access denied (insufficient permissions)

I think some other program or another hanged python script is still accessing your USB. After you activate DM mode, interface 4 should show. It works for me.

@peremen
Copy link
Member

peremen commented Feb 3, 2023

For Samsung basebamd, see the last comment of #27.

@peremen peremen closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samsung Bugs related to Samsung Exynos modem
Projects
None yet
Development

No branches or pull requests

4 participants