Discussion forum for the BasicX family of microcontroller chips.
Bx-24 to eb505 - charcoal_timc - Mar 6 14:20:27 2007
Hello,
I'm working on a project to connect the BasicX-24 to an eb505
Bluetooth transceiver from A7 Engineering. I am trying to issue
a "connect to the MAC address of another Bluetooth device" command to
the eb505 from the bx-24 and have been unsuccessful. I've tried
sending strings and individual ASCII characters followed by a
carriage return with no success.
The device I am trying to connect to is an eb500 connected via a
serial cable to a PC running Hyper Terminal. If I issue the command
to connect the 500 to the 505, a connection is established; however,
issuing the same command (with the other devices MAC address) from
the bx-24 to the 505, a connection is not established.
I've verified that the bx-24 is outputting the correct command by
connecting the output to Hyper Terminal and reading the result. Has
anyone had a similar experience with this? What could I being doing
wrong? I've attached my code incase the error is in it. I'd
appreciate any help that can be offered.
Dim Com1In(1 to 40) As Byte
Dim Com1Out(1 to 40) As Byte
Sub Main()
'OpenQueue(Queue, Size)
Call OpenQueue(Com1In, 40)
Call OpenQueue(Com1Out, 40)
'OpenCom(PortNumber, BaudRate, InputQueue, OutputQueue)
Call OpenCom(1, 9600, Com1In, Com1Out)
Call ConnectCommand
End Sub
Sub ConnectCommand()
'Wait 2 sec for eb505 to initialize
Call Sleep(2000)
'Send CON 00:0C:84:00:1A:B9 to the output queue
Call PutQueueStr(Com1Out,Chr(67) & Chr(79) & Chr(78) & Chr(32) &
Chr(48) & Chr(48) & Chr(58) & Chr(48) _
& Chr(67) & Chr(58) & Chr(56) & Chr(52) & Chr(58) & Chr(48) & Chr(48)
& Chr(58) & Chr(49) & Chr(65) _
& Chr(58) & Chr(66) & Chr(57) & Chr(13))
Call Sleep(500)
End Sub

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )
Re: Bx-24 to eb505 - Tom Becker - Mar 6 14:50:21 2007
> ... issuing the same command [] from the bx-24 to the 505, a connection is not
established.
Try reversing RX and TX when connecting the BX-24 to the radio.
Tom

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )
Re: Bx-24 to eb505 - charcoal_timc - Mar 7 12:39:04 2007
I tried our suggestion, however I was pretty sure I hooked them up
properly before, and the result did not change. I'm going to connect a
new 505 chip and see if that is the problem.
--- In b...@yahoogroups.com, Tom Becker
wrote:
>
> > ... issuing the same command [] from the bx-24 to the 505, a
connection is not established.
>
> Try reversing RX and TX when connecting the BX-24 to the radio.
> Tom
>

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )RAM limitation - Fabrizio Sellone - Mar 7 14:02:42 2007
Hi everyone. I am currently developing a distributed wireless acquisition
system based upon a Basicx BX-24P. Each acquistion point has essentially one
BX-24P, one AD7710 24 bit A/D converter and one MaxStream XBee radiomodem
module. There are several acquistion points, each of which sends its sampled
data to a laptop computer for data logging and real-time visualization.
Unfortunately, it seems to me that the available amount of RAM for the
BX-24P is quite small for such an application, which is strange because if
this processor can run a quite sophisticated robot I do not understand why
it cannot handle a relatively simple acquisition node. Each BX-24P runs the
main program, a task to handle interrupts and a task to blink a led with
different modes to show the user what state the acquisition point is
currently in (initialization, calibration, acquisition, transmission, ecc
...). The whole program is about 8000 lines of code. Have you ever
experienced RAM limitation problems in your applications ? How did you solve
the riddle ? How can I compute the exact amout of RAM memory used by my
application in order to check if the problem is really related to RAM
limitation ?
Thanks,
Fabrizio
_________________________________________________________________
Ogni ricerca da questo sito, una donazione per i bambini rifugiati
http://click4thecause.live.com/Search/Charity/Default.aspx?locale=it-it

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )