Author Topic: RX Timestamp jumped  (Read 9865 times)

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
RX Timestamp jumped
« on: January 03, 2017, 07:09:48 PM »
I get the RX Timestamp jumped error spammed when I do yate -s and phones of course can not see it.
Any idea what is going on? Ubuntu 12 LTS and BladeRF with latest BladeRF-cli software

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: RX Timestamp jumped
« Reply #1 on: January 04, 2017, 02:24:22 AM »
Can you please post a log?

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #2 on: January 04, 2017, 07:20:44 AM »
Code: [Select]
2017-01-04_15:22:46.424678 <bladerf/1:WARN> RX: timestamp jumped by 2702 to 155052500 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.428912 <bladerf/1:WARN> RX: timestamp jumped by 12042 to 155057218 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.443224 <bladerf/1:WARN> RX: timestamp jumped by 4845 to 155071276 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.446080 <bladerf/1:WARN> RX: timestamp jumped by 17790 to 155078137 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.451444 <bladerf/1:WARN> RX: timestamp jumped by 6905 to 155097943 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.461701 <bladerf/1:WARN> RX: timestamp jumped by 14758 to 155106864 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.468428 <bladerf/1:WARN> RX: timestamp jumped by 20303 to 155123638 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.472279 <bladerf/1:WARN> RX: timestamp jumped by 16475 to 155145957 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.478211 <bladerf/1:WARN> RX: timestamp jumped by 2557 to 155164448 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.490098 <bladerf/1:WARN> RX: timestamp jumped by 13831 to 155169021 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.501777 <bladerf/1:WARN> RX: timestamp jumped by 23004 to 155184868 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.512702 <bladerf/1:WARN> RX: timestamp jumped by 9351 to 155209888 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.555583 <bladerf/1:WARN> RX: timestamp jumped by 2749 to 155221255 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.572434 <bladerf/1:WARN> RX: timestamp jumped by 10051 to 155226020 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.574209 <bladerf/1:WARN> RX: timestamp jumped by 27151 to 155238087 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.578644 <bladerf/1:WARN> RX: timestamp jumped by 21715 to 155267254 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.582710 <bladerf/1:WARN> RX: timestamp jumped by 20725 to 155290985 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.586781 <bladerf/1:WARN> RX: timestamp jumped by 89777 to 155313726 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.592629 <bladerf/1:WARN> RX: timestamp jumped by 35205 to 155405519 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.596671 <bladerf/1:WARN> RX: timestamp jumped by 2253 to 155442740 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.601609 <bladerf/1:WARN> RX: timestamp jumped by 6736 to 155447009 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.602717 <bladerf/1:WARN> RX: timestamp jumped by 11118 to 155455761 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.609778 <bladerf/1:WARN> RX: timestamp jumped by 2905 to 155468895 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.615263 <bladerf/1:WARN> RX: timestamp jumped by 16764 to 155473816 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.617796 <bladerf/1:WARN> RX: timestamp jumped by 2472 to 155492596 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.620374 <bladerf/1:WARN> RX: timestamp jumped by 6406 to 155497084 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.629946 <bladerf/1:WARN> RX: timestamp jumped by 1569 to 155505506 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.631978 <bladerf/1:WARN> RX: timestamp jumped by 12899 to 155509091 in buffer 6/8 [0x7f92dc000eb0]
^C2017-01-04_15:22:46.636136 <bladerf/1:WARN> RX: timestamp jumped by 3399 to 155535927 in buffer 6/8 [0x7f92dc000eb0]
2017-01-04_15:22:46.642220 <bladerf/1:WARN> RX: timestamp jumped by 12465 to 155541342 in buffer 6/8 [0x7f92dc000eb0]

Pretty much just that, BladeRF x40 on USB 2.0 powered by USB
I followed instructions on https://blog.strcpy.info/2016/04/21/building-a-portable-gsm-bts-using-bladerf-raspberry-and-yatebts-the-definitive-guide/comment-page-1/#comment-140
but using Ubuntu 14

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: RX Timestamp jumped
« Reply #3 on: January 04, 2017, 07:34:46 AM »
Can you post a log from ybts start (device init)?


Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #4 on: January 04, 2017, 08:50:18 AM »
Can you post a log from ybts start (device init)?
Code: [Select]
mbts/TransceiverRAD1# yate -s
Supervisor (21594) is starting
Yate (21595) is starting Wed Jan  4 17:00:09 2017
Loaded module CdrBuild
Loaded module Call Forker
Loaded module Analyzer
Loaded module Javascript
Loaded module iSAC floating point - based on WebRTC iSAC library version 4.3.0 (SPL version 1.2.0)
Loaded module ToneDetector
Loaded module ToneGen
Loaded module iLBC - based on WebRTC iLBC library version 1.1.1
Loaded module PBX
Loaded module RManager
Loaded module YRTP
Loaded module YSOCKS
Loaded module CdrCombine
Loaded module GVoice
Loaded module ExtModule
Loaded module iLBC - based on iLBC reference library
Loaded module MsgSniffer
Loaded module DumbChannel
Loaded module File Transfer
Loaded module Call Generator
Loaded module Conference
Loaded module YIAX
Loaded module RegexRoute
Loaded module MUX
Loaded module WaveFile
Loaded module YSTUN
Loaded module MOH
Loaded module CdrFile
Loaded module FileInfo
Loaded module YJingle
Loaded module SIP Channel
Loaded module GSM - based on libgsm-1.0.10
Loaded module Late Router
Loaded module Monitoring
Loaded module Analog Channel
Loaded module Accounts from file
Loaded module MGCP-GW
Loaded module Clustering
Loaded module Radius client
Loaded module SNMP Agent
Loaded module GSM Transceiver
Loaded module Cache
Loaded module Presence
Loaded module SIP Features
Loaded module CCongestion
Loaded module YBTS
Loaded module Cpu
Loaded module Subscriptions
Loaded module PBX for database
Loaded module MGCP-CA
Loaded module Signalling Channel
Loaded module Users Management
Loaded module Event Logs
Loaded module Queues Notify
Loaded module Heartbeat
Loaded module SigTransport
Loaded module Call Parking
Loaded module CallCounters
Loaded module Register for database
Loaded module DbWave
Loaded module Queues
Loaded module Cisco SM
Loaded module Registration from file
Loaded module MRCP
Loaded module Analog Detector
Loaded module Jabber Server Features
Loaded module Jabber Server
Loaded module DummyRadio
Loaded module BladeRF using libusb 1.0.17.10830 desc='http://libusbx.org'
Initializing plugins
Initializing module BladeRF
Initializing module DummyRadio
Initializing module Jabber Server
Initializing module Jabber Server Features
Initializing module Analog Detector
Initializing module Cisco SM
Initializing module DbWave
Initializing module SigTransport
Initializing module Event Logs
Initializing module MGCP Call Agent
Initializing module Subscriptions
Initializing module Cpu
Initializing module Clustering
Initializing module CdrFile
Initializing module MUX
Initializing module YSOCKS
Initializing module Javascript
Initializing module CdrBuild
Initializing module Call Forker
Initializing module Analyzer
Initializing module iSAC
Initializing module ToneDetector
Initializing module ToneGen
Initializing module iLBC webrtc
Initializing module PBX
Initializing module RManager
Initializing module YRTP
Initializing module CdrCombine
Initializing module GVoice
Initializing module ExtModule
Initializing module MsgSniffer
Initializing module DumbChannel
DumbChannel initialized
Initializing module File Transfer
Initializing module Call Generator
Initializing module Conference
Initializing module YIAX
2017-01-04_17:00:09.789125 <iaxengine:WARN> Failed to bind socket on ':4569' - trying a random port. 98: 'Address already in use' [0x115ca10]
Initializing module RegexRoute
Initializing module WaveFile
Initializing module YSTUN
Initializing module MOH
Initializing module FileInfo
Initializing module YJingle
Initializing module SIP Channel
Initializing module Late Router
2017-01-04_17:00:09.810702 <sip:WARN> Listener(UDP,'general') unable to bind on :5060 - trying a random port. 98 'Address already in use'
Initializing module Monitoring
Initializing module Analog Channel
Initializing module Accounts from file
Initializing module MGCP Gateway
Initializing module Radius client
Initializing module SNMP Agent
Initializing module GSM Transceiver
Initializing module Cache
Initializing module Presence
Initializing module SIP Features
Initializing module CCongestion
Initializing module YBTS
Initializing module PBX for database
Initializing module Signalling Channel
Initializing module Users Management
Initializing module Queues Notify
Initializing module Call Parking
Initializing module Register for database
Initializing module Queues for database
Initializing module Register from file
Initializing module MrcpSpeech
Initialization complete
2017-01-04_17:00:09.987874 <nib:CONF> Please configure country code. See subscribers.conf or use the NIB web interface
Yate engine is initialized and starting up on openbts-VirtualBox
MBTS connected to YBTS
Yate-BTS MBTS Component
Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
Copyright 2010 Kestrel Signal Processing, Inc.
Copyright 2011, 2012, 2013 Range Networks, Inc.
Copyright 2013, 2014 Null Team Impex SRL
Copyright 2014 Legba, Inc.
"OpenBTS" is a registered trademark of Range Networks, Inc.

Contributors:
  SC Null Team Impex SRL:
    Paul Chitescu
  Legba, Inc.
    David Burgess
  Range Networks, Inc.:
    David Burgess, Harvind Samra, Donald Kirker, Doug Brown,
    Pat Thompson, Kurtis Heimerl
  Kestrel Signal Processing, Inc.:
    David Burgess, Harvind Samra, Raffi Sevlian, Roshan Baliga
  GNU Radio:
    Johnathan Corgan
  Others:
    Anne Kwong, Jacob Appelbaum, Joshua Lackey, Alon Levy
    Alexander Chemeris, Alberto Escudero-Pascual
Incorporated L/GPL libraries and components:
  libusb, LGPL 2.1, various copyright holders, www.libusb.org
Incorporated BSD/MIT-style libraries and components:
  A5/1 Pedagogical Implementation, Simplified BSD License,
    Copyright 1998-1999 Marc Briceno, Ian Goldberg, and David Wagner
Incorporated public domain libraries and components:
  sqlite3, released to public domain 15 Sept 2001, www.sqlite.org


This program comes with ABSOLUTELY NO WARRANTY.

Use of this software may be subject to other legal restrictions,
including patent licensing and radio spectrum licensing.
All users of this software are expected to comply with applicable
regulations and laws.  See the LEGAL file in the source code for
more information.

Release 5.0.1 formal build date Jan  4 2017 rev
Starting MBTS...
MBTS ready
2017-01-04_17:00:18.016270 <bladerf/1:WARN> RX: timestamp jumped by 1235 to 10835522 in buffer 6/8 [0x7fefb0000eb0]
2017-01-04_17:00:18.018166 <bladerf/1:WARN> RX: timestamp jumped by 17540 to 10838773 in buffer 6/8 [0x7fefb0000eb0]
2017-01-04_17:00:18.021987 <bladerf/1:WARN> RX: timestamp jumped by 1168 to 10858329 in buffer 6/8 [0x7fefb0000eb0]
2017-01-04_17:00:18.026745 <bladerf/1:WARN> RX: timestamp jumped by 1238 to 10861513 in buffer 6/8 [0x7fefb0000eb0]

Here is my bladeRF version command:
Code: [Select]
bladeRF> bladeRF> ^Croot@openbts-VirtualBox:/home/openbts# bladeRF-cli -i
bladeRF> version

  bladeRF-cli version:        1.4.0-git-unknown
  libbladeRF version:         1.7.2-git-unknown

  Firmware version:           1.9.1
  FPGA version:               0.1.2

bladeRF>

Is the bladeRF not supported on USB 2.0, does it need USB3 maybe?
« Last Edit: January 04, 2017, 08:53:49 AM by Tom »

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: RX Timestamp jumped
« Reply #5 on: January 04, 2017, 09:09:27 AM »
Please increase the debug level:
yate -s -vvvvv

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #6 on: January 04, 2017, 09:45:57 AM »
Please increase the debug level:
yate -s -vvvvv
Is this good enough?
http://pastebin.com/YNar2Usu

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: RX Timestamp jumped
« Reply #7 on: January 04, 2017, 09:49:18 AM »
If you are testing it in a virtual machine, please try it first on a 'real' machine.

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #8 on: January 04, 2017, 09:50:39 AM »
I don't have a real machine with ubuntu

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: RX Timestamp jumped
« Reply #9 on: January 04, 2017, 09:52:26 AM »
I don't think you'll have a 'working' scenario if you are running such a time critical application in a virtual machine.
I'm not sure I can help you with it.

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #10 on: January 04, 2017, 10:30:32 AM »
Is my setup otherwise correct?  Can I somehow write my virtual hard disk to a real hard drive so I don't have to do it all over again?
Exactly how time-sensitive is YateBTS? Like milliseconds, microseconds?
« Last Edit: January 04, 2017, 11:48:10 AM by Tom »

Tom

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: RX Timestamp jumped
« Reply #11 on: January 04, 2017, 04:37:53 PM »
Turns out YateBTS is incompatible with VMs.  For future users reading this don't bother trying.

I managed to get it working finally! (with GPRS too!)
http://i.imgur.com/lxzWhUv.png

However GPRS only works on local webpages on my local network, it does not load anything from the internet?
Why could that be?

EDIT: It seems to have fixed itself about a half an hour after I fixed iptables NAT MASQUERADE on the command line.  Maybe the MSes only update their GPRS settings once in forever lol
« Last Edit: January 04, 2017, 04:41:37 PM by Tom »