Apr 7, 2013

Ketones in Urine During Pregnancy

Ketones in the urine during pregnancy is a health concern which some women experience during those crucial nine months. Although, it is not a high-risk pregnancy complication, studies reveal that it can be a cause of worry.


Ketones are substances derived from fat breakdown. They are used by the body as a source of energy under emergency circumstances, like starvation or glucose deficiency, in order to survive. In other words, ketones in the urine are formed when the body's fat reserves are used to generate energy.

Ketones in the blood further leads to ketosis. Weakness, nausea, lethargy, and excess sweating are signs of ketosis.

Occurrence

Our body gets its energy from the food we eat, which gets converted into glucose or blood sugar. It is insulin which provides an easy access to this blood sugar. During pregnancy, the placental hormones make the body resistant to insulin, which subsequently restricts the glucose in the blood from entering the cells. Hence, though the blood will be enriched with blood sugar, the cells will be deprived of the required energy. As a result, the cells start accessing other energy sources, like the fat stores, resulting in ketones as the byproduct of this entire process.
Causes

There can be various factors that may contribute to large ketones in the urine during pregnancy; dehydration and bad diet, to name a few. Others are enlisted below:
  • Not getting enough calories from the food you are eating
  • Long time intervals between meals
  • Skipping meals or snacks
  • Gestational diabetes
  • Diets which include low intake of carbohydrates
  • Dehydration - not drinking enough water
  • Metabolic disorders
  • Nausea, poor eating habits or throwing up
  • Insulin resistance from hormones as a result of which the body is unable to access blood sugar
  • Testing
Ketone testing is very much different from normal urine sugar tests. You need to wash yourself properly, and collect your urine in a sample box. It is better to let a small amount of the initial urine fall into the commode. This will clear the urethra of contaminants. About 1 or 2 oz. of urine will be sufficient for the test. Then you can ask your health care provider to examine the presence of ketones in your urine. Nowadays, different ketone sticks are available in the market which can be used for ketone testing.

For optimum results, it is better to use the first sample of urine (taken first in the morning) for testing, as due to the overnight fast, the blood sugar levels drop. It is then that the body starts looking for fat stores as a source of energy, which results in giving off or spilling of ketones in urine.

You may have to go on a different diet before you take the test. Please make sure not to consume any drugs before the test. Doing so might affect the test results. The test does not cause any discomfort, as it is carried out through normal urination samples itself. There are no risks either. It is always important to take a ketone test during pregnancy, as high levels of ketones in the urine can be harmful to you and your baby.

If ketones are present in your urine, the test results are said to be abnormal. The abnormality is categorized into three parts. Small is < 20mg/dL, moderate would be 30 - 40 mg/dL and large would be > 80 mg/dL. Small amount may mean that the build-up has just started. Conduct the test again after few hours. Moderate or large amounts may prove to be dangerous. Ask for a doctor's opinion in the latter case.
Prevention

It is always recommended to consult a doctor for this problem. In order to prevent ketones in general, you should avoid skipping meals or having long gaps between each meal. You should eat after every 3 to 4 hours during pregnancy. Also, try having a good bedtime snack which should be rich in proteins and starch. This is because protein slows down the absorption of carbohydrates, which benefits by making energy available to the body for a longer duration of time.

Also, remember not to keep more than 9 to 10 hours gap between your bedtime snack and breakfast, as this will lower the risk of presence of ketones in urine. Hence, consider having small yet frequent meals, high in proteins and starch, in order to avoid the situation.

However, there have been cases when the patient isn't starving, nor is she dehydrated, but still spills ketones in her urine. In such cases, putting on weight by overeating is not the solution. It is necessary to eat nutritious food like fruits and vegetables. Drinking plenty of water will keep your baby healthy.

During pregnancy, one should consume about 1800 to 2500 calories, on a daily basis. Maintaining a food diary or journal should prove helpful to keep a count on what you have been eating, along with the time and calorie count. Seek advice from a nutritionist or refer to pregnancy diets for proper guidance. You could also attend weight watcher meetings.

To conclude, we can say that occasional traces of ketone bodies in urine during pregnancy do not seem to be a very serious problem; unless there are larger amounts or frequent bouts of ketones in urine. Whether traces of ketones in urine during pregnancy is dangerous or not, is a debatable topic. However, some studies emphasize that women with large amounts of ketones, may have babies with learning disabilities or reduced IQ later in life.

Regular monitoring of the first urine in the morning (for ketones by a midwife or doctor), especially in women having gestational diabetes, can help in preventing as well as treating this health ailment.

Ketosis Side Effects

Normally, our body gets energy from various dietary sources of carbohydrates. When the carbohydrate content is reduced in a diet, our body is forced to obtain energy by burning the body fat. The specialized metabolic mechanisms for the breakdown of fat molecules in the adipose tissue are activated in order to achieve this. Such a breakdown of fats to obtain energy results in the production of beta-hydroxybutyrate (BHB) and acetoacetate.


Acetoacetate further breaks down to acetone which is utilized to fulfill the energy requirements of the body. These three molecules are collectively termed as ketone bodies. In the initial few days, the excess ketone bodies are excreted through urine, and the level of ketones in the body remain balanced. Later on, the continuous rise in ketones leads to their accumulation in the body. This condition is referred to as ketosis. The state of ketosis is not only associated with weight loss, it may also prove beneficial in the treatment of Alzheimer's disease, Parkinson's disease, and epilepsy seizures in children.

How Does Ketosis Help in Weight Loss?

Many people who are willing to lose weight through dieting, opt for a ketogenic diet. In this diet plan, the fat intake is high and the intake of carbohydrate is very low. Research studies suggest that such a diet leads to weight loss by reducing hunger, triggering the utilization of fat reserves in the body, and depletion of glycogen reserves in liver along with water loss. However, these effects have been evaluated on a short-term basis only. The long-term effects of such a diet is a debatable issue as yet.

Side Effects of Ketosis

There are several side effects which are observed in people who are following a ketogenic diet. Most of the side effects show up 3-7 days after starting the diet. The most obvious side effect that people talk about, is loss of hunger. Some people rejoice on this effect as it helps them to lose weight but many of them cannot tolerate it. This lowers their energy levels so much that they feel unwell. They suffer from minor problems like headache, nausea, irritability, sudden dizziness, and so on. They may also experience sluggish mobility, as more energy is required in breaking down the fats for production of usable energy for the body. Dehydration and constipation are often observed in the beginning of the diet program. These problems are resolved by drinking plenty of water and eating fiber-rich foods.

Bad breath is another side effect of ketosis which is triggered by the abnormal increase in the ketone bodies. The body gets rid of the excess amount of acetone through breath resulting in halitosis. In fact, breath acetone serves as a diagnostic measure for ketosis.

Ketone bodies are precursors for a toxic metabolite called methylglyoxal. A study conducted at the Dartmouth Hitchcock Medical Center revealed a 2-fold increase in the levels of methylglyoxal in people on a ketogenic diet. This molecule induces oxidative DNA damage and also alters protein structure and functions resulting in damage of various tissues and blood vessels.

Ketosis has also been associated with mild euphoria. At the beginning of the diet, people often experience a feeling of well-being. This has been attributed to the increased levels of BHB, which is an isomer of gamma hydroxybutyrate (GHB), popularly known as liquid ecstasy or the date rape drug. GHB is also naturally present in our body and plays a major role in neurotransmission. A detailed study of the effects of BHB and GHB has shown that BHB indirectly induces GHB-like effects but with a lesser intensity.

If a low-carb high protein diet program continues for a long time, it may lead to other health complications. A high protein diet leads to high uric acid levels, and hence has been identified as a risk factor for gout and kidney stones. Moreover, the excretion of these acids through urine requires calcium. Hence, an increased acid level corresponds to increased calcium excretion, which alters the bone density and poses the risk of calcium deficiency and osteoporosis. Ketosis has also been associated with heart palpitations.

Diabetics and Ketosis

Type 1 diabetes is characterized by the inability to utilize glucose as an energy source due to a lack of required insulin levels. The body responds to this state by utilizing the fat reserves to fulfill the energy requirements and by increasing glucose levels in blood. The obvious outcome of this is high levels of ketones in blood and urine to an extent that the acid-base balance in urine also disrupts. Such condition characterized by high glucose levels, acidic urine and high ketone levels is known as Diabetic Ketoacidosis (DKA). Type 2 diabetes is characterized by insulin resistance and rarely leads to DKA. A ketogenic diet is best avoided by diabetics.

Ketosis during Pregnancy
After the 12th week of pregnancy, a state of insulin resistance is observed which leads to breakdown of body fat. This helps the developing fetus in two ways: glucose is spared for the fetus and the maternal ketones serve as an additional energy source. Therefore, it is normal to observe ketone bodies in urine. However, a ketogenic diet should be followed only with the consent of the expert since it may cause premature birth, still birth or abnormalities in the fetal development.

The effects of ketosis are different for every individual. Some people have the natural ability to deal with them but others may not be able to cope up with the changes associated with it. Diabetics, and people with liver and kidney diseases should definitely avoid a low carbohydrate and high fat or high protein diet. Therefore, at any point of time, if dieters feel that they are unable to tolerate these effects, they should abandon the diet program immediately.

Bad Breath from Ketosis

Ketone bodies or ketones are water-soluble chemical compounds which are produced as a by-product of fat metabolism. Ketosis is nothing but a phase of metabolism where the body breaks down fat for energy. Though ketone bodies are always present in our body, being in a stage of ketosis can sometimes be a cause of serious concern. Halitosis, which is commonly known as bad breath, is just one of the many symptoms of ketosis. Let's find out the connection between ketosis and offensive mouth odor.


Under normal circumstances, our body uses glucose or carbohydrates to meet its energy requirements. In case of people following a ketogenic diet, the body has to switch over to the stored body fat or dietary fat sources for obtaining energy. Thus, the process of fat metabolism involves the generation of energy in the form of ATP along with molecules called ketones. Ketosis breath, also referred to as hunger breath, is one of the many symptoms of ketosis.

Why Does Ketosis Cause Halitosis?

Ketosis is basically a crisis reaction that takes place when the glycogen stores in the liver run out. People who embark on a low carb diet for losing weight are most likely to suffer from certain side effects. One such side effect is bad smelling breath. Bad breath from ketosis is caused due to elevated levels of ketones in the bloodstream. The high levels of ketone bodies raises the pH of the blood. In an attempt to bring the pH level down, the body tries to get rid of ketone bodies through lungs and urine, and this causes unpleasant mouth odor. One may also experience symptoms such as headaches, abdominal pain, nausea, fatigue, dizziness or a metallic taste in mouth.

Remedies for Unpleasant Mouth Odor

Since many low carb diets are diuretic in nature, those following such diet plans might end up getting dehydrated. Dehydration could give rise to dry mouth and cause bad smelling breath. Since dry mouth is one of the common causes of unpleasant mouth odor, increasing your water intake would help. You must drink at least 8 glasses of water daily. Since excessive consumption of alcohol and tobacco can lead to dryness of mouth, these must be avoided.

If bad smelling breath has become a cause of serious concern for you, you can also start including carbohydrates to your diet. This might help in bringing the level of ketones down and help in lowering the pH levels of the blood. Since bad mouth odor can be caused due to a variety of reasons, you must try to ascertain the underlying cause. Dental problems such as dental decay, gum diseases, formation of plaque and infections on the tonsils, throat infections, diabetes mellitus, gastrointestinal problems, sinusitis and anemia are some of the conditions that may be responsible for causing an offensive mouth odor. You must find out if you are suffering from any of these conditions.

It's possible that a lack of dental care is responsible for causing bad breath. Therefore, you must take care of your dental health. Brush your teeth and floss regularly. Using a hydrogen peroxide mouthwash will also help. You can also try certain home remedies for treating halitosis. Chewing sugar-free gum, fresh parsley or green cardamom seeds might also prove beneficial. Drinking unsweetened green tea might also prove beneficial.

If you are following a low carb diet plan, you can also use ketosis strips to find out if you are actually suffering from ketosis or not. These strips are readily available in the market and can be used for testing the urine for ketone bodies. If the color of the strips changes to a dark purple, it is indicative of high levels of ketone bodies. You can either include small amounts of carbohydrates to your diet or follow the aforementioned remedies to prevent halitosis.

Bad Breath and Acid Reflux

There are several causes of bad breath like poor oral hygiene, dry mouth which is caused by breathing through mouth, dehydration, sinus infection, respiratory tract infection, smoking, as well as eating pungent foods like garlic, coffee, onion and certain varieties of fish. Most of these causes of bad breath are easily curable, but bad breath from acid reflux is a little more difficult to cure. It is very important to understand the connection between acid reflux and bad breath, if you want to get rid of the latter.


How does Acid Reflux Cause Bad Breath?

Acid reflux or GERD (gastroesophageal reflux disease) is a condition, in which the fluid contents of the stomach flow back or reflux into the esophagus. This occurs when the lower esophageal sphincter, which is a kind of valve between the esophagus and the stomach does not work properly. When the valve does not close tightly, the regurgitated contents of the stomach, generally containing acid and pepsin, an enzyme that starts digestion of protein in the stomach, pushes up into the esophagus, and we can feel the acid reach the back of our throat. It is this, that causes the sensation of heartburn.

The contents of the stomach are in an acidic environment, so that the food ingested can be broken down for digestion. If sufficient time has elapsed since the consumption of food, the stomach contents return into the esophagus, with a repellent smell like in case of vomit, pointing to a link between acid reflux and bad breath. Bacteria and other enzymes also come from the stomach, along with the acid, and contribute to the foul odor. This unpleasant odor reaches the throat and mouth causing bad breath. The problem is compounded when we eat onion, garlic or spicy food. Bad breath due to acid reflux is more difficult to control, as no amount of mint and mouth freshener is of any help. The only way to banish the bad breath due to acid reflux, is to completely get rid of this condition.

When a person is suffering from acid reflux, the contents of the stomach, which are acidic in nature, repeatedly, come in contact with the delicate lining of the esophagus. When this occurs, over a period of time, the lining of the esophagus gets damaged. Due to this continuous contact of the acidic fluid, the tissue lining does not get enough time to heal entirely and dead tissue is produced. This dead tissue accumulates over time and has an unpleasant odor, which in turn results in bad breath.

Cure for Bad Breath from Acid Reflux
One of the ways to cure bad breath from acid reflux, is to make some changes in one's diet. One might not like the idea of giving up on spicy food altogether, but they can, sometimes, cause bad breath as well as acid reflux. If we don't want to completely eliminate these foods from our diet, we should at least try cutting down their consumption. The stomach produces that much acid, as is required to digest food at that moment. If more food is present, more acid is required. So, portion control is very important. If you're having a spicy, juicy piece of steak, just reduce the portion. Another way to prevent acid reflux is to drink sufficient amount of water throughout the day. This aids in the digestion process.

Some other natural cures for bad breath from acid reflux, include consuming orange peel extract, fennel seeds and parsley. Chewing star anise is also said to cure the bad breath. Whatever natural cure you are considering, always seek the advice of a qualified doctor before using it.

One way to check if one is suffering from bad breath is to lick the back of your hand and let it dry for a few minutes and then smell it. If there is an unpleasant odor, then you're suffering from bad breath.

Best Cure for Halitosis

Bad breath, which is medically referred to as halitosis, can surely be a cause of social embarrassment. The offensive odor does make the people one is interacting with quite uncomfortable. The body language of those around you changes and you find them excusing themselves right after you come near them and talk. This is surely a very frustrating situation which can ruin your social life and must be treated soon. Well, before we move on to ways to treat bad breath, let's first find out what causes bad breath.


Causes of Bad Breath

If you don't brush your teeth regularly, you give an open invitation to bacteria. These bacteria act on the food debris stuck in your teeth and cause bad breath. Halitosis is generally classified into transient and chronic halitosis. Once you brush your teeth, the transient bad breath goes away. We generally experience transient bad breath when we wake up in the morning. Consumption of foods such as garlic and onions is also a common cause of transient bad breath. Those who indulge in excessive consumption of alcohol and tobacco are also likely to suffer from bad breath. Dental problems such as dental decay, gum diseases, formation of plaque and infections on the tonsils can also give rise to this problem. An offensive mouth odor could also be attributed to throat infections, diabetes mellitus, gastrointestinal problems, sinusitis and anemia. Those who wear braces are also likely to suffer from halitosis.

Remedies for Bad Breath

How can one get rid of bad breath? Is it curable? Well, for treating bad breath, you need to pay attention to the aspect of dental hygiene. Chronic halitosis is surely a very discomforting situation which ruins your social life, therefore, you must take preventive measures. Make sure that you brush your teeth after every meal. Avoid excessive consumption of onions, garlic and alcohol. At times, bad breath may be caused due to dental problems. If you are suffering from tooth infections, gum problems, plaque or a periodontal disease, consult a dentist soon. Those who wear braces must make sure that they brush their teeth properly. You must floss your teeth and clean your tongue with a tongue cleaner daily. Make sure that you rinse your mouth with a hydrogen peroxide mouthwash.

It has been seen that dryness of mouth can give rise to bad breath, therefore, drink plenty of fluids. Since excessive consumption of alcohol and tobacco can make your mouth dry, these must be avoided. You can also add a pinch of baking soda to a glass of water and use it as a mouthwash. Chewing green cardamom seeds or fresh mint leaves is one of the best halitosis remedy. Fruits such as apples, sweet lime and unripe guava are also helpful in treating bad breath. Drinking tea made from fenugreek seeds is also an effective remedy. For making this tea, add a teaspoon of fenugreek seeds in half a liter of water. Heat it on a low flame for about fifteen minutes. Strain it and drink it twice daily. You can also try another remedy. Add finely chopped sprigs of parsley to two cups of water. Add a pinch of ground cloves to it and put it on a flame. Once it starts boiling, remove it from the flame and let it cool. Strain it and gargle with it daily. If you are suffering from chronic bad breath, you must follow a dental hygiene regimen. If these home remedies don't seem to help and you still find yourself struggling with the problem of chronic bad breath, consult a dentist for the best halitosis cure.

If bad breath is causing you a great deal of embarrassment, you must start paying attention to dental care. Since dental problems and a lack of dental hygiene are mainly responsible for causing bad breath, those suffering from chronic halitosis must consult a dentist immediately.

Arduino JTAG Finder Workshop Tutorial

Step by step
Step 1: Download
zoobab@gierek /home/zoobab/soft [44]$ wget http://zoobab.wikidot.com/local--files/jtag-finder/jtagscan.tar.bz2
--2009-06-08 21:01:08--  http://zoobab.wikidot.com/local--files/jtag-finder/jtagscan.tar.bz2
Resolving zoobab.wikidot.com... 67.228.37.26
Connecting to zoobab.wikidot.com|67.228.37.26|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://zoobab.wdfiles.com/local--files/jtag-finder/jtagscan.tar.bz2 [following]
--2009-06-08 21:01:09--  http://zoobab.wdfiles.com/local--files/jtag-finder/jtagscan.tar.bz2
Resolving zoobab.wdfiles.com... 67.228.37.28
Connecting to zoobab.wdfiles.com|67.228.37.28|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18458 (18K) [application/x-bzip2]
Saving to: `jtagscan.tar.bz2'

100%[================================================================================================================================>] 18,458      35.3K/s   in 0.5s    

2009-06-08 21:01:11 (35.3 KB/s) - `jtagscan.tar.bz2' saved [18458/18458]
Step 2: Untar
zoobab@gierek /home/zoobab/soft [46]$ tar -xvjf jtagscan.tar.bz2
jtagscan/
jtagscan/relocations.avr
jtagscan/jtagscan.glade
jtagscan/avr/
jtagscan/avr/jtagscan-avr.c
jtagscan/avr/Makefile
jtagscan/avr/jtagscan-avr.hex
jtagscan/avr/COPYING
jtagscan/Makefile
jtagscan/TODO
jtagscan/README
jtagscan/COPYING
jtagscan/jtagscan.c
Step 3: Go to jtagscan/avr directory
zoobab@gierek /home/zoobab/soft/jtagscan [49]$ l
total 80
drwxr-xr-x 2 zoobab zoobab 4096 2006-05-31 19:14 avr
-rw-r--r-- 1 zoobab zoobab 18007 2006-05-31 18:47 COPYING
-rw-r--r-- 1 zoobab zoobab 11124 2006-05-31 19:20 jtagscan.c
-rw-r--r-- 1 zoobab zoobab 28527 2006-05-28 20:08 jtagscan.glade
-rw-r--r-- 1 zoobab zoobab 115 2006-05-28 20:35 Makefile
-rw-r--r-- 1 zoobab zoobab 76 2006-05-31 18:46 README
-rw-r--r-- 1 zoobab zoobab 81 2006-05-25 15:14 relocations.avr
-rw-r--r-- 1 zoobab zoobab 686 2006-05-30 08:43 TODO
zoobab@gierek /home/zoobab/soft/jtagscan [50]$ cd avr/
zoobab@gierek /home/zoobab/soft/jtagscan/avr [51]$ l
total 40
-rw-r--r-- 1 zoobab zoobab 18007 2006-05-31 18:47 COPYING
-rw-r--r-- 1 zoobab zoobab 5270 2006-05-31 19:17 jtagscan-avr.c
-rw-r--r-- 1 zoobab zoobab 4530 2006-05-30 22:40 jtagscan-avr.hex
-rw-r--r-- 1 zoobab zoobab 316 2006-05-28 20:37 Makefile
Step 4: Install gcc-avr and avr-libc
zoobab@gierek /home/zoobab/soft/jtagscan/avr [56]$ sudo apt-get install avr-libc gcc-avr
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
task-c-devel gcc-doc gcc-4.2
The following NEW packages will be installed:
avr-libc gcc-avr
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/8906kB of archives.
After this operation, 32.7MB of additional disk space will be used.
Selecting previously deselected package gcc-avr.
(Reading database ... 118728 files and directories currently installed.)
Unpacking gcc-avr (from .../gcc-avr_1%3a4.3.2-1_i386.deb) ...
Selecting previously deselected package avr-libc.
Unpacking avr-libc (from .../avr-libc_1%3a1.6.2.cvs20080610-2_all.deb) ...
Setting up gcc-avr (1:4.3.2-1) ...
Setting up avr-libc (1:1.6.2.cvs20080610-2) ...
Step 5: Make
zoobab@gierek /home/zoobab/soft/jtagscan/avr [57]$ make
avr-gcc -Wall -O3 -o jtagscan-avr -mmcu=atmega32 jtagscan-avr.c
avr-objdump -h -S jtagscan-avr > jtagscan-avr.lst
avr-objcopy -j .text -j .data -O ihex jtagscan-avr jtagscan-avr.hex
Step 6: Port it from ATMega32 to ATMega328
/***************************************************************************
* jtagscan-avr.c
*
* Wed May 31 18:57:23 2006
* Copyright 2006 Benedikt 'Hunz' Heinz
* jtagscan at hunz.org
* $Id: jtagscan-avr.c,v 1.1 2006/05/31 17:17:50 hunz Exp $
****************************************************************************/

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#include
#include

void uart_init(void) {
UBRR0L = UBRR0H = UCSR0A = 0;
UCSR0B = ((1<>3] |= (1<<(pins[0]&7)); iocfg[pins[1]>>3] |= (1<<(pins[1]&7)); iocfg[pins[2]>>3] |= (1<<(pins[2]&7)); GPIOR1 = iocfg[0]; DDRB = iocfg[1]; DDRC = iocfg[2]; DDRD = iocfg[3]; GPIOR2 = iocfg[4]; PORTB = iocfg[5]; PORTC = iocfg[6]; PORTD = iocfg[7]; } uint8_t shifts[32], matches[32]; #define SHIFT_TMS 0 #define SHIFT_TDI 0x10 void shift(uint8_t data, uint8_t len) { uint8_t cnt, tck_port,tck_pin,port,pin; uint8_t delay, inp=0, count_matches = len & SHIFT_TDI; if(len&SHIFT_TDI) { port=pins[TDI_PIN]>>3;
pin=pins[TDI_PIN]&7;
}
else {
port=pins[TMS_PIN]>>3;
pin=pins[TMS_PIN]&7;
}

tck_port=pins[TCK_PIN]>>3;
tck_pin=pins[TCK_PIN]&7;

len&=0x0f;

/* shift */
while(len--) {

/* TCK=0 */
if(tck_port == 0)
GPIOR1 &= ~(1<>3) == 0)
inp=GPIOR2;
else if((cnt>>3) == 1)
inp=PINB;
else if((cnt>>3) == 2)
inp=PINC;
else
inp=PIND;
}

shifts[cnt]>>=1;
shifts[cnt]|= (inp&1)<<7 data-blogger-escaped-inp="">>=1;

//if(cnt == pins[TDI_PIN])
//uart_tx(shifts[cnt]);

if( (shifts[cnt] == cfg[CFG_TDIBITS]) && (matches[cnt]<255 data-blogger-escaped-0="" data-blogger-escaped-1="" data-blogger-escaped-2="" data-blogger-escaped-cnt="" data-blogger-escaped-count_matches="" data-blogger-escaped-data="" data-blogger-escaped-delay="" data-blogger-escaped-else="" data-blogger-escaped-gpior1="" data-blogger-escaped-if="" data-blogger-escaped-matches="" data-blogger-escaped-portb="" data-blogger-escaped-portc="" data-blogger-escaped-portd="" data-blogger-escaped-tck="1" data-blogger-escaped-tck_pin="" data-blogger-escaped-tck_port="=">>= 1;
}

}

void scan() {
uint8_t cnt;

for(cnt=0;cnt<32 data-blogger-escaped-0x7f="" data-blogger-escaped-back="" data-blogger-escaped-cfg="" data-blogger-escaped-cnt="" data-blogger-escaped-for="" data-blogger-escaped-get="" data-blogger-escaped-if="" data-blogger-escaped-int="" data-blogger-escaped-into="" data-blogger-escaped-ir="" data-blogger-escaped-jtscan="" data-blogger-escaped-main="" data-blogger-escaped-matches="" data-blogger-escaped-pins="" data-blogger-escaped-reset="" data-blogger-escaped-results="" data-blogger-escaped-send="" data-blogger-escaped-shift="" data-blogger-escaped-shifts="" data-blogger-escaped-state="" data-blogger-escaped-the="" data-blogger-escaped-uart_init="" data-blogger-escaped-uart_tx="" data-blogger-escaped-uint8_t="" data-blogger-escaped-val="" data-blogger-escaped-void="" data-blogger-escaped-while="" data-blogger-escaped-x1f="" data-blogger-escaped-x5f="" data-blogger-escaped-x80="">> 2);
pins[2] = uart_rcv();

pins[1] = (val & 3) << 3; pins[1] |= (pins[2] >> 5);

pins[2] &= 0x1f;

set_ios();

scan();
}

/* config */
else if(val == 0x40) {

for(val=0; val < CFG_LEN; val++) cfg[val] = uart_rcv(); uart_tx(0x40); } else if(val == 0x00) { GPIOR1 = uart_rcv(); DDRB = uart_rcv(); DDRC = uart_rcv(); DDRD = uart_rcv(); uart_tx(0); } else if(val == 0x01) { GPIOR2 = uart_rcv(); PORTB = uart_rcv(); PORTC = uart_rcv(); PORTD = uart_rcv(); uart_tx(1); } else if(val == 0x02) { uart_tx(GPIOR0); uart_tx(PINB); uart_tx(PINC); uart_tx(PIND); } /* TODO: TMS / TDI / get TDO / direct IO */ } /* loop */ return 0; }
zoobab@gierek /home/zoobab/soft/jtagscan/avr [59]$ l
total 76
-rw-r--r-- 1 zoobab zoobab 18007 2006-05-31 18:47 COPYING
-rwxr-xr-x 1 zoobab zoobab 5823 2009-06-08 21:05 jtagscan-avr
-rw-r--r-- 1 zoobab zoobab 5270 2006-05-31 19:17 jtagscan-avr.c
-rw-r--r-- 1 zoobab zoobab 4403 2009-06-08 21:05 jtagscan-avr.hex
-rw-r--r-- 1 zoobab zoobab 28373 2009-06-08 21:05 jtagscan-avr.lst
-rw-r--r-- 1 zoobab zoobab 316 2006-05-28 20:37 Makefile
zoobab@gierek /home/zoobab/soft/jtagscan/avr [60]$ file ./jtagscan-avr
./jtagscan-avr: ELF 32-bit LSB executable, Atmel AVR 8-bit, version 1 (SYSV), statically linked, not stripped
Step 7: install libglade2-dev
zoobab@gierek /home/zoobab/soft/jtagscan [34]$ sudo apt-get install libglade2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
glade glade-gnome
The following NEW packages will be installed:
libglade2-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/85.8kB of archives.
After this operation, 545kB of additional disk space will be used.
Selecting previously deselected package libglade2-dev.
(Reading database ... 124542 files and directories currently installed.)
Unpacking libglade2-dev (from .../libglade2-dev_1%3a2.6.4-1_i386.deb) ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up libglade2-dev (1:2.6.4-1) ...
Step 9: Flash the Arduino with avrdude

You need avrdude version 5.6 at the minimum if you have an Arduino with an ATmega328p.
root@gierek /home/zoobab/soft/jtagscan/avr [23]# avrdude -p m328p -P /dev/ttyUSB0 -c stk500v1 -b 57600 -F -u -U flash:w:jtagscan-avr.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "jtagscan-avr.hex"
avrdude: input file jtagscan-avr.hex auto detected as Intel Hex
avrdude: writing flash (1742 bytes):

Writing | ################################################## | 100% 0.87s

avrdude: 1742 bytes of flash written
avrdude: verifying flash memory against jtagscan-avr.hex:
avrdude: load data flash data from input file jtagscan-avr.hex:
avrdude: input file jtagscan-avr.hex auto detected as Intel Hex
avrdude: input file jtagscan-avr.hex contains 1742 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.74s

avrdude: verifying ...
avrdude: 1742 bytes of flash verified

avrdude done. Thank you.
Arduinull

LeKernel rewrote the whole thing with Arduinull (arduinull.c, arduinull.hex, Makefile). You can access the terminal of the application with GtkTerm or minicom over /dev/ttyUSB0. You can connect the 4 pins of the arduino analog connector (the 6 pins) and do not forget to connect the ground with one pin from the neighboor connector. Put some resistors (value XXX ohms) between the pins of the board you think they might be JTAG and the arduino pins. More screenshots coming soon.

Search JTAG pinouts for PANTECH UM190 modem

On opening the modem is easy to detect a fairly large number of contact pads.

Appearance modem board
Looking closely to them at once can be dropped four of them, the two joined together and the two are connected to “ground”.

Schematically sketched the location of contacts
Turn on the modem we explain the presence of findings ps_hold and or reset. When you tap a contact terminal TEST restarts the modem.

Determining the ps_hold and reset method of "spear"
In this case, the modem reboots when you touch just one output, usually two.

Marked on the paper output resets the modem
You can now soldered to the remaining contacts modem and start auto search.

You can now soldered to the remaining contacts modem and start auto search.
Trying to find pinout when the modem was not successful. Most likely a modem software disables the JTAG interface, so you should try to find pinout before the modem firmware will disable the JTAG.

At the time of withdrawal and the power supply to the modem client program can generate false detection alert pinouts, it is normal in mind the conclusions of the instability of states at the moment when the modem. In this case, false messages look like this:

False pinout at the time of power off
False pinout at the time of power on
The number of false piouts may vary in this case, there were about 4-5.

While the modem continues to load, and at this point is the detection of the correct pinouts, as judged by read by the CPU ID CODE.
Correct pinout defined at boot time the modem


Sketched the location of the findings can be confirmed whether the output device found RTCK or number 1 was assigned to him by default. To do so, resolder SPT Board findings to the modem so that the number corresponding to the output pin TDO was the maximum (in our case it was and is the seventh number of the seven involved findings), and display a contact number for this RTCK was greater than 1.

Correct pinout including contact RTCK
Note the remaining data in the paper. Work to determine the pinouts over.

The final version of pinouts

JTAG pinout detector

JTAG is a standard for device testing ports found on the PCBs of many devices. Finding the pads and pinouts for these ports allows hackers to gain access to the embedded systems, their on-board debugging tools, etc., effectively providing a back door. But determining the JTAG pinouts can be a time-consuming and frustrating process.


To help in this, a German hardware hacker named Hunz has created the JTAG Finder, an automatic JTAG pin-out detector, using an 8bit AVR ATmega16/32L microcontroller. Details of the project, and a call for others to get involved, can be found on the JTAG Finder wiki. He also wants to build a JTAG Found database of known device pinouts.

JTAG Finder – [via] Link

Apr 3, 2013

5 Foods High in Omega-3

One of the biggest buzzwords in healthy eating is omega-3. You can see it featured on cereal boxes and in TV commercials. What is omega-3, and why is it important? The answer is simple: It’s one type of fat you can’t live without.


Omega-3 fatty acids are a category of polyunsaturated fats that help maintain the cell membranes for every cell in your body. Like other fatty acids, omega-3 is a collection of nutrients you consume with your food. You can get the omega-3 you need in your diet from certain nuts, fruits, vegetables and coldwater fish. Research has shown that omega-3s can also help reduce the symptoms of high blood pressure, depression, ADHD and joint problems.

Omega-6 fatty acids are also essential polyunsaturated fats. They help support healthy skin and the ability of the blood to clot. You can get your omega-6s in eggs, chicken and plant oil products like vegetable oil, corn oil and margarine. Too many omega-6s, though, can increase your chance of heart attack or stroke. You can reduce that negative impact by balancing the omega-6s with a significant amount of omega-3s.

The latest research suggests that a healthy ratio between these fatty acids is one part omega-3s for every two to four parts omega-6s. The National Institutes of Health say that the typical American diet is a ratio of about 1 part omega-3s to 10 parts omega-6s. The significant difference in these ratios (1:2-1:4 and 1:10) reveals one possible reason heart disease is so prevalent in the United States.

Despite these compelling ratios, the research is still going on to find a recommended daily allowance value for omega-3s. Researchers and physicians seem to vary in their own recommendations. These recommendations cite specific omega-3s eicosapentaenoic acid (EPA), docosahexaenoic acid (DHA) and alpha-linoleic acid (ALA). The World Health Organization (WHO) recommends 300 to 500 milligrams daily of EPA and DHA, and 800 to 1,100 milligrams daily of ALA.

Omega-3 fatty acids are often associated with fish, but the best source may surprise you. It is important to know that there are other sources of omega-3 besides fish. This article covers the top five food sources that are highest in omega-3.

Winter Squash

Before the Americas were settled by Europeans, Native Americans depended on squash among other nutritional foods in their diet. Today, squash and its seeds are still an integral part of Central and South American cuisines, and countries around the world are following their lead. With nutrition research revealing that winter squash has a lot to offer a healthy diet, it’s sure to be a popular choice for years to come.


Summer squash, like zucchini and yellow squash, are soft and light, and they’re a popular vegetable during the summer growing season. Winter squash is denser and drier with a nutty flavor that we’ve come to associate with autumn and winter dishes. That density corresponds with a higher concentration of nutrients. Some varieties of winter squash are pumpkins, butternut squash, acorn squash, spaghetti squash and the visually unique turban squash.

A cup (205 grams) of spaghetti squash, boiled or baked, has almost 121 milligrams total omega-3 fatty acids, or 12 percent of today’s daily recommendations. It’s one of the higher sources among the winter squash, with acorn coming in at 76 milligrams and butternut at 49 milligrams. The list of vitamins and minerals goes on for winter squash, too, making it an excellent addition to any meal.

You can find hundreds of recipes online featuring one or more varieties of winter squash. Use caution when working with a fresh winter squash, however: It’s very firm and challenging to cut through. Be prepared with a sturdy cutting surface and a large sharp knife, and take care when applying the pressure needed to cut it. Several experienced cooks have posted their cutting tips online, including videos on YouTube.

Soybeans and Tofu

Chinese farmers first planted and harvested soybeans more than 3,000 years ago. It grew in use throughout Southeast Asia over the centuries that followed. Even today, we associate many soy products like soy sauce, bean sprouts and tofu with Asian cuisine. However, the soybean made its way around the world. In fact, the North Carolina Soybean Producers Association says today’s largest producers of soybeans are the United States, Brazil and Argentina.


Soybeans are earning a wonder-crop status. Products you might use that are made from soybeans include commercially prepared foods, livestock feed and composites for industrial use. Adding to its long list of accolades is soybean’s nutritional value as a food, including as a source of omega-3s.

A cup of edamame (boiled soybeans) has almost 1,029 milligrams total omega-3 fatty acids, or almost all the omega-3s you need daily. Though the edamame has more than 7,600 milligrams of omega-6s, exceeding the recommended 1:2-1:4 ratio, it’s very low in cholesterol and packs a punch with its vitamins and minerals. A serving of edamame gives you 41 percent of your daily recommended allowance of fiber, 49 percent of iron and 18 percent of calcium. Plus, soybeans are an excellent source of protein, Vitamin K and folate.

Besides edamame and tofu, there are other ways to get the benefits of soy in your diet. One way is to substitute some foods you’d normally eat with soy alternatives. For example, you could replace dairy milk with soy milk, or replace potato chips with soy chips. Another way to enjoy soybeans is as a dry-roasted snack called soy nuts. Soy nuts are plain, salted or flavored, and you can often find them with nut snacks at larger grocery stores and niche grocers that specialize in healthy foods.

Walnuts

There are many varieties of walnut trees around the world. The three most common walnut varieties in the United States are the butternut (white walnut), the Carpathian English walnut and the black walnut. Though all three varieties produce tasty nuts, the black walnut tree is the most popular for both its nuts and its wood.


Among nuts, black walnuts are some of the most nutritious. A cup of chopped walnuts has 2,508 milligrams total omega-3 fatty acids. Like soybeans, walnuts are a good daily source of fiber (34 percent), protein (60 percent) and iron (22 percent), and they’re low in cholesterol. Also like soybeans, the ratio between omega-6s and 3s exceeds the recommended 1:2-1:4 ratio. So, with walnuts, as with any other food, consider all the nutritional pros and cons when working them into your diet.

Besides their overall nutritional benefits, another thing that proves walnuts are a great omega-3 choice is their convenience. Just an ounce of walnuts contains 562 milligrams of omega-3s, or half the amount you need in a whole day. You can drop that in a snack bag to take with you or use it to top a salad or yogurt.

If you’re trying to stay healthy while adding omega-3s, choose your walnut sources carefully. Commercially packaged foods and recipes that include walnuts range from healthy salads and trail mixes to delicious high-calorie desserts. Don’t let the omega-3 hype keep you from looking at all the other important health considerations for each food.

Salmon and Other Fish

One of the most popular sources of omega-3s, and one of the easiest to add to your diet, is fresh fish. Salmon is perhaps the most popular and versatile of these fish, and one of the highest in omega-3s. Sardines, halibut and herring are also great omega-3 sources. Shellfish like shrimp, crab, scallops and oysters also put up some impressive omega-3 numbers.


A 3-ounce serving of raw Chinook salmon has 1,991 milligrams of omega-3 fatty acids. That’s well above even the highest recommended amounts. Plus, unlike soybeans and tofu, the omega-3s far outnumber the omega-6s (only 104 milligrams). This means you can add salmon to your diet not only as a source of omega-3s, but also to help balance the omega-6s you’re already eating. This same serving of salmon is a good source of protein plus several vitamins and minerals.

Are fish oil supplements a good substitute?

Omega-3 recommendations often feature 2 to 3 servings of cold-water fish per week, especially salmon. Fish oil supplements are recommended only as supplements for those who find it difficult to meet that recommendation. Fish oil supplements are often reported to irritate your stomach and leave a fishy aftertaste. If you take a fish oil supplement, reduce these unpleasant effects by taking it with a meal. There have been recent controversies about whether fish oil supplements have dangerous amounts of other ingredients like polychlorinated biphenyl (PCB).

When eating salmon for its omega-3 benefits, be cautious of how you cook it. The omega-3s are easily damaged by oxygen, light and heat. That damage affects salmon’s nutritional benefits. Eating the salmon fresh-sliced at a sushi bar is the best way to avoid omega-3 damage. If you’re not a fan of raw fish, though, bake or broil the fish instead of frying it to limit the heat exposure.

Flax Seed

By far, your best omega-3 source is flax seed, also called linseed. It’s derived from the flax plant, which some believe originated in Egypt where ancient Egyptians used it for food and medicine. Historically, it’s been used as a laxative. Today’s research, though, reveals it can be a great way to fight cholesterol and heart disease.


A tablespoon of ground flax seed has 1,597 milligrams of omega-3s, and the same amount of flax seed oil has a whopping 7,196 milligrams. That’s seven times today’s popular daily recommendations. Like salmon, flax seed and flax seed oil have far fewer omega-6s, making them a great omega-3 source to balance your omega-6 intake. Flax seed features the omega-3 alpha-linolenic acid (ALA). This is different from the EPA and DHA omega-3s found in fish. At the beginning of this article, you read that the World Health Organization recommended 300 to 500 milligrams of EPA and DHA to 800 to 1,100 milligrams of ALA. Your body can convert some ALA into EPA and DHA, but you’d need to take large amounts of flax seed for it to be a substitute for the omega-3s in fish.

Like salmon, the omega-3s in flax seed can be damaged with heat and oxygen. You can afford some damage, since flax seed is so high in omega-3s, but you should still minimize that damage as much as possible. To protect the omega-3s in flax seed oil, keep it in dark glass containers with a tight lid, and place it in the refrigerator or freezer. Also, avoid heating flax seed oil on the stove. Instead, add it to non-heated recipes like salad dressing, and toss it over food only after cooking it.

Apr 1, 2013

How-To Retrieve Huawei BM622 VoIP Password

First of all, login to the Huawei Echolife BM622 4G WiMAX wireless broadband modem router graphical user interface (gui) as usual open your favorite web browser e.g. IE, Safari, Firefox Seamonkey or any other similar browser will do, on the address bar type http://192.168.1.1 once login page appear your user account must be admin, used any password generator to provide your password.


On the left side menu click Basic to drop down the Sub-menu there you can see the VoIP setting as shown screenshot above, the SIP ID, VoIP username and password but it is mask. To be able for you to see the VoIP password in the plain text you can copy paste this link http://192.168.1.1/html/voip/sipbasic.asp on to your browser address bar to make your life easier this will result the source code in html on a new window.


This is a sample once you have clicked the link it will give you an output, now you can check the source code, to see the password in plain text, ctrl-f to search for SIP the (number) you will see now the (numeric-password).


This is how the Huawei Echolife BM622 4G WiMAX wireless broadband modem router once the VoIP username and password is valid it shows the status of the SIP services and the status. This tutorial of retrieving of VoIP password may also be applicable to other Huawei CPE that has VoIP features such as BM622i, BM622m, BM625 and others that has FXS port for plain old telephone system (POTS).

Mar 31, 2013

How Maguindanao and Cotabato rulers helped Sulu win Sabah

The Sultanate of Maguindanao and the kingdom of Buayan in upper Cotabato played key roles in ending a civil war in Brunei in the 17th century that resulted in the Sulu sultanate being rewarded a huge swath of territory called Sabah.

Reinforcements from the sultanates in Mindanao tipped the balance in favor of the Brunei leader, who had sought the help of the Sulu sultan.


AN IRANUN sea raider, attired in cotton-quilted vest and armed with a spear, kris and “kampilan” decorated with human hair. The Iranuns were subjects of Sultan Kudarat. PHOTO BY James Francis Warren, “Iranun and Balangingi: Globalization, Maritime Raiding and the Birth of Ethnicity.” 2002

The royal houses of Brunei and Sulu had kinship ties even before the civil war.

Intermarriages

One can begin with the sister of Brunei Sultan Sheif ur-Rijal, the seventh sultan who ascended the throne in 1578, getting married to the Sulu ruler.

Then there was the report of Spanish chronicler Antonio Pigaffeta that Brunei’s Rajah Siripada was married to a daughter of the king of Sulu.

Citing the selesilah (genealogy) of Brunei, Muslim-Filipino scholar Cesar Adib Majul said that Sultan Bulkeiah, who took Sulu Princess Leila Men Chanei as his wife, “was likely the sultan titled Rajah Siripada when Pigaffeta arrived in Brunei in 1521.”

One of the royal couple’s sons whose title was Pangiran Shahbander (Prince of the City) left Brunei “because he did not rank with the other children of his father.” The prince “eventually became Batara Rajah, that is, the ruler of Sulu,” Majul said.

Closely similar to the title Batara Rajah is Batarasa or Batara Shah Tengah, identified in the Sulu genealogy as the ruler who would be the immediate predecessor of Sultan Mawallil Wasit Bungso, who assumed the sultanate in about 1610.

Sulu sultan’s 2 daughters

Sultan Wasit, also known as Rajah Bungso, had two daughters—one was married to Sultan Muhammad Dipatuan Kudarat of Maguindanao and the other to Rajah Balatamay, king of Buayan in Upriver Cotabato.

According to Majul, Sultan Kudarat (reign: 1619-1671) was the contemporary of both Bungso and his son, Sultan Salah ud-din Bakhtiar, the Sulu ruler during the 10-year Brunei civil war, which started in 1662 or earlier.

The relationship between the Sulu and Maguindanao Sultanates can be easily appreciated in a diagram in Majul’s book “Muslims in the Philippines,” which partly integrates the genealogies of Sulu and Buayan into that of Maguindanao, as traced from cases of intermarriage.

Koxinga threat

Of great significance to political developments in the south was the May 1662 arrival in Manila of a Chinese emissary in the company of Dominican Vittorio Ricci from Formosa. The emissary was carrying a letter from Koxinga, who earlier seized Formosa from the Dutch. Koxinga said he would attack Manila if the Spanish authorities would not pay him tribute.

Under threat of invasion by Koxinga’s thousands of ships and men, the Spanish government in Manila made hasty efforts to build up its defenses. On Nov. 8 of the same year, Spanish Governor Fernando de Bobadilla of Zamboanga was instructed to leave the fort to Christian Samals and send its forces back to Manila.

“The situation was such that it appeared imperative to recall the garrisons assigned to various parts of the Philippines and the Moluccas, and concentrate them on Manila,” Majul said.

Brothers-in-law

At this time, some Sulu datus were raiding islands in the Visayas while Sultan Bakhtiar tried to convince his brothers-in-law Sultan Kudarat and Rajah Balatamay to join him in recapturing the Zamboanga fort.

Kudarat refused to cooperate, arguing that the fort would fall anyway into his hands by default sans the Spanish forces.

Trade with Dutch

To Kudarat, reviving trade ties with the Dutch in Borneo was of bigger interest to the sultanates in such a period of much-needed respite from decades of war after he suffered defeat in Lamitan, Basilan in 1637 and the Sulu Sultan’s defeat in Jolo in 1638 at the hands of the Spaniards under Sebastian Hurtado de Corcuera.

Kudarat prevailed on Bakhtiar not to attack the Zamboanga fort.

Brunei sultan’s call for help

It is said that Brunei’s Sultan Muaddin wrote the Sultan of Sulu requesting military assistance and promising that “from the North to as far West as Kimani would belong to Sulu.” (Hugh Low, “History of the Sultans of Brunei,” 1880.)


IRANUN-SAMAL weapons. PHOTO BY James Francis Warren, “Iranun and Balangingi.” 2002

After the 1662 killing of Muhammed Ali, the 12th sultan of Brunei, by Bendahara Abdul Mubin and his followers, Mubin assumed the sultanate. But Mubin was denounced by his cousin Pangiran Bungso as a “usurper.” Pangiran Bungso was proclaimed Sultan Muaddin.

Famine, trade blockade

Muaddin was under pressure to resolve the conflict with Mubin as there was famine in Brunei and trading boats were being blocked by those holding Pulao Chermin, the island base of Mubin. The island was close to the mouth of the river in Brunei, according to Majul.

In that sense, clearing the trading routes was a common interest, if not of greater significance, to the sultanates of Sulu and Maguindanao than the promised reward to the Sulu Sultanate.

Sultan Kudarat’s letter

Maguindanao’s free trading with other islands in what is now Malaysia once met “the wall of Dutch commercial monopoly.” To illustrate this, wrote Majul, Sultan Kudarat on April 3, 1661 sent a letter to Dutch Governor Hustart in Amboina, asking that his vessels be allowed to frequent the island for trade.

A Dutch hand in the trade route blockade was not entirely improbable, because there was a time, according to Majul, when it became difficult for Maguindanao to export rice, since it appeared that the Dutch did not approve of it within the sphere of their influence.

Kudarat managed to revive Maguindanao’s economic relations with the Dutch on a promise that the sultanate would not engage with other Europeans in wax trading.

Moro warriors

Lawyer-historian Datu Mama S. Dalandag said there was a confluence of Iranuns under Kudarat, hundreds of warriors from Cotabato upriver under Balatamay and the Sulu followers of Bakhtiar who dealt with those blocking the sea trade lane at Pulao Chermin.

[Dalandag is the modern-day author of the Buayan kingdom tarsila (genealogy) and former dean of the law school at Notre Dame University in Cotabato.]

Kudarat left Bakhtiar and Balatamay with some 900 warriors and proceeded toward the boundary of the north and south Borneo, effectively keeping at bay the peril of the conflict spilling over to a region where the Sultanate of Ternate shared influence with the Dutch.

A Brunei selesilah version that the foreign forces merely stood by and watched didn’t seem to be entirely baseless.

Under Sulu command

But by Dalandag’s reckoning, Rajah Balatamay joined his brother-in-law, Sultan Bakhtiar, and at times, the joint forces of Sulu, Cotabato and Maguindanao were placed under Bakhtiar’s command in the battle that suppressed the group of Mubin.

Traditionalists believe that no sultan would have decided to do the rescue just because of a promised material reward. Far from personal interest, Muslim leaders would usually make decisions on the basis of greater public interest under the doctrine of istislah (literally, deemed proper) in Muslim jurisprudence.

The khutba salawat (prayer for the Prophet and his family, including the sultans who are believed to be his descendants) records the personal attributes and characters of the sultans, who were endowed with prudence and knowledge, including sharia (law) and fiqh (jurisprudence), according to this traditional source.

For instance, Sultan Kudarat’s decision to revive trading activities with another European power, in the absence of the Spanish forces that were recalled to Manila’s defense against the Koxingan threat, was a more practicable option to the sultanates than waging war against local converts to Christianity in order to retake their former subjects from the Spaniards.

Iranun in Borneo

Many of Kudarat’s Iranun warriors stayed behind after the civil war in a settlement ceded to Maguindanao by the Sultanate of Ternate in grateful appreciation of his efforts in helping prevent the spread of the family conflict to south Borneo.

Evidence that supports this version is the presence of Iranun-speaking people in some present-day Indonesian and Malaysian territories in Borneo.

It is also probable that, instead of directly saying that a civil war had erupted from the ruling family’s feud, Brunei Sultan Muaddin may have partly misinformed the Sulu Sultan that a mutinous force, backed by a restive generation of settlers, was adversely affecting common economic interests in the region.


A “LANONG” (“joanga”) is an Iranun warship of the late 18th century with three banks of oars under full sail. At least 30 meters long, it was provided with large bamboo outriggers and rowed by more than 190 men. PHOTO BY James Francis Warren, “Pirates, Prostitutes and Pullers.” 2009

Knowing that he would be liable for violating the Muslim law with a half-truth, which led to the involvement of more parties in the bloodshed, Sultan Muaddin had to make the offer to recompense the Sultanate of Sulu.

Stewardship

Gov. Mujiv S. Hataman of the Autonomous Region in Muslim Mindanao said there was no doubt that Sabah belonged to the Sultanate of Sulu.

Hataman, however, was quick to point out that the Sultanate of Brunei under Muaddin ceded the region to the Sulu sultanate and not to the Sultan of Sulu, “because there is no absolute land ownership in Islam; only stewardship.”

Hataman’s wife, Princess Djhalia Turabin-Hataman, would be an heiress under Muslim law from the genealogical continuity of the 1939 Macaskie Decision (Kiram-Overbeck Lease of 1878).

Second Mawallil Wassit

In an abbreviated genealogy, there appears a second Mawallil Wasit, father of Datu Ponjongan and Sultan Ismael Kiram, among others.

It is said that the latter-day Wasit principally initiated in 1936 the question of hereditary rights for the family of the sultan before the Sabah High Tribunal of the Malay Federation under the British Commonwealth. The 1939 Makaskie Decision names the second Wasit’s descendants, among them Sultan Ismael Kiram and Datu Ponjongan, as heirs.

However, on Majul’s list of the succession of Sulu sultans as narrated in the khutba salawat, Sultan Nasiruddin II appears to be the 10th sultan before Pangiran Salah ud-Din Bakhtiar contested the rule of his father and became sultan in 1650, after the death of his brother Pangiran Sarikula.

Sarikula briefly held the throne before it reverted back to their father (Wasit Bungso). A joint-rule might be more appropriate for Sarikula and his father, according to Majul.

It is entirely plausible that Nasir ud-Din II refers to no less than Sultan Kudarat of Maguindanao, according to Majul. If this has to be relied on, Wassit Bungso in old age could have anointed his son-in-law (Kudarat) as the sultan emeritus, in his place. This was probably to provide the rebellious son with much-needed guidance in leadership and prudence in running the affairs of the state.

But why would Kudarat influence and prevail over the Sulu Sultan’s political plans in light of the political developments in 1662?

Sultan Kudarat’s prestige “was such that even in Sulu, he was respected to the extent of actually influencing its internal affairs,” Majul said.

Most powerful ruler

Majul wrote: “Kudarat was also titled Nasir ud-Din and around the 1650s had become the most powerful Muslim ruler in the Philippine archipelago.

“His declaration of jihad around this time could have endeared him so much to the ulama [learned men particularly in religious affairs] of different Muslim sultanates, including the Moluccas that they could have included him in their prayers.

“After all, there was heightened consciousness of Islam during this time that transcended regional and dynastic loyalties. Sultan Kudarat appeared to have been the Muslim ruler who was best able to hold his ground against the Spaniards ….”

The first Muslim Sultana, Pangian Ampay (Sultana Nur ul-Azam on Alexander Dalrymple’s list), was the daughter of Kudarat’s second cousin, Rajah Balatamay of Cotabato, by the daughter of Sultan Mawallil Wasit Bungso.

Nash Maulana, a former correspondent of Inquirer Mindanao, is the director of the Bureau of Public Information of the Autonomous Region in Muslim Mindanao.

Mar 30, 2013

Huawei BM622i MAC Change Package Date 2011

Another tricks and tips on how-to DIY (do-it-yourself) Huawei BM622i package date 2011 access admin privilege gui (graphical user interface) setting and MAC address manual or automatic configuration.

First of course open any of your favorite web browser on the address bar type http://192.168.254.1, be sure your PC is in the same Subnet IP address otherwise if the DHCP of the Huawei BM622i  fail you will not see the login page and you should set it manually.


The Huawei Echolife model BM622i 4G WiMAX wireless modem router firmware package dated 2011 is more secured than the previous old 2010 firmware and it has some differences such as the Username and Password. On 2010 firmware the default Username and Password is "user" where as for 2011 is "0SlO051O".


Now, we are going to open the upgrade utility software from Telco wireless broadband internet service broadband so that the telnet port 23 of the Huawei BM622 will be open or enable during this time of processing only.

Next, on the PC we are going to open telnet utility just click Start>Run then type telnet 192.168.254.1 and press Enter. Once the telnet utility is open you may login with the following:

Username: Firefly
Password: $P4mb1h1r4N4m4nT0!!


Then, just follow this simple step copy and paste to avoid error

ATP>xiugai serialnum 500807778001023836 

This will be our Master Serial that we are going to be use to be able to gain the Admin privilege setting, a screenshot above for your reference.

Next is DIY on how-to manually change the MAC address.

ATP> xiugai macdizhi 00:25:68:9C:45:2A

Then,

ATP>diag reboot

Note: On this part we are going to use the command "diag restore default"

After the Huawei BM622i reboot type http://192.168.254.1 on the address bar web browser to login using the "admin" account with password "FG8S_9Sc16tnklTPjn1wfA" we have just generated from the previous MAC address 00:25:68:9C:45:2A from password generator.


As you can see from the screenshot above we are now able to login to the admin privilege setting and we may now able to configure it what we desire to the 4G WiMAX wireless broadband modem router.


No more config download and upload on the interface.

For educational purposes to fully test this tips and tricks procedures below may have to be followed:

1. You must have a valid or working MAC address just barrow from friends/neighbor/relatives.

2. You can use Wimaxtool by SyntaxError or any PassGen similar to this function.

3. Login using the Master Password

4. Upon successfully login Wimax>Security

5. On NAI here we will be placing our valid or working MAC address make sure the pattern is correct.

6. On User ID and the User Password we be placing the generated password of the working MAC address.

7. Click Apply.

8 .Change again the MAC address with the working MAC by using the software utility for upgrade to open the telnet of the Huawei BM622.

ATP> xiugai macdizhi XX:XX:XX:XX:XX:XX (replace all xx with the working or valid MAC)

ATP>diag reboot

Note: We are not going to use the command "diag restore default" so the it will not reset our setting on the security settings.

9. Don't forget to change the serial.

Script for Changing Mac and Serial. Copy to notepad and save as .vbs or change the file name from .txt to . vbs
Set cloner = CreateObject("WScript.Shell")
cloner.run"cmd"
WScript.Sleep 2000

cloner.SendKeys"telnet 192.168.254.1"
cloner.SendKeys("{Enter}")
WScript.Sleep 2000

cloner.SendKeys"Firefly"
cloner.SendKeys("{Enter}")
WScript.Sleep 2000

cloner.SendKeys"$P4mb1h1r4N4m4nT0!!"
cloner.SendKeys("{Enter}")
WScript.Sleep 2000

cloner.SendKeys"xiugai serialnum 500807778001023836"
cloner.SendKeys("{Enter}")
WScript.Sleep 2000

cloner.SendKeys"xiugai macdizhi 00:25:68:9C:45:2A"
cloner.SendKeys("{Enter}")
WScript.Sleep 7000

cloner.SendKeys"diag reboot"
cloner.SendKeys("{Enter}")
WScript.Sleep 5000

cloner.SendKeys("{Enter}")
WScript.Sleep 30000

cloner.SendKeys"exit"
cloner.SendKeys("{Enter}")
WScript.Sleep 45000

Sabah as the last gold coin

The last sultan of Sulu had been unable to sire an heir. In his long reign of power over an archipelago that had been feared and envied in the region, he had more than 100 women who tried but failed to bear him a child that might have changed the course of his people’s destiny.

Jamalul Kiram’s death in June, 1936, marked the downfall of a kingdom, and other political events – American colonial rule and the emergence of a Philippine Commonwealth – precipitated the end of a glorious era as it was known. From then on the genealogy that was to predict succession went haywire.

His favorite and equally powerful niece, the Princess Piandao, could have ruled if women had been allowed, thus ensuing a huge palace intrigue over a power play among the royal families that divided the throne. That story has long been buried in the shrubs of Maimbung on Sulu island, the road to which, in the present-day insurgency, has been notorious for banditry.

It’s there, the broken and somber traces of the "Astana," the specter of an empire that could have remained separate from what would eventually constitute a republic. Kiram’s grave lies there, alongside his niece’s, its neglect and ignominy symbolizing much of what our country sweeps away of the past. In my last visit there in early 2010, a Marine detachment was set up in the premises, cultivating a vegetable plot, and small commerce in the community appeared to be proliferating.

The confusion following Kiram’s death (from illnesses in old age, it was said) shifted the drama to the other side of Sulu island, in Patikul, where the Aberin royal family had substantial claim to the throne as well. Another niece of the deceased sultan, the American-educated Tarhata who was too modern for her time, had married a son of the Aberins in an attempt to balance power.

But in the end, whoever crowned himself sultan was overtaken by the hands of power in Manila, which was to be the center that dictated new rules of the political game.

As we would know it now, Patikul would be a place synonymous to the dreaded Abu Sayyaf rebel group holding its base there. The showbiz celebrity Aga Muhlach may not have known that when he featured just last month an unprecedented two episodes set in Patikul for his TV travel show, "Pinoy Explorer," bringing forth a renewed optimism for tourism potential and cultural understanding, albeit managed by the Marines and a local non-government organization.

What the show, fun and promising as it were, had missed was a decrepit stilted house inconspicuous on the coast, claiming itself as the leftover sultanate of the Aberin descendants, hidden too among the coconut trees; and that where they filmed the show was a keg of history telling the fate of rebellions and armed conflicts.

It was the Kirams who held on tenaciously to the dreams of the past, drawing followers here and there, putting up makeshift "offices" in corners of Sulu and Tawi-Tawi that the military suspected were a recruitment center, and steadily trying to speak out over other voices drowning theirs, for they were not seeing what many others have come to accept – that the sultanate is long dead.

Princess Piandao had received a sizeable portion of the British payment for the "rent" of Sabah, which the sultanate had leased to the British North Borneo Company in the days of the colonies having their slice of the Sulu-Celebes maritime swath. Like her uncle, Piandao did not have a child and died of cancer after the Second World War, effectively leaving the other cousins and their families to divide what was left of the spoils.

THE PAST. Princess Piandao with her ladies in waiting. Photo taken by the author from an exhibit in a museum in Zamboanga City.
Sabah as clutch

Sabah became their clutch when their own Sulu was sinking, so to speak, from the heavy weight of bloodshed that spiraled into poverty. Sabah became the vision of the last gold coin that could win back the possibility of rising again, getting back the worth of a name, the venerable House of Kiram. Many in the family have dispersed from Sulu and quarrels abound.

It seems rather ironic that many of those who followed Datu Agimodin Jamalul Kiram in last Thursday’s standoff in Sabah came from the island-town of Simunul in Tawi-Tawi province, a hop away from the Malaysian state of Sabah. Tawi-Tawi had separated administratively from Sulu province in the 1980s; this and the other islands of the southern archipelago, as far as Palawan, had formed the sultanate’s domain.

It was there where the Philippine military had secretly recruited mostly illiterate Muslims to stage allegedly an internal disturbance that was meant to give the government the upper hand in reclaiming Sabah, by force if necessary. This blew up into a political scandal known as the "Jabidah Massacre," an event the military has not owned up to until today, but it has remained an open secret, a stigma on the deaths of some Muslim recruits who tried to mutiny.

This was said to be the crucial factor that sparked the Muslim separatist rebellion in the early 1970s, whose leaders were a brand of ‘activists’, as the Moro National Liberation Front was called, that did not want anything to do with the influence of the royal structures of the past and received clandestine support from Malaysia. The Sulu capital of Jolo was burned to the ground when the military quashed an uprising 39 years ago this month, and the island has sunk even further more, with peace hardly reached in the running insurgency since then.

As it goes, it’s a tale of one army after another; this time we hear of this, the Royal Sulu Sultanate Army – but it’s nowhere near the warriors of the sultanate’s golden age in the 17th and 18th centuries. What we have these days underlies, sadly, the foretold misery of Sulu.

Written by Criselda Yabes A journalist, has published 5 books, including the non-fiction "Sarena's Story:

The Loss of a Kingdom," which won in the 2008 Gawad Likhaan UP Centennial Awards, and "Below the Crying Mountain," which was shortlisted in 2010 for the Man Asian Literary Prize. - Rappler