tag:blogger.com,1999:blog-3407720807708937392.post4774763449736355450..comments2022-04-10T13:11:44.616-07:00Comments on Linux, IT, DIY, Interesting Stuff...: OpenSource Sensor Node firmware for BlueCore-based Bluetooth Modulespfalconhttp://www.blogger.com/profile/03541492744894534972noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-3407720807708937392.post-50193987074210376292017-10-26T08:43:06.742-07:002017-10-26T08:43:06.742-07:00It is enough just to change the corresponding key ...It is enough just to change the corresponding key through PSTools marked as UART.Anonymoushttps://www.blogger.com/profile/07543713961831918273noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-62316557332006361652016-01-05T04:11:19.954-08:002016-01-05T04:11:19.954-08:00Davideddu, What you need is a Module with a suppor...Davideddu, What you need is a Module with a supporting bluetooth stack able to serve a HID (Human interface device) bluetooth profile. Hardware-wise, the HC-05 Is completly capable of running such service. But unfortunotly, softare cirtually all of these devices only produce SPP (Serial port profile).<br />You might be able to 'hack it around' using BlueLab41(CSR BlueLab 4.1) environment and achieve what you're looking to do with processes similar to described here (Hebrew :/) ( http://www.makers.co.il/mfs/showthread.php?t=91 ) Utilizing Frans-williams SPI drivers (https://github.com/Frans-Willem/CsrSpiDrivers) to flash the chip once developed under BlueLab or some other derivative.Hillel Chimowiczhttps://www.blogger.com/profile/07796369831120202303noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-83802950185964231772016-01-05T03:18:06.438-08:002016-01-05T03:18:06.438-08:00Hi pfalcon,
I came to this article looking for an ...Hi pfalcon,<br />I came to this article looking for an open source firmware for HC-05 bluetooth module. I'm not sure whether it works for that chip, however I was wondering if it could be used to make it behave like a bluetooth keyboard. I have an old laptop keyboard and some microcontrollers, I wanted to make the microcontroller receive input from the keyboard and send it to a computer over Bluetooth.<br /><br />Do you think this is possible? I haven't looked at the code yet.Davide Depauhttps://www.blogger.com/profile/11655111609957640288noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-24213269252136290142015-07-19T04:06:54.175-07:002015-07-19T04:06:54.175-07:00If you read previous comments, you know about impo...If you read previous comments, you know about importance of having open-source compiler for XAP. Feel free to help with that.<br />pfalconhttps://www.blogger.com/profile/03541492744894534972noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-86309958205121796772015-07-18T21:11:45.730-07:002015-07-18T21:11:45.730-07:00Keep this alive! Lets make wiki! Let me know how I...Keep this alive! Lets make wiki! Let me know how I can help...gu222https://www.blogger.com/profile/15988575470913664950noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-71227905480905087532014-09-29T16:41:43.127-07:002014-09-29T16:41:43.127-07:00Thanks Paul
This is a really interesting project....Thanks Paul<br /><br />This is a really interesting project.<br /><br />I built the parallel port programmer some time ago, but have not tested flashing your code onto my module yet.<br /><br />Keep up the good work ;-)<br /><br />Cheers<br /><br />Roger Clark<br />www.rogerclark.netSeventh Synergyhttps://www.blogger.com/profile/14763141049482690902noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-30772176104532041772014-07-04T12:53:42.275-07:002014-07-04T12:53:42.275-07:00> I was hoping someone could tell me if the fir...> I was hoping someone could tell me if the first few words of the dump above looks correct.<br /><br />I looked thru the dumps I have, and nope, your bytes don't resemble beginning of anything I have.<br /><br />I hope you also understand that xpv and xdv is pretty high-level stuff and don't represent entire flash physical structure.<br /><br />I have entire flash dump, and FYI, first 512 bytes are 0xff. Anyway, these comments are not good way to do research/communication, so if you're seriously into wasting your time on that, I suggest setting up wiki and/or maillist.<br />pfalconhttps://www.blogger.com/profile/03541492744894534972noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-5423968706956918772014-07-04T10:49:26.080-07:002014-07-04T10:49:26.080-07:00Okay, thanks much for the offer. At this point I&...Okay, thanks much for the offer. At this point I'd just like to be able to read the contents of the flash.<br /><br />Does anyone know what the memory map of the flash looks like? There are two files, the xpv (program space) and xdv (data space) that make up the flash. Is the data space stored at offset 0 of the flash and the program space at offset 64Kwords? Thanks.Anonymoushttps://www.blogger.com/profile/10485682394871681532noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-18202575097000590682014-07-02T12:14:40.246-07:002014-07-02T12:14:40.246-07:00If you post some code I will compile and run it. ...If you post some code I will compile and run it. then send you the complete binaries .Nickedhttps://www.blogger.com/profile/10967679818666066821noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-51353645173482653182014-07-02T12:10:03.533-07:002014-07-02T12:10:03.533-07:00Rather than go through all the effort I was hoping...Rather than go through all the effort I was hoping someone could tell me if the first few words of the dump above looks correct. Here is the dump of just the flash contents. Thanks for any help.<br /><br /> Rick<br /><br />root@raspberrypi:/home/pi/scripts# hexdump dump7.bin | head <br />0000000 0000 1018 ff0f 00f0 0000 0000 0000 0000 <br />0000010 0000 0200 0000 0000 5000 b71c 3649 0000 <br />0000020 0200 2400 2400 2400 2400 2400 0000 0200 <br />0000030 c0aa 1420 1004 1911 6a1e 0000 0600 9e00 <br />Anonymoushttps://www.blogger.com/profile/10485682394871681532noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-62619405882495934042014-07-01T17:05:33.516-07:002014-07-01T17:05:33.516-07:00Hi rick, awesome project! GL!,
I Think you'd b...Hi rick, awesome project! GL!,<br />I Think you'd better compare your dump results with the result using an arduino+CSR BlueCore flashing tools + Frans-william dll replacment for the LPT...<br />https://github.com/Frans-Willem/CsrSpiDriversHillel Chimowiczhttps://www.blogger.com/profile/07796369831120202303noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-79444379837910156242014-07-01T13:10:20.764-07:002014-07-01T13:10:20.764-07:00Hi,
I got a Raspberry PI / HC05 hook up working
a...Hi,<br /><br />I got a Raspberry PI / HC05 hook up working<br />and seem to be able to read the flash. I started a very crude page on<br />this:<br /><br />http://members.efn.org/~rick/work/rpi.csr.html<br /><br />The only thing is, I have no<br />clue if what I'm reading is correct. Here is the first chunk<br /><br />root@raspberrypi:/home/pi/scripts# hexdump dump.bin <br />0000000 0000 0300 0000 1800 0f10 f0ff 0000 0000 <br />0000010 0000 0000 0000 0000 0002 0000 0000 1c50 <br />0000020 49b7 0036 0000 0002 0024 0024 0024 0024 <br />0000030 0024 0000 aa0a 20dc 0414 1110 1e19 006a <br />0000040 0000 0006 8b9e 0033 ab0a 0014 0001 0000 <br />0000050 0000 0000 8b9e 0033 0001 006e 0000 0000 <br /><br /> Note that I'm including the first 5 bytes that make up the<br />1. command 2 address (2 bytes) and check word (2 bytes) so really the<br />first byte of the flash is at offset 5.<br /><br /> One thing I'm confused about is the address, it's only 16 bits but<br />the range of the flash is 0-0x100000 (1 MB) which takes 3 bytes. So<br />does that mean you need to stream out the whole 1MB in one chunk?<br /><br /> Thanks,<br /><br /> RickAnonymoushttps://www.blogger.com/profile/10485682394871681532noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-18446850907144928112014-06-27T10:49:59.873-07:002014-06-27T10:49:59.873-07:00Hey pfalcon, how did you get started with programm...Hey pfalcon, how did you get started with programming these BC417 modules? I have Bluelab and a SPI progammer. I've tried flashing the examples provided but I have no idea how to proceed from there: how to use HCI, UART to communicate with the flashed chip, how to write Bluecore applications... Any suggestions on how to get started?Anonymoushttps://www.blogger.com/profile/07827053232579091171noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-10986172849704068452014-06-16T10:00:20.740-07:002014-06-16T10:00:20.740-07:00Alan: thanks for that git repo, I added link to my...Alan: thanks for that git repo, I added link to my wiki page. So, we made another incremental step towards better open-source support for XAP/BlueCore MCUs, but yes, as pointed by Nicked, there would be much more work before one could "just use it". Let's hope that more people will get interested in that though, and progress will continue.<br />pfalconhttps://www.blogger.com/profile/03541492744894534972noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-64211425069902869282014-06-13T17:34:29.863-07:002014-06-13T17:34:29.863-07:00thanks for the tool chain, I am not sure how usefu...thanks for the tool chain, I am not sure how useful it is without the libraries, the CSR architecture is kind of persnickety, it has a quasi protected mode that isolated the Bluetooth stack from the user stack, and with access to the event handler I would not be sure how to get the thing to work. Nickedhttps://www.blogger.com/profile/10967679818666066821noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-58618330104015512322014-06-13T15:24:39.825-07:002014-06-13T15:24:39.825-07:00Hi pfalcon,
I uploaded the toolchain source code ...Hi pfalcon,<br /><br />I uploaded the toolchain source code to github:<br /><br />https://github.com/acassis/xap-gcc<br /><br />I'm releasing the GPL code that CSR "forgot" to release.<br /><br />Now I need to fix compilation when using a recent gcc version and try to use xap-tools as assembler.<br /><br />BR,<br /><br />AlanAlan Carvalho de Assishttps://www.blogger.com/profile/02941437856705403049noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-84409929054787933922014-06-13T13:22:33.186-07:002014-06-13T13:22:33.186-07:00If you got your copy of BlueLab legally, I don'...If you got your copy of BlueLab legally, I don't think there can be any (reasonable) legal issues. For example, I had a quick exchange with a guy who, while wondering a hardware flee market, found a box with Bluecore devel board and CD, and legally bought it for some $20. I encouraged that guy to extract gcc archive and put it online, but never heard back from him.<br /><br />I personally had access to BlueLab via my friends, and don't think it would have been ethical to "release" anything behind their backs, and they were not interested in that as they paid full price for it and possibly had private contracts with a supplier.<br />pfalconhttps://www.blogger.com/profile/03541492744894534972noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-26137751010779931162014-06-13T13:09:16.444-07:002014-06-13T13:09:16.444-07:00pfalcon,
Thank you for this info.
I was aware of...pfalcon,<br /><br />Thank you for this info.<br /><br />I was aware of your wiki, but there is not any hint explaining the gcc toolchain source code was accessible just after installing the BlueLab. <br /><br />Do you think there is some legal issue if I put this source code of gcc toolchain in the internet (github)?<br /><br />It needs some fixes to compile with new gcc (i.e 4.8).<br /><br />BR,<br /><br />AlanAlan Carvalho de Assishttps://www.blogger.com/profile/02941437856705403049noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-35978109374523970812014-06-13T12:40:09.143-07:002014-06-13T12:40:09.143-07:00Alan:
Surely it always has been there, and everyo...Alan:<br /><br />Surely it always has been there, and everyone always knew that. Those who didn't, could read about it on internets, e.g. here: https://github.com/pfalcon/blutunode/wiki<br /><br />Please bring us some real news, like that someone exercised rights given to him/her by GPL and released those sources to the public. Thanks.<br />pfalconhttps://www.blogger.com/profile/03541492744894534972noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-73376220927392871812014-06-13T12:27:26.897-07:002014-06-13T12:27:26.897-07:00Hi pfalcon,
Did you notice that CSR ships the Blu...Hi pfalcon,<br /><br />Did you notice that CSR ships the BlueLab with gcc-3.3 patches inside it?<br /><br />I installed BlueLab 4.1 using wine on Linux and notice it put the gcc patch inside BlueLab41/src/gcc/csr-gcc-3.3.3-29-xap-patch.tar.gz<br /><br />In this patch has a README file explaning how to compile. Unfortunately some files like ld.exe and ar.exe are binary only and you need to copy it to install_dir.<br /><br />Then even if CSR didn't release it to the public in a formal way, at least it was always there.<br /><br />BR,<br /><br />AlanAlan Carvalho de Assishttps://www.blogger.com/profile/02941437856705403049noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-28849992329392463902014-05-22T12:54:43.023-07:002014-05-22T12:54:43.023-07:00Heh, I've been working with these modules for ...Heh, I've been working with these modules for a while, but the CSR license(s) didn't sound very friendly towards open-sourcing.<br /><br />I'm using the UART for 1-wire master (as described here: http://www.maximintegrated.com/app-notes/index.mvp/id/214 ). The bluecore's delays weren't accurate enough for software bit-banging (and the VM model probably doesn't help, either).<br /><br />I also use a custom spilpt.dll which talks MPSSE to a FTDI FT2232 for programming the modules. This can be done from wine under Linux (and the IDE mostly runs fine there, too). I wasn't aware of the CsrSpiDrivers project on github (thanks, Hillel!) which looks similar, even more polished. I'll see if can get my stuff published.Alex Bhttps://www.blogger.com/profile/04738940446206184367noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-85227697116172592312014-05-15T13:14:17.709-07:002014-05-15T13:14:17.709-07:00Hi,
From where can i get the OS documentation? W...Hi, <br /><br />From where can i get the OS documentation? Where would be the point in beginng to use I2C? Is It possible to store user Data in der flash and manipulate it from the Applikation? <br /><br />Thanks for your effort! Unknownhttps://www.blogger.com/profile/01744730504947720062noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-49891225680012725622014-03-15T12:49:55.300-07:002014-03-15T12:49:55.300-07:00You mentioned future features:
I2C/1-wire support ...You mentioned future features:<br />I2C/1-wire support to connect external sensors.<br /><br />I was wondering if this had been updated by you or anyone else? Adding support for external sensors would be amazing. If you are too busy, I would appreciate it if you let me know.<br />Best Regards<br />Carlos Anonymoushttps://www.blogger.com/profile/18090124412123097200noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-74528148305236179762014-03-06T15:43:05.802-08:002014-03-06T15:43:05.802-08:00Hi pfalcon!
I'm looking inside your code beca...Hi pfalcon!<br /><br />I'm looking inside your code because I want to develope a new firmware for Bluecore4 as you did, but focused on improve HC-04/05... modules.<br />I succedded compiling your code but I'm not able to get it running on the core. Could you give me any guideline? Thanks!!!<br />(raulmerlin at gmail)<br />Raúl de Pablos Martínhttps://www.blogger.com/profile/07274133807229161764noreply@blogger.comtag:blogger.com,1999:blog-3407720807708937392.post-13305061925530726412014-02-24T13:59:23.771-08:002014-02-24T13:59:23.771-08:00Hi! I liked your article about bluetooch. I want t...Hi! I liked your article about bluetooch. I want to get your advice. Please tell me the mail. Привет ! Мне понравились твои статьи про bluetooch. Я хочу получить твою консультацию. Пожалуйста ответь мне на почту. <br />kabcpc(a)gmail(.)comAnatoly Kravchenkohttps://www.blogger.com/profile/16865689236174647628noreply@blogger.com