Tx buffer filled by MAC Commands, send data again

Home Forums mDot/xDot Tx buffer filled by MAC Commands, send data again

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27891

    Hello,

    I am working with a python software in my machine that sends AT COMMANDS to mDot (through serial USB)

    After a couple of executions of this code, I started to receive an error: Tx buffer filled by MAC Commands, send data again.

    I couldn’t find anything on documentation about it.

    Does anybody know what is happening here?

    With best regards

    Sebastian

    mDot_serial = "/dev/tty.usbmodem142103"
    
    import serial
    import time
    
    def sendCommand(command):
        print("\nSending: " + command)
        message = command + "\n"
        ser.write(message.encode())
        response = ser.readline()
        print(response.decode('utf-8'))
        response = ser.readline()
        print(response.decode('utf-8'))
        response = ser.readline()
        print(response.decode('utf-8'))
        response = ser.readline()
        print(response.decode('utf-8'))
        response = ser.readline()
        print(response.decode('utf-8'))
        time.sleep(3)
    
    ser = serial.Serial('/dev/tty.usbmodem142201', 115200, timeout=1)
    
    sendCommand("AT+FSB=2")
    sendCommand("AT+NJM=0")
    sendCommand("AT+NA=18446103")
    sendCommand("AT+DSK=77deeb59dfsfsdfdfdsfsdfae9e911e3")
    sendCommand("AT+NSK=77deeb59dfsfsdfdfdsfsdfae9e911e3")
    
    sendCommand("AT+SEND=lalalala")
    
    ser.close()
    #27892
    Jason Reiss
    Keymaster

    US915 using DR0 can send a maximum of 11 bytes payload.
    Occasionally MAC commands responses need to be sent to the network. This will reduce the number of payload bytes available to send.

    In Dot v3.2.1 AT+TXS will return the number of bytes available for the next uplink.

    #27895

    Thank you very much for your answer!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.