Help to send Data from an Arduino Uno per AT86RF233 to a Raspberry PI

I'm still relatively new in the area and have some questions. Hopefully you can help me to continue my project.

My aim is to network an Arduino UNO with a Raspberry PI 3. This should happen through the AT86RF233 transceiver, which is on both sides. The whole thing should then run on IEEE802.15.4. At the Arduino then different sensor are to be attached in order to transfer the temperature for example.

I use the following transceiver:

What I already got to run is that of the Arduino receiving data from the Raspberry. Thanks git hub:

My problem is to send the data. It gives the commando “Send”, only this must have the header of IEEE802.15.04 in the beginning only I do not understand how this must be constructed.

The send data command from the AT86RF233:

     * @brief   Convenience function for simply sending data
     * @note This function ignores the PRELOADING option
     * @param[in] data          data to send (must include IEEE802.15.4 header)
     * @param[in] len           length of @p data
     * @return                  number of bytes that were actually send
     * @return                  0 on error
size_t send(uint8_t *data, size_t len);

Der Raspberry PI use IPV6 about UDP to send Daten to the another PI:

That the code:

import socket
5 import time
6 import Adafruit_DHT
8 UDP_IP = 'ff02::1'
9 UDP_PORT = 1234
12def data_DHT11():
13 humidity, temperature = Adafruit_DHT.read_retry(11, 4)
14 measure = ('Temp: {0:0} C Humidity: {1:0} %'.format(temperature, humidity))
15 textmeasure = str(measure)
16 return textmeasure
19def main():
20 interface = socket.if_nametoindex('lowpan0')
21 sock = socket.socket(socket.AF_INET6,socket.SOCK_DGRAM)
22 sock.bind((UDP_IP, UDP_PORT, 0, interface))
24 while True:
25 sock.sendto(data_DHT11().encode(),(UDP_IP,UDP_PORT))
26 time.sleep(10)
29if __name__ == '__main__':
30 main()

I hope somebody can help me with the issues how to fix it on the Arduino.

Or to explain me how must be build the Header for send Data form the AT86RF233 to the PI

Thanks a lot