Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

passing a command to a AI model trained on j1939 stack to send a message on bus

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    passing a command to a AI model trained on j1939 stack to send a message on bus

  2. Claude Assistant

    To send a J1939 message on the CAN bus through an AI model, you'll need to structure your command with the key J1939 parameters. Here's what a typical command might include:

    Essential parameters for a J1939 message:

    • PGN (Parameter Group Number): The identifier for the message type
    • Source Address: The address of the sending ECU (0x00-0xFE)
    • Destination Address: For PDU1 format messages (0x00-0xFE, or 0xFF for broadcast)
    • Priority: Message priority (0-7, where 0 is highest)
    • Data: The actual payload (up to 8 bytes for single frame)

    Example command formats:

    For a simple broadcast message:

    send_j1939(pgn=0xFEF1, source=0x21, data=[0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08], priority=6)
    

    For a destination-specific message:

    send_j1939(pgn=0xEF00, source=0x21, dest=0x49, data=[0xFF, 0x00, 0x12, 0x34], priority=3)
    

    For a multi-packet message using Transport Protocol:

    send_j1939_tp(pgn=0xFECA, source=0x21, data=byte_array, priority=6)
    

    The exact syntax will depend on how your AI model's API is structured. Some implementations might use JSON format, function calls, or natural language commands. The model should handle the CAN ID construction (combining priority, PGN, source, and destination into the 29-bit identifier) and manage the actual CAN frame transmission.

    What specific J1939 message are you trying to send, or what's your use case?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.