Thursday, June 28, 2018

Reading Temperature and Humidity on AppsFactory Beacons

AppsFactory Beacons have SHT20 High precision Temperature and Humidity sensor embedded in them. Reading the values from the beacons is not that easy that is why this post is written which will serve as guide. Temperature and Humidity is important as it will allow building owners discover patterns that can not be detected by ordinary humans not unless of course humans are so super intelligent that they may not need tools to predict or discover patterns which could suggest something is just about to happen.

There are two ways to read the sensor data which are as follows:

  1. can be read via GATT
  2. can be included in the beacon advertisement data.

Here is the detail:

1. Reading the Temperature and Humidity via GATT Service
The data can be accessed via GATT Service 0xFFB0 see table below:
The characteristic 0xFFB3 is used to enable the measured Teperature and Humidity on the Advertisement Data. The possible values are as follows(2 bytes):

  • 0x0 - Enable
  • 0x00 - Disable 
Other values maybe entered to specify the rate which it will be advertised, example if 0x0F was entered means the temp and humidity will be advertised every 30 seconds. 
2. Reading the Temperature and Humidity from Beacon Advertisement Data
The Temperature and Humidity is included at the last bytes of the major and minor of the Ibeacon frame.

After obtaining the value, the conversion formula to get the actual values are as follows:

Monday, June 25, 2018

Beacon Scanner App Updated

Remember the app I created to scan Ibeacons and list them on screen and wrote about it that it is possible to modify the app to scan EddyStones as well? To prove it, I have decided to modify it myself. In case you haven't read the previous posts, here are the links:
A Simple Ibeacon Scanner App in Android
An Update to the Ibeacon Scanner App for Android
The a small change I made is to change the name of device whether it is an Ibeacon or an EddyStone-UID.

Like I said, the file needs to be modified to detect the 3 Eddystone frames, but I only modified it to scan the UID frame on for demo purposes. And here is the code I insterted:

This is the raw data taken from Ibeacon Detector App:

And here is the resulting app:

Sunday, June 10, 2018

How to Setup AppsFactory Beacons to Broadcast Ibeacon/EddyStone/TLM(Sensor Data)

AppsFactory Beacons Model A just arrived and has made me busy doing tests on each features that the beacons were design to have whether it really works. Doing the program was  not that easy and to see your design work as expected makes you happy.

One notable feature of the beacons is that it can be configured over the air using nRfConnect App for Android or IOS. And can be made to broadcast ibeacon, eddystone and sensor data at an alternating interval. the beacon is also capable of motion triggered broadcast but I haven't test this part yet.

BTW, the sensor data consists of acceleration and temperature data. I will this this part later.

I have designed the beacon to be configured at Bluetooth service 0xff70, and under this is characteristic 0x2a80. The possible values that can be enterered are the ff:
No advertisement: 0x01
iBeacon only: 0x02
Eddystone only:0x08
TLM only: 0x20
To broadcast all three frames : 0x02 + 0x08 + 0x20 = 0x2A

And here is the video:

Sunday, May 20, 2018

How To Make China to Be not Aggressive

With all the current buzz about China being too aggressive by militarizing the South China Sea which include the West Philippine Sea, the world can still make China not to be too aggressive. I think these are the best ways to do it:

1. Send all Chinese back to their homeland. Would you believe that it took China just a decade to overtake the Filipinos as the biggest Asian community in the USA alone? The Philippines took almost 5 decades to send 3M Pinoys to the US. This could have been possible because most Chinese found their way through Canada and then went to the US.

2. Ignore Chinese presence all over the world. Do not buy China made product. By doing this, Robinsons, SM, and other big mall operators will lose their commercial viability since 80% of their products come from China, not to mention the owners.

3. DO not be an opportunist. Just because someone is rich you will want to accept his marriage proposal. Just because you are poor and it is your chance to become rich is not an excuse that you will not be labled as opportunist.

4. Maintain closer relationship with your allies and rely more on locally produced goods. Stop importing too much, even if the locally made products are inferior in terms of quality or more expensive, always remember that if you buy China made products, you are killing your country. The country should support R&D in electric motors and batteries to make electric vehicles. We already know how to manufacture solar panels so we can already achieve energy sufficiency. By doing this we can cut our imports by 50% since most of our imports are gasoline and energy related products.

5. Convince the US to ban all imports/exports to China like weapons, electronics, raw materials, chemicals, machineries, etc. The world could be at worst killing itself if they keep on buying products from China.

6. Ban all tourists coming from China even if they come from Hong Kong, Macau, Singapore, Malaysia, or Taiwan. Chinese make up 20% of the population in South East Asia so be cautious about dealing with these countries. And even with this huge communities, fellow South East Asians should be aware of their presence and the future of their country. I think the local Chinese are also competing with Pinoys in obtaining US visas that is why it has become very to difficult to obtain US visa.

7. Ban Chinese ownership in strategic and important industries like Airline, Telecommunications, Broadcasting, Infrastructure Development. Look at what happened to the last purchased of MRT trains, until now those trains are not yet being used, the people behind those must be prosecuted and should be made liable and labled as terrorists.

8. You can not rely on the US as an ally since they have very healthy economic relationship with China and they look at the Philippines as a tiny country and of no significance to world affairs so why rely on US for military help? Why haven't Pinoys developed weapon systems that could have served as the source of the country's strength? It could not just have been more than that, the Government could have generated jobs. Or exported those weapons to support the local economy.

Sunday, May 13, 2018

5 Indications that the IT Project is Fake

I got involved with different types of IT projects over the years and got scammed several times and wanted to share this based on experience. If you are in the same field you will agree with this too. Here are the 5 indications that the IT project is fake:

1. Measure the number of errors of the documents being handed to you. Yes, they are not Americans so it is an excuse to write carabao English or is it because they were hired for another reason? Errors(excluding those grammatical errors) in Technical Designs are those that are written to too specific. Instead of just writing: "Return an error if the customer code is not maintained in SAP Master Data"; the pretentious Technical Architect would write: "After obtaining customer code, you must check if the customer code exist in table lfa1". They should not be involving themselves in specifics but should just concentrate on higher level description and the different business scenarios. Giving too specific instructions would lead to more confusions and the programmer would just cut and paste which could lead to a more prolonged test period and you can not blame the programmer since you are invading his territory which he would immediately assume you are in full command which make their job a whole lot easier. Programming entails a lot of careful planning and meticulous design to produce a highly optimized solution. And giving too much information means you are the one who planned it and it is your design and not the programmer. There are a lot instance and I would say a major challenge to describe a certain specification and to hurdle such challenges, creativity and of course your competency is the key. The preparation of Technical Documents and Functional Specifications are more expensive than doing the actual programming or coding so you must realize that being a TA or BA or FA, you can already relax because you are on top of the Software Development Life Cycle, well that is where you are wrong.

2. Measure the competence of your peers. Do this secretly, if all your peers are female, you should begin to suspect something is going on.

3. Frequency of work and how fast it should be done and how many people have the same position like you have. Begin observing how they behave and all your movement must be calculated. The world's resources is scarse.

4. Other than your peers, how does the company's employees behave and the surrounding environment, how was it? Do they start offering other services or want to offer except that they just keep looking at you?

5. There are other circumstances where it is up to you to interpret which can trigger something in you that you think violates certain moral standards, do not ignore it. Your instincts does not lie to you.

Wednesday, May 2, 2018

Agencies In Metro Manila still Flourishes

Agencies(Companies who's clients are Companies that do not want to have regular employees) still flourishes in Metro Manila.This in spite of the fact that Pinoys opted to vote for a semi illiterate President who promised to eradicate contractualization.

Contractualization destabilizes livelihood of individuals. It makes the person in constant struggle to find decent jobs. It really makes me angry to hear recruiters having fun to find a guy that is willing to accept jobs on a contractual basis. This is what overloading of buses is like. Constant struggle just to get a place so that one can go home it's because there are no decent jobs on the country side, people are poor and have no knowledge to create opportunities and big companies take advantage of this situation. This vulnerability that is exposed for all scammers to take advantage of is what makes Agencies flourish. Even IT companies aka Agencies are there. They survive on big Companies that are not willing to hire employees and regularized them. I understand that they are poor but why do they make use of technology that they can't afford anyway? It is because they take advantage of the poor.

This is an unfair competition, one should be aware of this and should be able to crate a way to equalize or balance the competition. One should be aware that life is a like a rolling wheel, one may be on top today but he is not sure what is going to happen in the future. There is always a balancing force as one becomes powerful that is when the opposition intensifies their effort to ovethrow him.

Monday, April 23, 2018

Breath Fresh Air anytime with Breath Happy Multi Function Airpurifer

The air we breath is getting dirtier each day. Based on the study conducted by the Environmental Protection Agency (EPA), the air inside a home might be two to five times more contaminated with pollutants, be it animal dander, cigarette smoke, or soot.

Enter the air purifier. They can be hugely beneficial for allergy and asthma sufferers, as well as anyone who lives near major highways or other pollutant-filled areas, like coal plants. The best ones use fans to cycle air through a series of filters, capturing impurities and jetting clean air back into the room. Choosing the right one comes down to its CADR rating — the measurement for how well an air purifier actually works. Aside from that, the right type of filter — a true HEPA is key — and making it sure it can accommodate the size of room you want will have you breathing easy.

Breath Happy Air purifier performs way above the minimum expectations set by CADR because it uses several air filtration stages.It is also equipped with UV Light and IONizer to ensure that bad odors and contaminant are eliminated effectively.

Here are the images:

Ideally, air purifiers can remove the existing air contaminants but it is not finite, so for example the pollution directly comes from the exhaust of a car, the device due to its small size could not do miracle to remove all pollution coming from the car. It is better to get rid of the source first but does not yet guarantee that the car is only the source there are other sources inside the house and these sources does not produce air pollution as fast as the car or the smell from your neighbors while they are cooking. This is where the device can perform well. Another observation I found while using the device is that it could not suck in the air inside a room it needs an assistance from an electric fan to effectively keep the air circulating inside the room so that all air particles and contaminants will be constantly moving and as they go near the device, they get sucked in and purified.

I used to live in a neighborhood wherein I forget to close the window, some people will intentionally leave their car running the whole night just below my window or someone will smoke or cook a food that emits really pungent odor. So each night, I make sure that the whole room is sealed with very little air from out side coming in and I use this airpurifier device to get rid of any remaining air pollutants and of course an electric fan to keep the room cool and keep the air circulating.

I dont expect everybody to experience the same thing I did but as this device is necessary for any circumstances since there is car everywhere, people cook their food, people smoke, there paints on the walls and all over the house.