mcb30 / dw1000 Goto Github PK
View Code? Open in Web Editor NEWDecaWave DW1000 Linux kernel driver
DecaWave DW1000 Linux kernel driver
hi,
linux kernal 4.9.x ptp_clock_info struct have no adjfine
Hello, I compiled a module with a 4.19.66 kernel for Raspi. But installing doesn't launch the module. Manual loading the module to the system via sudo insmod gives error with symbol. In dmesg we can see couple of errors:
[ 4199.416354] dw1000_mod: Unknown symbol ieee802154_free_hw (err -2)
[ 4199.416460] dw1000_mod: Unknown symbol ieee802154_register_hw (err -2)
[ 4199.416561] dw1000_mod: Unknown symbol ieee802154_alloc_hw (err -2)
[ 4199.416610] dw1000_mod: Unknown symbol ieee802154_xmit_complete (err -2)
[ 4199.416707] dw1000_mod: Unknown symbol ptp_clock_register (err -2)
[ 4199.416777] dw1000_mod: Unknown symbol ieee802154_rx_irqsafe (err -2)
[ 4199.416930] dw1000_mod: Unknown symbol ptp_clock_unregister (err -2)
[ 4199.417149] dw1000_mod: Unknown symbol ieee802154_unregister_hw (err -2)
[ 4387.522510] NET: Registered protocol family 36
[ 4408.398188] dw1000_mod: Unknown symbol ptp_clock_register (err -2)
[ 4408.398389] dw1000_mod: Unknown symbol ptp_clock_unregister (err -2)
[ 4412.838619] dw1000_mod: Unknown symbol ptp_clock_register (err -2)
[ 4412.838825] dw1000_mod: Unknown symbol ptp_clock_unregister (err -2)
lsmod showing that 802154 module is loaded:
ieee802154_socket 24576 0
mac802154 73728 0
ieee802154 81920 2 ieee802154_socket,mac802154
Hello, i setup to use the DW1000 chip with a direct connection to RPi4. Chip is on EVB1000 board. I have 2 boards. Both configured for channel 7, cfg->rate 2, cfg->pulse 2, get pcode 12. Im using iperf3 test program to test UDP connection between boards and best speed that I can achieve is 1Mbit. I want to have 2.5Mbit. Is there some tricks that will help me to increase communication speed?
Hi,
I have cross-compiled your driver for a Yocto-linux embedded device (with no errors).
However, when trying to send frames, I get an error (-22). Do you have an idea from where this could come ?
Bellow more details on the procedure and error :
ip link set wpan0 down
ip link set wpan0 address 76:dd:3c:55:1c:43:9a:aa
iwpan phy0 set channel 4 2
iwpan dev wpan0 set pan_id 0xCAFE
iwpan dev wpan0 set short_addr 0x0001
ip link set wpan0 up
iwpan dev
wpan-ping -a 11:22:33:44:55:66 -i wpan0
[ 38.952695] dw1000_mod: loading out-of-tree module taints kernel.
[ 38.958584] dw1000 spi0.0: device does not support GPIO RESET control
[ 38.958643] dw1000 spi0.0: device does not support GPIO POWER control
[ 38.977691] Initialization
[ 38.977917] dw1000 spi0.0: found model 1.3.0
[ 38.981413] dw1000 spi0.0: set xtal trim 0x0f
[ 38.984084] dw1000 spi0.0: set LDOTUNE 08:88:88:88:88
[ 38.986927] dw1000 spi0.0: has no permanent EUI-64 address
[ 38.988047] dw1000 spi0.0: set antenna delays 0x0000,0x0000
[ 38.992475] dw1000 spi0.0: I read dev_id : 0xdeca
[ 51.479224] dw1000 spi0.0: set channel 2
[ 51.501790] dw1000 spi0.0: promiscuous mode disabled
[ 51.501989] dw1000 spi0.0: set PAN ID cafe
[ 51.502180] dw1000 spi0.0: set EUI64 76dd3c551c439aaa
[ 51.502366] dw1000 spi0.0: set short address 0001
[ 51.503086] dw1000 spi0.0: started
[ 58.799961] random: crng init done
[ 67.537920] dw1000 spi0.0: TX data message failed: -22
[ 68.046570] dw1000 spi0.0: TX data message failed: -22
[ 68.556604] dw1000 spi0.0: TX data message failed: -22
[ 69.066571] dw1000 spi0.0: TX data message failed: -22
[ 69.576597] dw1000 spi0.0: TX data message failed: -22
...
Thank you and have a good day
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.