NFC Reader for FreeStyle Libre with BM019 - Unofficial board? #4291
Replies: 1 comment
-
Posted at 2019-01-21 by @gfwilliams I answered your email already so the compilation this is fixed. However I'd be pretty much certain that the speed of JavaScript is not your problem - and I seriously doubt compilation will help you in this case. Could you post up your code, and the messages it posts up? Posted at 2019-01-21 by user97106 Thanks for sorting that out, although I haven't had a chance to test yet, I will so as soon as I can. Interesting what you say. I will do as you suggest when I'm back in the office. My suspicions have been raised because of the intermittement nature of the reponse from the BM019 board. Anyway, I'll get an update to you soon as I am keen to sort this out. Posted at 2019-01-21 by @gfwilliams Ok, great. If you used software serial (as you mention on http://forum.espruino.com/conversations/329943) it's very likely you'd be getting all kinds of intermittent communications issues, which could be what you're seeing? Espruino's hardware serial is pretty solid - and in fact if any buffers overflow so data is lost (which would happen if Espruino wasn't processing it fast enough), it should output Posted at 2019-01-22 by user97106 That's interesting. I am seeing FIFO_FULL messages, though again, not consistently. Anyway, as I said I'll do some more testing, capture the output and get back to you. Posted at 2019-01-22 by @gfwilliams Thanks - I think it'd help to see your code. Sometimes if people are used to Arduino they'll write code like Posted at 2019-01-22 by user97106 Ok, I want to see if I can get SPI to work first. I know Arduino will work with BM019 and I have ordered one, but I like the Espruino package so I want to persevere with that for now until I have exhausted all options/ideas. Posted at 2019-01-22 by @gfwilliams ok - SPI should be pretty straightforward I hope, and from what I can see all the example code for the BM019 uses SPI too. Posted at 2019-01-22 by user97106 So, here's the problems I am having with interfacing by SPI to BM019.
If anyone has any suggestions they will be most grateful received :-) Here's the code...
Here's the output...
Posted at 2019-01-22 by @gfwilliams I really think Specifying SS_PIN for Please could you try just:
Do you have HOWEVER looking at http://www.solutions-cubed.com/content/Downloads/Breakout%20Modules/DATASHEET_BM019.pdf I don't think just sending 0x55 should work anyway... That's the command, but it looks like commands need to be wrapped up - see page 20 of that document. For example their Arduino code does:
In fact it's kind of obvious that just sending 0x55 wouldn't return the right response because data on SPI is clocked in as it is clocked out... So the data you're receiving is being sent by the device even before it has received the command. You could try this - which is just the Arduino code that's been hastily converted to Espruino. It might work - if called after your initial setup stuff?
Posted at 2019-01-22 by user97106 Thanks for getting back to me. Really appreciate your help.
Will get back to you soon with results... Posted at 2019-01-22 by user97106 Results... Using this code...
Gives me this...
Tried the inventory function as written above and got lots of these (while scanning a tag)...
I think it might be necessary to set the NFC protocol before doing this. Posted at 2019-01-23 by @gfwilliams Ok, great - yes, it looks like the NFC protocol setting might be needed. The echo response stuff at least seems to follow some kind of pattern which makes me think that SPI is probably working ok. In a way it's good that it got all the way through the On http://www.solutions-cubed.com/bm019/ there's http://www.solutions-cubed.com/content/Downloads/Breakout%20Modules/BM019_NFC_15693_Inventory_Arduino.zip which I was using as a base for the code I posted. Creating a function for setting the protocol based on what they did in the same way I did the inventory one should be reasonably easy. Posted at 2019-01-23 by user97106 I agree with what you have said. In fact I have already implemented the code you are drawing my attention to, but because it didn't work I decided to try to at least get something basic working,i.e. an echo 0x55. Posted at 2019-02-22 by user97106 Hi All,
Posted at 2024-03-11 by user157713 Testo di origine |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-01-19 by user97106
Hi,
I am trying to interface an Espruino MDBT42Q to a BM019 NFC reader
(http://www.solutions-cubed.com/bm019/)
but can't get it to work. I think it's because JavaScript is too slow.
I attempted to use the C compiler but get the message "Only official Espruino boards are supported..."
I bought the Espruino is good faith from Cool Components and had no reason to believe it was anything other than official.
Am I missing something here.
Thanks,
Marco
Beta Was this translation helpful? Give feedback.
All reactions