Inconsistency of the sample BluetoothDemo

could someone tell me what are the requirements needed to work with thebluetooth demo?

Start working with this example using the SDK 6 and 6 on my blackberry OS, allconfigurations of the eclipse had to version 6.

Where try to test with another OS6 was not possible because the operating system does not have the bluetooth connection, it begins when will do an exchange of information and therefore it was impossible to test the application in the present case, it did not work and that's why I had to migrate to OS5, I'll put all eclipse to be compatible with version 5 and now is , sample does not run because it throws an error with the class "net.rim.device.api.command.Command" (which is a library of 6) I try to remove the import and says he can't. She also asked me to work in 32-bit and my pc is 64-bit.

I tried to solve these problems, but when I fix one, break 5.

If you want to try the bluetoothdemo with BlackBerry Device Software version 5.0, import the example of the BlackBerry Java SDK 5.0 version.  The version 6.0 example uses new APIs added in version 6.0.

The warning about a 64-bit refers to the JDK from Oracle.  Our tools require the 32-bit JDK.

Tags: BlackBerry Developers

Similar Questions

  • Signature problem when you run the program BluetoothDemo on Blackberry 8320

    Hello

    I try to connect from my computer to the Blackberry 8320 using a serial Bluetooth transceiver.  The "BluetoothDemo" program is not function properly.  When I run it, I first see a white screen with "Bluetooth Sample" at the top.  I click on the trackball and I get a menu with the options 'Listening to connections' and 'Full Meno'.  I click on listen for connections and a screen pops up that says "connect to an external device and then type something...» "I type something on the Blackberry and the letters appear, but no other options appear to verify a Bluetooth connection.  I have already associated the Bluetooth with Blackberry, but the connection failed appears when I run the program BluetoothDemo. When I click the trackball again, I see the full menu with "Serial Port close',"Get DB", etc..

    In my view, that there is a problem with secure API signatures.  Obviously the 'BluetoothDemo' program is not run after the first steps.  When I debug on Blackberry, I see the following output from the console, which leads me to believe that there is a problem with signatures:

    ocusHistory: Focus lost; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Acquired Focus; Home screen App; Component net.rim.device.api.ui.MediaController
    JVM: bklt @286061: timer
    JVM: bklt @286061: idle 15
    JVM: bklt @292270: setTimer 15
    FocusHistory: Lost Focus; Home screen App; Component net.rim.device.api.ui.MediaController
    MWC: BluetoothDemo (4738) No sig 0 x 33
    From BluetoothDemo
    MWC: BluetoothDemo (4738) No sig 0 x 33
    BluetoothDemo (167) started
    BluetoothDemo (167) foreground
    FocusHistory: Acquired Focus; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Lost Focus; Home screen App; Component net.rim.device.apps.internal.ribbon.launcher.RibbonIconField
    FocusHistory: Lost Focus; Bluetooth demo app. NULL component
    FocusHistory: Acquired Focus; Bluetooth demo app. Component net.rim.device.api.ui.menu.DefaultMenuListField
    FocusHistory: Lost Focus; Bluetooth demo app. Component net.rim.device.api.ui.menu.DefaultMenuListField
    BT: allocSerialPort a0d729a8
    BT: sdpAddRecord
    BT: allocSdpAttributeData
    FocusHistory: Lost Focus; Bluetooth demo app. NULL component
    BT: SppWrite-1 failed: 1
    Unable to write data. Exception: java.io.IOException: BtSppWrite failed

    I was puzzled at first running the program of BluetoothDemo and initially built and generated a file alx for the com_rimbluetoothserialportdemo program, which I think is used by the BluetoothDemo program.  The com_rimbluetoothserialportdemo program is currently connected to Bluetooth tx/rx, as indicated by the status of remaining devices firmly on instead of flashing (when BluetoothDemo runs the status light flashes, indicating no connection). When I switch between workspaces in which I have these projects, the set of keys is not signed, and I have to sign in again, which seems to cause the keys in the other workspace to become not signed.  As further evidence of the strange signature problem, sometimes when I run either on the Blackberry there is an error that says that the application is not signed.

    I want to delete the workspace and the file alx com_rimbluetoothetc could be a step in the right direction.  Do I have reason to assume that the 'no sig 0 x 33' is a problem with API signature secure?  Could BluetoothDemo access to com_rimbluetoothserialport and be denied because there no signatures?  Thanks for any help you can provide.

    Not sure that your reading of the code is correct.

    _dout.writeInt (JUST_OPEN);
    _dout. Flush();

    These two statements will write out - which seems to be the first thing the code does.  Then it goes into a loop of reading, but suppose a specifically formatted data.

    In my test, I removed these and replaced with something that I thought he would be working and I'm depending on the device.  As noted yesterday picked up O the data of a GPS puck - these things just send data, they never expect anything in return.  So my code looks like this:

    byte [] buffer = new byte [1024];
    for (;;) {
        int len = _din.read(buffer);
        String justRead = "Read: " + Integer.toString(len) + " bytes: " + new String(buffer, 0, len) + '\n';
        System.out.println(justRead);
    }
    
  • When I try to buy a book, it seems it download but does not work. If I am able to get a sample and try to buy the sample goes far & no new book. There are funds in my account iTunes Help!

    When I try to buy a book, it seems it download but does not work. If I am able to get a sample & try to buy the sample goes far & no new book. There are funds in my account iTunes Help!

    Mine just did the same thing. I've even went and was sold again in case I did something wrong the first time. Still no book! I had to happen a few weeks ago, but when I closed iBooks and reopened, the book was there. This time that didn't happen.  I prefer to read on the iBook, but I'm not if my books download

  • Instruments of the sample of user-specific does not see EXS24

    Logic Pro X 10.2.0 EXS24 sees the Instruments of the sample in my folder/library specific to the user, but only those in the global folder/library.

    But Logic Pro 9.1.8 EXS24 can see both.

    Background:

    I had my mid-2010 27 "iMac running OS X 10.8.5 and Logic Pro 9.1.8 (as well as Logic Studio 7) I upgraded to El Capitan without incident. I bought and installed Logic Pro X on the App Store without incident.

    The menu of Logic Pro X EXS24 instruments shows that the Instruments that are in the global folder:

    Instruments of Macintosh/Library/Application Support/logic/Sampler

    The menu Logic Pro 9 EXS24 instrument shows the Instruments that are in both aggregate AND user-specific folders.

    The menu instrument show the structure of:

    Instruments of Macintosh/Users/me/Library/Application Support/logic/Sampler

    It adds an entry listed as 'Factory' under which it places the Instruments found in:

    Macintosh/Library/Application Support/logic/Sampler instruments.

    If I load a project in Logic Pro 9 that uses some of the Instruments found in the user-specific directory in Logic Pro X, Logic Pro X reports errors that he cannot find the instruments and gives no possibility to 'find' and opens the project with a bunch of sounds of the sinusoid default loaded instead of the missing instruments.

    You can see two directories with the Global Directory on the specific to the user on the right and the left in my attachments.

    I have also attached a picture of the EXS24 Instrument Menu in Logic Pro 9 and Logic Pro X.

    Any guidance would be greatly appreciated.

    Thanks in advance!

    Here is the Menu of EXS24 Instrument under 9.1.8

    Here's the EXS24 Instrument menu under 10.2.0

    Here is a comparison of the Global Sampler Instruments on the left directory and Sampler Instruments menu specific to the user on the right

    (The view is provided by PathFinder rather than Finder which allows the sidebyside view)

    1. it is always useful to search the existing threads here at discussions.apple.com. Try some different keywords, and you can often find other people with similar problems.

    2 check out this thread. I had a similar problem and solved, answered my own question.

    X - Exs24 folder 'instruments' lacks logic

    3 re-indexing loops Apple Loops * should * help to find the folder. Here is some info on this:

    Logic Pro X index no loops.

    4. you can also try simply to drag the folder (in your Finder) and a session logical X. This * should * the entire folder to the index for you.

    5. you can always move the folders in your ~/Library (user) indexing question in your corresponding library/library/library indexing (root) folder.

  • reading of the sampling frequency of the NI9862

    Hi all

    I use a DAQ chassis with modules 9205 (analog input) and 9862 (NOR-XNET CAN).

    I have a program to synchronize the modules for acqustion based on the attached example. My question is how to determine the rate at which data comes the 9862?

    It seems to be double the rate of the 9205 when I set the sampling rate for the 9205 to 500 Hz.

    Is there a property node or a method that I can use to find the rate? I looked in the manual, and it gives no information.

    Thank you

    Griff

    griff32,

    Baud rate XNET CAN occur in your database. You can also check using a property node. In the example, in the XNET Session property node, you can develop, select the Interface > baud rate. You can do a right click on it and change it to read and son in an indicator.

    Alternatively, you can write to this property node to replace the transmission speed in the database. Baud rate must be compatible with the speed of your network. It also has a max of 1 mbit/s. If you want both to acquire the same amount of data, I would recommend changes in the rate of the analog input task or samples to read through.

  • cwdsp. Sine wave is where the sampling rate?

    Hello

    According to the method above (CWDSP. Sine wave), the parameters are the following:

    (n, a, f, Phase)

    n As Variant - [Input] number of samples to generate.
    Amp as Variant - [Input] Amplitude of the signal that results.
    f As Variant - [Input] frequency of the signal resulting in standardized units of cycles/sample.
    The phase as a Variant - initial phase [output] in degrees of the generated signal. Output, the Phase is the phase of the next portion of the signal. Use this setting in the next call to this function to simulate a generator of continuous functions.

    We are not lack of sampling frequency?

    example:

    I want to generate the next sine-

    FREQ = 1 kHz

    sampling frequency = 10 kHz

    (Number of samples) block size = 1024

    Amp = 1

    How will you use this function for this signal?

    I think (but I'm not sure of it...) is: CWDSP. SineWave (1024, 1, 1/10, 0)

    There is an example: "power spectrum".  In this example, they do not mention the sampling frequency and the signal is generated as follows:

    CWDSP. SineWave (1024, 1, 0, 1000/1024)

    No mention of the sampling frequency.

    Thank you

    Hey Rafi,

    Both of your assertions are correct.  The frequency of de.1Hz at no time is the equivalent of what you would get from sampling equipment of a wave of 10 kHz to 1000 s/s; in both cases, you will see a cycle of the wave every 10 samples, as you are pointing out.

  • display the values of the sample on a graph

    Hallo!

    I have a problem with a graph, the thing is that I really showed values of Y of the samples on a chart. There is a possibility to make a comment (as in attached photo) but I need the waltz instead. Any ideas? Thanks for the trouble,

    Greetings!

    Dear Aleph.ka,

    Here is an example of what you might need. For more documentation, please refer to the description of the node property applied (Annotation list):

    http://zone.NI.com/reference/en-XX/help/371361H-01/lvprop/waveformgraph_annot_list/

    I hope this helps.

    Kind regards

  • DMM (NI 4070), how to correctly set AC Freq (bandwidth) by the sampling rate

    using a NI4070 multimeter and I see the max connection is 300 kHz by respect it.  But I don't understand how to set the min and max, acFrequency according to the sampling frequency or speed reading.

    6 1/2 digits resolution, the speed can vary from 0.25 s/s to 100 s/s and this range corresponds to a lower end on the connection (minimum acFreq) from 1 Hz to 400 Hz.

    (Q1a) - is the playback speed, controlled by the minimum setting of IviDmm_ConfigureACBandwidth?   or vice versa?

    Otherwise, I do not see how to control the rate of reading or the sampling frequency.   IviDmm_ConfigureMeasurement only allows you to control the range and resolution.

    (Q1b) - is there a way to directly control the sample rate (digitizer) or playback speed (dmm)?

    (T2) - the upper limit of the bandwidth of AC always seems to be at 300 kHz... is there still a reason to reduce this maximum value?

    (T3) - Finally, unlike the traditional niDmm function, the resolution via the IVI configuration should be passed as absolute value; does directly when number of digits and the beach?   For example if I want to 6 1/2 digit to 300V range, I guess that by the specifications that the resolution should be set at 0.001 V... followign, if I want 5 1/2 digits to 1V range, the resolution should be set to 0.00001 V?

    Hi Rjohnson,

    I'll try to answer your questions as best as I can:

    Q1A.  The ConfigurACBandwidth function is used by the driver OR DMM to calculate the good aperautre for the measure.  So yes, by adjusting your minimum frequency, you will affect your reading speed.

    Q1B.  Your reading rate will depend largely on your measuring cycle.  To get a fast measuring cycle, there are a few things that you can adjust.  You can programmatically control your time aperature, as well as your time to settle.

    Q2. I can't find a reason to change. This parameter is only used for error-checking and verifies that the value of
    This setting is less than the maximum frequency of the device.

    Q2B.  I think what you say is right, but I'll need to check on that - I'll let know you as soon as.

    Hope that helps.  "" "I would recommend checking the explanation of the Cycle of the DMM measurement in DMM help' devices ' NI 4070" DMM Measuments "DMM measurement Cycle.

    Take care!!

  • Change the sample DAQmx and Terminal configuration mode

    Hello

    I'm studying 'Timing and synchronization features of NOR-DAQmx' from the following link,.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4322

    Could someone tell me how to Figure 2, Terminal configuration entry in the part "DAQmx virtual channel creat? Shoud I double-click on the icon to change it? Or there is some way that I can show it in the block as the sample mode diagram in the DAQmx part?

    How can another question, in the DAQmx calendar part, I put "Continous Samples" here? It comes from the function palette? Thank you.

    Hi Oly,
    To make the configuration of senior year to enter the channel 'DAQmx create' you will need to create a constant or control over this VI either.  When you hover over a VI, as the VI "DAQmx Create Channel", you will notice that the dots appear around the edge of the square.  "" When you roll your mouse over these points, you mouse pointer will appear a coil of cable/wire how you can right click your mouse and select 'Create' constant ' or 'create' control '.  If you create a control, you have a user control in your front, where as if you create a constant, you will have a drop-down list in your block diagram.
     
    It goes the same for continuous samples, simply hover over the VI, right-click on the corresponding 'point' and select this option to create a constant.
     
    In case my instructions are unclear, that I have attached pictures of how to go about doing this, the first is to show 'points' I speak around the VI and the second picture shows the possibility to choose after you right-click on the point.
     
    Good programming!
    aNIta B
    Technical sales engineer
    National Instruments

  • Digital filter on the sample clock 6601/6250

    Hello

    I use a PCI-6601 (Dev1) and the card PCI-6250 (Dev2) connected via a cable RTSI.

    I apply a PWM signal to the 6601 ctr0 (Dev1 / / PFI38) and activate the digital filtering (100 ns) on the respective task (measure of the period).

    I apply an analogue signal to AI0 map of 6250. As I am interested in a sample of analog measurement when the PWM signal changes from low to high, I put the clock sample of the AI task source ' Dev1 / / PFI38 "and the side assets of clock sample"Insurrection. "

    Everything works fine, but I have a question:

    The sample for the AI clock is the task the filtered PWM signal or not filtered PWM signal?

    Kind regards

    Udo

    Hi Udo,

    Great question!  Digital filters are actually not part of the subsystem of counter, but rather the line itself PFI.  So, if you have activated the digital filter for a specific line of the PFI, the signal that you route to any subsystem of the PFI line will have already crossed the filter.

    It's actually the workaround to the PFI filters on M-series / TIO DAQ devices when you are not using meter (materials of filtering on each PFI line but the DAQmx driver allows only the filtering part of duties of counter on these devices).

    I also wanted to emphasize that the 6250 itself has 2 onboard counters, then you could do the same thing using just the 6250 (unless you use more than 2 meters).  I hope this helps!

    Best regards

    John

  • Buffer the output AO, refresh rate is different from the sample clock frequency

    Hello

    I am an AO output in the buffer using a single channel. I have a stamp with a ripple of 200000 points with a triangular waves of a 1000pts each repeated 200 times. If I want a frequency of 1 Hz, I simply update this waveform 1000pts and if I wanted to 5 Hz, then 5000pts and so on. But there is some frequency that I won't be able to use like the refresh rate (the number of samples that I ask to update) is different from the sample clock frequency, which makes synchronization with the other difficult to trigger (incomplete cycle).  Frequency 3 Hz (update 3000pts), as (update 7000pts) 7, 6 Hz (update 6000pts), 9 (update 9000pts)... 11Hz at 15 Hz and is not valid in the sense that the refresh rate is different from the sample clock frequency. That makes a whole lot of inaccessible CONFIGURED!  Can someone tell me what determines the banned frequency?  Is this something to do with the material?

    concerning

    One thing you can try is to change the number of samples per cycle. This cannot give the precise frequency accurately, but can reduce the average error.

    120 Hz, the error is currently about 400 parts per million (ppm). The accuracy of the time base is 50 ppm, then this error is less than 10 times the inherent error due to the time base.

    Consider this configuration: the closest nominal sampling you rate, you can get is 120048 Hz (1000 samples per cycle at 120 Hz). If your buffer contains 1200 samples per cycle, 100 copies of it would produce 1 second of data to 120,048 Hz. But if the buffer contained an average of 1200,48 useful Samper by cycle, you get the exact frequency.  Of course getting 0.48 of a sample is delicate. But the kind of feasible. If you use 48 cycles in the 1201 samples per cycle and the cycles of 52 to 1,200 samples per cycle, the total number of samples per second = 120048. Average frequency will be exactly what you want. Instantly, the frequency is slightly higher or lower than the exact value.  By an alternation of 1200, 1201, 1200, 1201... 1201, 1200 100 cycles that the Jig is fast.  If you group all 1200s whole and all 1201 s frequency hopping may be more sensitive.  If this kind of jitter is acceptable depends strongly on what you do with the release.

    This technique is used in some systems of frequency synthesizer.

    Lynn

  • How to specify the sampling frequency? Must use "measurement & Automation Explorer '?

    I use to measure the input current analog OR cDAQ-9171 (chassis only location USB) and NOR-9207. I have 2010 NOR-installed DAQmx and LabVIEW.

    How can I specify the sampling frequency?

    If I use M & A Explorer to create the task, I can specify the flow rate (Hz) on the Configuration tab-> sync settings.

    For the acquisition of data NOR, it is mandatory to use M & A exploring?

    If I don't want to use M & A Explorer, how can I specify the rate (Hz)?

    Hello

    You can specify the sampling frequency with "DAQmx Timing.vi" located in the function palette DAQmx (read context-sensitive help on how to use wisely).

    You do not have to use M & A exploring (MAX) to create a task.

    A simple and quick way is to use DAQ Assistant (same configuration as in MAX) to configure your measurement.

    Another is to use blocks of DAQmx function to manually build your application code.

    In my experience Assistant DAQ is ideal for simple tasks (one measure), with regard to the more complex measures (synchronized the analog and digital inputs).

    I tend to use function blocks because they give you more freedom about code execution.

    Note: You can also build DAQmx code from a wizard configured DAQ task.

    Best regards

    Matej

  • Specify the samples only to change?

    No doubt a variation of this has been requested before, so my apologies, but I'm unable to find anything.

    I use a PCIe-6537 and try to generate a long sequence (say 2 seconds) using C. Is it possible to only specify some samples? Or do I need to specify the value each time the sample?

    For example, suppose I want 32 track 1 followed by HIGH microsecond of a second BASS, repeated twice. I wish I could say:

    Example 0: 2 ^ 32-1

    Example 1:0

    Sample of 1000000:2 ^ 32-1

    Sample 1000001:0

    However it seems I have to specify the actual value at each point in time. Of course, it takes much more time and memory to write but I do not see otherwise. Is there a way?

    I hope that the question is clear. Thank you.

    I can't find a place to change the theme or mark it as solved

    My real scenario was a bit more complicated, but I found away around him. Each writing sample explicitly should no longer be a problem.

    I hope that is correct on the occasion of my own post as a 'solution '.

  • Configuration of input DAQmx terminal and choice of the sample mode

    Hello

    I'm studying 'Timing and synchronization features of NOR-DAQmx' from the following link,.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4322

    Pourrait
    someone tell me how to Figure 2, input terminal in configuration
    the part "DAQmx virtual channel creat? Shoud I double-click
    the icon to change it? Or there is a way I can show in the
    Block diagram as the sample in the DAQmx part mode?

    One
    more question, in the DAQmx calendar part, how can I put continues «»
    "" "Samples" here? It comes from the function palette? Thank you.

    No, you do not double click on the icon to change it. To answer these two questions, just right click on the device and select ' Create > constant "."

    It comes to LabVIEW basics. I would recommend that you study only here before you start experimenting with DAQmx.

  • Loss of information on the edges of the sample of low-pass filter

    Hello

    I use a low-pass filter elliptical command to address 6 to remove trend of signal in a measure of the pressure of data sampled before, however given that the program must deal with and calculate an index in a given period of time, I can't filter and store then the data for the calculation later.

    The size of the sampe is this 1250 or 10secs data with sampling frequency value is 125 samples/s.

    In the effort to eliminate the distortion of the filtered signal, I use a technique described for tag/add a start and a value final ampitude on the beginning and end of the sample of the same length (1250), I have also run the data in the order opposite to eliminate phase effects.

    However I want to say is still a slight distortion that can be seen in the start menu of the sample; first of all, here with the loss of amplitude, but more often it's worse than that and distortion occurs at the end of time to time.

    I have some experience of the DSP (but since 20 years ago!) and remembers Windowing may be a way, but I still think that the filter should not be so difficult to implement more I don't want to lose any information amplitude.

    Any help would be appreciated.

    See you soon,.

    Kevyn

    johnsold wrote:

    ..., you may need to use different techniqoes that are not in the information stored on the previous behavior of the signal.

    Lynn

    In some cases special where information that happened before all data you have is implicit, but data yo u have, you can go out with reflecting data about initial/final data set and then run the data through the filter first forward, then backward. After that mix data accompanying your data "pretend" and just look at the part that iss associated with the actuall data set.

    Ben

Maybe you are looking for

  • 23 Firefox blocks Java applets

    Java applet signed my company works well sites online. The applet is also designed to be used from CD and other local file systems. However it now works not at all when running locally, for example, a URL like this: file:///D|/fiscd/search2.htm The a

  • Satellite A200-PSAE6E: what changed in the Bios 2.40 Vista 32bits

    Can someone tell me the release notes for the new Satellite A200 PSAE6E BIOS 2.40?In fact, the Toshiba never release notes on their BIOS updates.

  • Merge documents Word w / Applescript

    I write a MS Word document with contributions from several authors and publishers. I'm new Applescript, but I invested a few days now trying to figure out how to create an application that should merge several word documents. I use Microsoft Word for

  • Bare bones W500 and W700

    Does anyone know if it is possible to order a version of the bone exposed to one of these workstations? One that does not include an operating system, the hard drive or RAM?

  • Cannot receive/send on Windows Vista Mail

    Cannot receive/send on Windows Vista Mail... I get a message that says... Some errors occurred during the processing of this task... see below for a list of errors... There are no errors listed below for me to check... How can I solve this?... Can I