URC frame not handled correctly

Đang mở
#179 3 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
networking

Hướng nghiên cứu

The URC handling is in the cellular library's AT-message dispatch, where the _handleMsgType path reports AT_UNDEFINED for unprefixed messages such as "SRING: 1" and no undefined callback is registered. Start by finding where the undefined-type callback is set and how unprefixed URCs are matched against the expected prefix list. Done means a registered handler receives the SRING URC and the debug log no longer reports a failed message type.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi there,

I started to port the driver to ME310G1 modem inspired from SARA-R4 driver.
Connexion is now working and I'm currently porting the socket layer.
I'm facing the lib do not handle URC correctly.

Once socket is opened, the ME310 send URC "SRING: x" (with x=socket ID) to inform data are available.
but this URC is not handled by the lib. instead i get

DEBUG [ME310 ] 12 bytes received (..SRING: 1..)
DEBUG [CELLULAR ] AT Read 12 bytes, data[200080c6]
INFO [CELLULAR ] AT_UNDEFINED message received SRING: 1
ERROR [CELLULAR ] No undefined callback for AT_UNDEFINED type message SRING: 1 received.
ERROR [CELLULAR ] recvdMsgType is AT_UNDEFINED for Message: SRING: 1, cmd NULL
DEBUG [CELLULAR ] _handleMsgType failed 11

If i right understood the lib source, URC message can't be without prefix.. but it is the case here..

Ngôn ngữ chính
C
Star
101
Fork
73
Merge trung bình
28 ngày 19 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FreeRTOS/FreeRTOS-Cellular-Interface

Tất cả issue của FreeRTOS/FreeRTOS-Cellular-Interface

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.