<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4732/nrf51822-evaluation-kit-image-from-camera-to-ble</link><description>Hi
Im electrical engineer student. I am working on nrf51822 evaluation kit and LinkSprite JPEG Color Camera UART Interface. I tried to control the camera to take picture, store in flash then from flash go straight to BLE. I get stuck at storing image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Dec 2014 15:23:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4732/nrf51822-evaluation-kit-image-from-camera-to-ble" /><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16749?ContentTypeID=1</link><pubDate>Tue, 09 Dec 2014 15:23:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16931d25-c0aa-4437-9879-7618538a4284</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There is a pstorage example available at the bottom of &lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is also a getting started guide &lt;a href="https://devzone.nordicsemi.com/blogs/39/nrf51822nrf51422-getting-started-and-documentation/"&gt;here&lt;/a&gt; for the nRF51.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16738?ContentTypeID=1</link><pubDate>Tue, 09 Dec 2014 01:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c8974c-1a5b-4150-98a7-6d12e6a12c0c</guid><dc:creator>Dong Pham</dc:creator><description>&lt;p&gt;Right now! I try to get a demo, which mean just need an complete image after sending through ble.
I approach with ble_app_uart and simple_uart  main files. I have some ideas:&lt;/p&gt;
&lt;p&gt;-uint8_t simple_uart_get(void) // get data from RXD pin&lt;/p&gt;
&lt;p&gt;-bool simple_uart_get_with_timeout(int32_t timeout_ms, uint8_t * rx_data) //get data and delay&lt;/p&gt;
&lt;p&gt;-void simple_uart_put(uint8_t cr) // put data to TXD pin&lt;/p&gt;
&lt;p&gt;-void simple_uart_putstring(const uint8_t * str) //ble_app_uart call this function,not sure what it does&lt;/p&gt;
&lt;p&gt;-static void advertising_init(void) // setup first conditions for ble&lt;/p&gt;
&lt;p&gt;-void uart_data_handler(ble_nus_t * p_nus, uint8_t * data, uint16_t length) // put data to handler&lt;/p&gt;
&lt;p&gt;-static void advertising_start(void) // send to ble&lt;/p&gt;
&lt;p&gt;Other functions in those main.c, i dont really understand fully, or do i really need all of them?
Let me know if i miss something or misunderstand something
Best regard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16737?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2014 06:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2765d529-7bf1-4317-8099-b843380f4121</guid><dc:creator>Salman</dc:creator><description>&lt;p&gt;You should not store the image in flash. You need a SD card, external RAM or ROM for that. It is a good option to use SD card. Read all data from camera on serial interrupt and write it in SD card. You can write on SD card as RAW bytes. SD card writes and reads 512 bytes at a time so you need to make 2 512 bytes buffers this is because when buffer 1 is full you need to start receiving data on buffer 2 mean while write the data in buffer 1 to SD card. I have tried this and this logic works. One thing more you can reduce the size of image by sending it ratio command that why image size will be small.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16748?ContentTypeID=1</link><pubDate>Sun, 07 Dec 2014 03:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be9c1e8-e02a-440a-b8b4-5e7bf2019304</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;First things, put your camera aside for a while.  Take UART and other ble examples and get them working.  Get a feel of how BLE works.  Once you familiar with data transmission over BLE, then you can get back to your camera.  There are many examples in the sdk you can look at.  If you are using Keil free licence, it is limited to 30KB.  This is probably not enough for real work.  There are Eclipse based development which is completely free.  You look at this Blog site on how to setup up Eclipse based nRF51 development.  It also contains many examples you can use, including UART over BLE.  &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;embeddedsoftdev.blogspot.ca/.../ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16747?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 17:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f5e6cd-d6b5-4cce-b7b5-94ad3758455e</guid><dc:creator>Dong Pham</dc:creator><description>&lt;p&gt;since the minimum size of my image is 4k (160x120) and max is 60k(640x480), i think i just go with the min resolution. As Clem Taylor mentioned, if i dont store the image (i will add Winbond later) and i want to go direct to BLE, what direction should i follow? All the response i receive from the camera right now is though my logic analyzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16746?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 08:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ebcfa2a-92af-48ac-87cd-7f9f144e5cf3</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;Many of the jpeg camera modules can buffer the compressed data (some can even store a small ring of compressed frames). So your best bet is to stream the data directly from the uart to the radio and let the camera module act as your buffer.&lt;/p&gt;
&lt;p&gt;The on-chip flash really isn&amp;#39;t a good choice for writing something like image data. If you really want to write the images to flash first, then use an external SPI flash (something like the Winbond W25Q80BW is US$0.50/Q1 at digikey).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16745?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 05:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db32f691-e398-461d-973e-4faa40e8a5c2</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I can&amp;#39;t to your question about the camera protocol.  You&amp;#39;ll need to find the camera specification and understand the transfer protocol it uses to transfer data over uart.  JPEG is a compressed image.  You won&amp;#39;t the picture itself but compressed data bitstream.  In order to see the image you need to decode it first.  You don&amp;#39;t need to do that.  Just sent all the data you receive and send it as it over BLE to whatever you use to decode the image. The nRF51 is not fast enough to decode the image in realtime.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16744?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 04:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b84d463-b8f2-4208-b158-0ea29a332dbc</guid><dc:creator>Dong Pham</dc:creator><description>&lt;p&gt;Thanks for fast reply and your patience!
The camera takes picture with its smallest resolution: 160x120 which means 10k. I receive the first chunk and the last chunk of the picture which starts with FFD8 and FFD9. It&amp;#39;s not right because i want to receive all the chunks, not only the first one and the last one. I receive chunks with logic analyzer. 1 more thing, right at that logic analyzer, i am not sure if the image(in hex digit) is in the board nrf51822 or still in the camera.
Sorry, i am a very beginner with ARM and Camera&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16743?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 03:48:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b98c4cd2-1d1d-43ed-90cc-abe627f1a130</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;All most all the example make use of pstorage you can lookup.  It is also described here
&lt;a href="http://developer.nordicsemi.com/nRF51_SDK/doc/7.0.1/"&gt;developer.nordicsemi.com/.../&lt;/a&gt;
writing to flash takes a lot times.  I guest the image is around 4KB.  Probably too much for RAM.  You&amp;#39;ll probably get 2-3 frames/sec going through RAM.  May be 1/s through Flash, may be less.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16742?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 23:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af800d17-3e58-4f05-9ec8-dd3d95296c8c</guid><dc:creator>Dong Pham</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;10-second per frame&amp;quot;? Can you explain more about this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16741?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 22:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff747f95-d29b-4217-9e6a-51de2182450b</guid><dc:creator>Marc Nicholas</dc:creator><description>&lt;p&gt;Do you really want to spend 10-seconds per frame transferring the image? BLE is really not optimal for file transfers...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16740?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 22:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80899533-c973-4190-8379-e481e0d9b44a</guid><dc:creator>Dong Pham</dc:creator><description>&lt;p&gt;The resolution : 160X120 so it wont take too much memory of the Ram/flash
What I mean is how do set up the address after taking picture? how to transfer that picture to BLE ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 evaluation kit image from camera to BLE</title><link>https://devzone.nordicsemi.com/thread/16739?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 21:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52887b1f-ef4e-4a3a-ad39-0b8662c0ca1a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You need to look at the pstorage.  How big is the picture ? You only have a few KB in the nRF51 flash avail for storage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>