Cabin Communication Documentation\u000a\u000aSerial Communication Data Structure\u000aNormal Data\u000aStart Flag\tFunction Code\tDevice ID\tLength\tFunction 1\tFunction 2\tFunction 3\tFunction 4\t...\u000a1 Byte\t1 Byte\t1 Byte\t1 Byte\tN Bytes\tN Bytes\tN Bytes\tN Bytes\t\u000aAE\t01\u000aInquiry/Response\u000a02 Control\tCustom Unique\tFunction Data Length\t\t\t\t\t\u000aFault Data\u000aStart Flag\tFunction Code\tDevice ID\tLength\tFault Code\u000a1 Byte\t1 Byte\t1 Byte\t1 Byte\t2 Bytes\u000aAE\t03 Fault Data\tCustom Unique\tDefault Value 2\tSpecific Fault Code, refer to Fault Code Documentation for detailed code meanings\u000a\u000a\u000aExample:\u000aDevice Information Description\u000a\u000aDevice\tDevice ID\tFunction ID\tFunction Description\tFunction Type\u000a(Read,\u000aWrite,\u000aRead&Write)\tData Length (Byte)\tData Type\tCycle (ms)\u000a(0 Inquiry)\tScale Factor\tActual Value Range\t\u000aRemarks\u000a\u000a\u000a\u000a\u000aSeat\t\u000a\u000a\u000a\u000a01\t01\tSeat 1 Forward/Backward\u000a0 Stop\u000a1 Forward\u000a2 Backward\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t02\tSeat 1 Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t03\tSeat 1 Pitch\u000a0 Stop\u000a1 Pitch Up\u000a2 Pitch Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t04\tSeat 2 Forward/Backward\u000a0 Stop\u000a1 Forward\u000a2 Backward\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t05\tSeat 2 Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tSeat 2 is the co-driver seat, up/down function reserved\u000a\t\t06\tSeat 2 Pitch\u000a0 Stop\u000a1 Pitch Up\u000a2 Pitch Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t07\tSeat 3 Forward/Backward\u000a0 Stop\u000a1 Forward\u000a2 Backward\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t08\tSeat 3 Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tSeat 3 is the main rear seat, up/down function reserved\u000a\t\t09\tSeat 3 Pitch\u000a0 Stop\u000a1 Pitch Up\u000a2 Pitch Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t10\tSeat 4 Forward/Backward\u000a0 Stop\u000a1 Forward\u000a2 Backward\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000a\t\t11\tSeat 4 Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tSeat 4 is the co-rear seat, up/down function reserved\u000a\t\t12\tSeat 4 Pitch\u000a0 Stop\u000a1 Pitch Up\u000a2 Pitch Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\t\u000aSeat shake\u000a\t\t13\tSeat 1 Cushion Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\tSeat motor has three levels: A, B, C\u000a\t\t14\tSeat 1 Backrest Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t15\tSeat 2 Cushion Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\tSeat motor has three levels: A, B, C\u000a\t\t16\tSeat 2 Backrest Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t17\tSeat 3 Cushion Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\tSeat motor has three levels: A, B, C\u000a\t\t18\tSeat 3 Backrest Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t19\tSeat 3 Cushion Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t20\tSeat 3 Backrest Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t21\tSeat 4 Cushion Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\t\t22\tSeat 4 Backrest Vibration\u000a0 Off\u000a1 Level A\u000a2 Level B\u000a3 Level C\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\t\u000a\u000awheel\u000ashake\u000a\t\t23\tSteering Wheel Vibration\u000a0 Off\u000a1 On\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-3\tSteering wheel has only one level\u000a\u000awindow\u000a\t\t24\tDriver Window Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tWindow Lift\u000a\t\t25\tCo-driver Window Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tWindow Lift\u000a\t\t26\tMain Rear Window Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tWindow Lift\u000a\t\t27\tCo-rear Window Up/Down\u000a0 Stop\u000a1 Up\u000a2 Down\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-2\tWindow Lift\u000aLED\u000a\t\t28\tReading Light Servo Movement\u000a0 Stop\u000a1 45°\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-1\tDefault motor is at 90°, open reading light is at 45° deviation\u000a\t\t29\tReading Light\u000a0 Off\u000a1 On\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-1\tAlternative scheme, lower machine turns on based on servo movement angle.\u000a\t\t30\tAmbient Light\u000a0 Off\u000a1 Red\u000a2 Green 3 Blue 4 Yellow 5 Purple 6 Cyan 7 White 8 Slow Cycle 9 Fast Cycle\tRead&Write\t1\tUnsigned Integer (Range: 0-255)\t0\t1\t0-9\tTemporarily set to 9 modes, further determination in the future.\u000a\u000a\u000a\u000a\u000a\u000a\u000aPedal\t02\t07\tAccelerator\u000a0-10\u000a0 is the minimum value\u000a10 is the maximum value\tRead\t2\t16-bit unsigned integer\t20\t0.01\t0-10\t\u000a\t\t08\tBrake\u000a0-10\u000a0 is the minimum value\u000a10 is the maximum value\tRead\t2\t16-bit unsigned integer\t20\t0.01\t0-10\t\u000aActual physical value = serial port value * scale factor;\u000aCycle is the time interval between two active uploads, unit: ms ;\u000a\u000aControl \u000aUpper machine sends: AE 02 01 06 00 01 00 00 01 00\u000aControl Seat 1 and Seat 2 to move up simultaneously\u000aInquiry\u000a\u000aUpper machine sends: AE 01 01\u000aUpper machine inquires about the current seat device status\u000aLower machine returns: AE 01 01 06 00 01 00 00 01 00\u000aLower machine returns the current device status, Seat 1 and Seat 2 are in the rising state, other states are in the stop state \u000a\u000aActive Upload\u000aLower machine sends:\u000aAE 01 02 04 02 DD 00 00\u000aAccelerator value is 7.33 (7330.01), brake value is 0 (00.01);\u000a\u000aFault Information\u000aLower machine sends:\u000aAE 03 01 02 00 0f\u000aSeat 1 device fault\u000a\u000aUpper Machine Configuration Structure\u000aThe device definition in the main software is inconsistent with the device definition in this structure. The device in this document is the smallest modularized device.\u000aThe device definition in the main software is a collection of all interface devices on the same interface or related to each other\u000a\u000aThe devices in the main software are distinguished by different device file names. The specific naming format of the configuration table is\u000a"Main software defined device name + Config". The files can be stored in json format, and the configuration file is encrypted.\u000a\u000aOverall Table Structure\u000a\u000aDevice 1\tDetailed structure refers to device attributes\u000aDevice 2\t\u000aDevice 3\t\u000aDevice 4\t\u000aDevice ...\t\u000a\u000aDevice Attributes\u000aDevice Attributes\tDescription\u000aSerial Port ID\tWhich serial port does it belong to\u000aDevice ID\tDevice ID, unique\u000aData Type\tResponse\u000aNeed to send inquiry frame to get data \u000aNotification\u000aUpload data at a fixed frequency\u000aFunction 1\tFunction 1 related attributes (detailed structure refers to function attributes)\u000aFunction 2\tFunction 2 related attributes\u000aFunction 3\tFunction 3 related attributes\u000aFunction 4\tFunction 4 related attributes\u000a...\t...\u000a\u000a\u000aFunction Attributes\u000aFunction Type\tRead Only Write data is invalid, only status value can be obtained\u000aWrite Only Only control, no status reading\u000aRead&Write Can be controlled and status value can be obtained\u000aData Length\tByte length\u000aStarting Bit\tData starting bit (calculate using the first byte after the length byte as index 0, actually calculate +4)\u000aScale Factor\tSerial port value * scale factor = actual physical value\u000aData Type\t)\u000a\u000a\u000aData Type includes (\u000aSigned Integer,\u000aUnsigned Integer,\u000aFloating Point\u000a\u000aClient Sending Data Format\u000a\u000aAttribute\tDescription\u000aFunction Code\tRefer to the function code explanation for details\u000a\u000aDevice ID \tSpecific device ID\u000aFunction ID\tFunction ID \u000aData\tInput data according to document requirements\u000aFunction Code \u000aCommand\t Control instruction\u000aRead Read status instruction (both client reading and main software return use this flag)\u000aError Error state (main software returns use this state)\u000a\u000aMain Software Returns\u000a\u000aAttribute\tDescription\u000aFunction Code\tRefer to the function code explanation for details\u000a\u000aDevice ID \tSpecific device ID\u000aFunction ID\tFunction ID \u000aData\tInput data according to document requirements\u000aFunction Code \u000aCommand\t Control instruction\u000aRead Read status instruction (both client reading and main software return use this flag)\u000aError Error state (main software returns use this state)


原文地址: https://www.cveoy.top/t/topic/pqU1 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录