[7977] 2014-04-22_使用HackRF解调TDD-LTE信号

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-17
2014-04-22_使用HackRF解调TDD-LTE信号 使 H a c k R F T D D - L T E s c a t e u   F r e e B u f   2 0 1 4 - 0 4 - 2 2 线 线 S o f t w a r e   D e f i n e d   R a d i o z h u a n g b i f a n 2 B 2 B   =   t o   b u s i n e s s r t l 2 8 3 2 h t t p : / / s d r . o s m o c o m . o r g / t r a c / w i k i / r t l - s d r S D R 5 0 6 0 R M B s h o w   o f f G S M 线 L T E S D R L T E L T E h t t p s : / / g i t h u b . c o m / E v r y t a n i a / L T E - C e l l - S c a n n e r L T E P B C H 广 4 G g i t   c l o n e T D - L T E F D D 4 G L N B / O p e n C L 2 0   h t t p s : / / g i t h u b . c o m / J i a o X i a n j u n / L T E - C e l l - S c a n n e r H a c k R F   L T E   T D D - L T E g u a n g g a o 便 1 . E 4 K 2 . 2 G H z 8 2 0 t 1 . 7 6 G H z L T E 1 . 8 G H z 8 2 0 t E 4 K E 4 K E 4 K 2 . 4 G H z M M D S - L N B 2 . 2 3 M 1 2 M L T E W i F i L T E P B C H 广 1 M H z L T E 广 S I B 1 M H z 3 .   4 .   R F 广 便 便 S D R 2 B U S R P 2 C B l a d e R F H a c k R F k i c k s t a r t e r H a c k R F k i c k s t a r t e r N B h a c k r f . n e t   H a c k R F H a c k R F L T E H F D 5 1 0 2 5 1 0 2 H a c k R F H a c k R F H a c k R F
1 .   H a c k R F 2 .   E 4 K E 4 K L T E H a c k R F 3 . E 4 K H a c k R F T h i n k p a d T 4 1 0 2 2 0 V U S B U S B H a c k R F U S B H a c k R F n H a c k R F 线 线 M I M O B l a d e R F 线 ( :   H a c k R F 1 0 M H z H a c k R F M I M O H a c k R F 1 0 M H z ) 使 使 C H a c k R F G N U R a d i o S D R U S R P B l a d e R F r t l - s d r H a c k R F e t c 便 G N U R a d i o C / C + + H a c k R F r t l - s d r U S B S D R V I C / C + + 使 H a c k R F d a n t e n g L i n u x L i n u x b l o g h t t p : / / b l o g . s i n a . c o m . c n / s / b l o g _ 6 7 c d a f e 2 0 1 0 1 4 o d m . h t m l 1 h a c k r f c m a k e g i t h u b U b u n t u 1 2 . 0 4
g i t   c l o n e   h t t p s : / / g i t h u b . c o m / m o s s m a n n / h a c k r f . g i t c d   h a c k r f / h o s t m k d i r   b u i l d c d   b u i l d c m a k e   . . m a k e s u d o   m a k e   i n s t a l l H a c k R F c m a k e m a k e l i b u s b U S B S D R l i b u s b   s u d o   m a k e   i n s t a l l   A P I   / u s r / l o c a l / i n c l u d e / l i b h a c k r f / h a c k r f . h / u s r / l o c a l / l i b / l i b h a c k r f . a l i b h a c k r f . s o H a c k R F h o s t / l i b h a c k r f / s r c /   h a c k r f . h ;   h a c k r f . c A P I h o s t / h a c k r f - t o o l s / s r c /     h a c k r f _ t r a n s f e r . c   C / C + + 使 H a c k R F G N U R a d i o H a c k R F 2 使 使 H a c k R F C / C + + H a c k R F H a c k R F H a c k R F H a c k R F L i n u x e r c m a k e c m a k e 使 H a c k R F L T E   h t t p s : / / g i t h u b . c o m / J i a o X i a n j u n / L T E - C e l l - S c a n n e r     c m a k e / M o d u l e s /   F i n d H A C K R F . c m a k e   H a c k R F H a c k R F H a c k R F   F i n d H A C K R F . c m a k e   F i n d H A C K R F . c m a k e   . . .   F I N D _ P A T H ( H A C K R F _ I N C L U D E _ D I R   h a c k r f . h $ { H A C K R F _ D I R } / i n c l u d e / u s r / l o c a l / i n c l u d e / l i b h a c k r f )   F I N D _ L I B R A R Y ( H A C K R F _ L I B R A R Y N A M E S   h a c k r f P A T H S   $ { H A C K R F _ D I R } / l i b s " $ { H A C K R F _ D I R } w i n 3 2 l i b " / u s r / p k g s 6 4 / l i b / u s r / l i b 6 4 / u s r / l i b
/ u s r / l o c a l / l i b N O _ D E F A U L T _ P A T H )   . . . c m a k e   C M a k e L i s t s . t x t     F i n d H A C K R F . c m a k e     s r c / C M a k e L i s t s . t x t H a c k R F 3 H a c k R F A P I C / C + + H a c k R F A P I o p e n L N A V G A A P I ( :   ) / A P I A P I / H a c k R F U S B I & Q b u f f e r L T E   s r c / C e l l S e a r c h . c p p     c o n f i g _ h a c k r f ( )   H a c k R F   A P I A P I h a c k r f . h h a c k r f . c h a c k r f _ i n i t ( ) ;   / /   h a c k r f _ o p e n ( & d e v i c e ) ;   / / c o n t e x t d e v i c e   h a c k r f _ s e t _ s a m p l e _ r a t e _ m a n u a l ( d e v i c e ,   1 . 9 2 e 6 ,   1 ) ;   / / 1 . 9 2 M H z L T E   h a c k r f _ s e t _ b a s e b a n d _ f i l t e r _ b a n d w i d t h ( d e v i c e ,   1 . 4 5 e 6 ) ;   / / 1 . 4 5 M H z / / L T E   P B C H 1 M H z / / / / h a c k r f 2 0 P P M   h a c k r f _ s e t _ v g a _ g a i n ( d e v i c e ,   v g a _ g a i n ) ;   / / V G A 6 2 . h a c k r f . c   h a c k r f _ s e t _ l n a _ g a i n ( d e v i c e ,   l n a _ g a i n ) ;   / / L N A 4 0 h a c k r f . c .   / / v g a l n a / / l n a / / v g a I & Q   / / v g a / / A G C / /  
h a c k r f _ s e t _ f r e q ( d e v i c e ,   f c ) ;   / / f c H z   c a p t u r e _ d a t a ( )     c a p t u r e _ d a t a ( )     s r c / c a p b u f . c p p   h a c k r f _ s t o p _ r x ( h a c k r f _ d e v ) ;   / / 使   h a c k r f _ r x _ c o u n t   =   0 ;   / /   / /   / /   / /   b u f f e r b u f f e r   h a c k r f _ s t a r t _ r x ( h a c k r f _ d e v ,   c a p b u f _ h a c k r f _ c a l l b a c k ,   N U L L ) ;   / /   c a p b u f _ h a c k r f _ c a l l b a c k   w h i l e ( h a c k r f _ i s _ s t r e a m i n g ( h a c k r f _ d e v )   = =   H A C K R F _ T R U E )   {   / / H a c k R F s t r e a m i n g i f (   h a c k r f _ r x _ c o u n t   = =   ( C A P L E N G T H * 2 )   )   / / C A P L E N G T H 退 / / * 2 I Q b r e a k ; } h a c k r f _ i s _ s t r e a m i n g ( h a c k r f _ d e v ) ;   / /   C A P L E N G T H * 2     h a c k r f _ r x _ b u f   I Q 8 b i t H a c k R F C P L D h o s t R F D C   o f f s e t   I Q   i m b a l a n c e   h a c k r f _ r x _ c o u n t   i n t 8   h a c k r f _ r x _ b u f [ C A P L E N G T H * 2 ] ;   c a p b u f _ h a c k r f _ c a l l b a c k ( h a c k r f _ t r a n s f e r *   t r a n s f e r )     s r c / c a p b u f . c p p     t r a n s f e r - > v a l i d _ l e n g t h     t r a n s f e r - > b u f f e r     h a c k r f _ s t a r t _ r x ( )   A P I s t a t i c   i n t   c a p b u f _ h a c k r f _ c a l l b a c k ( h a c k r f _ t r a n s f e r *   t r a n s f e r )   {         s i z e _ t   b y t e s _ t o _ w r i t e ;   / / h a c k r f _ r x _ b u f         s i z e _ t   h a c k r f _ r x _ c o u n t _ n e w   =   h a c k r f _ r x _ c o u n t   +   t r a n s f e r - > v a l i d _ l e n g t h ;                 / /           i n t   c o u n t _ l e f t   =   ( C A P L E N G T H * 2 )   -   h a c k r f _ r x _ c o u n t _ n e w ;           / /           i f   (   c o u n t _ l e f t   < =   0   )   {   / /                 b y t e s _ t o _ w r i t e   =   t r a n s f e r - > v a l i d _ l e n g t h   +   c o u n t _ l e f t ;                   / / h a c k r f _ r x _ b u f         }   e l s e   {   / /                 b y t e s _ t o _ w r i t e   =   t r a n s f e r - > v a l i d _ l e n g t h ;  
                / / h a c k r f _ r x _ b u f         }           i f   ( b y t e s _ t o _ w r i t e ! = 0 )           / / h a c k r f _ r x _ b u f h a c k r f _ r x _ b u f         {                 m e m c p y (   h a c k r f _ r x _ b u f + h a c k r f _ r x _ c o u n t ,   t r a n s f e r - > b u f f e r ,   b y t e s _ t o _ w r i t e   ) ;                   / / b u f f e r h a c k r f _ r x _ b u f                   h a c k r f _ r x _ c o u n t   =   h a c k r f _ r x _ c o u n t   +   b y t e s _ t o _ w r i t e ;                   / /                 / /                 / / C A P L E N G T H * 2                 / / 使 h a c k r f _ r x _ b u f         }           r e t u r n ( 0 ) ;   } 使 C / C + + H a c k R F L T E J a m e s   P e r o u l a s r t l - s d r J a m e s P e r o u l a s I n t e l S D R r a n g e   n e t w o r k O p e n B T S 线 西 H a c k R F L T E L T E h t t p s : / / g i t h u b . c o m / k i t - c e l / g r - l t e h t t p : / / s o u r c e f o r g e . n e t / p r o j e c t s / o p e n l t e / L T E   h t t p s : / / g i t h u b . c o m / J i a o X i a n j u n / L T E - C e l l - S c a n n e r   T O D O H a c k R F [ v i a   H a c k R F ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则