Kammeyer's been in jail since Monday after allegedly pulling a gun at a police officer at the West Valley police department. He was shot twice in the arm. Charges have not been filed in the case.
But in West Jordan, Kammeyer was charged with two counts of domestic violence and criminal mischief for an episode at his home Sunday night.
Thursday, Kammeyer appeared by video from the jail and told the judge he was "not guilty" to the three misdemeanor charges in West Jordan.
A friend of both Kammeyer and his wife spoke exclusively with ABC 4 about what happened.
"He had already moved out previously a week before," says the friend who did not want her name revealed. "And he showed up at the house on Sunday night around 9 p.m. He just walked in went into the computer room and N**** asked him 'what are you doing here?'"
The friend says the Kammeyer's were having marital problems and he wanted to move back in.
"He said (to his wife) this is my house and I am not leaving," says the friend.
The friend says Kammeyer who is on the sex offender registry was having problems finding a place to live and was living out of his car.
"He was tired of it and he wanted to go home and crawl in his bed," she says.
And when James Kammeyer stepped outside for a cigarette, the friend says the wife made a move.
"When she walked back in she locked him out of the house and he kicked the door and that's it," she says.
But she called police who arrived and settled the commotion.
The friend tells me the wife left with the children and Kammeyer stayed in his West Jordan home.
“I'm sad,” she says. “He was my friend and you guys don't know him like I do."
The next day, Kammeyer drove his motorcycle to the West Valley police department.
"He knew the police department because that's where he had to report being a sex offender," she says. "He wasn't there to harm anybody. He wasn't there to shoot a cop."
But West Valley police had no idea of Kammeyer's intention when he showed up Monday at their police station.
"He pulled out a gun and was shot," she says.
The friend says Kammeyer and his wife had marital problems.
"He was a wonderful man," she says. "He was a good father. They never had domestic problems."
But after he was charged with domestic violence, Kammeyer's wife left the home with the children. The next morning police say Kammeyer showed up at the West Valley police station with a gun.
"It wasn't loaded," she says. "His purpose was to aim a gun at a cop so that he would be shot dead."
Suicide by cop it's called.
"He's an ex-marine," the friend says. "It goes against their code and also goes against his religious beliefs. He wouldn't go to heaven if he killed himself."
Kammeyer worked for the state as a computer specialist with the Department of Technical Services.
"I believe we were surprised and saddened by the events of that day," says Stephanie Weiss, a spokesperson for the agency.
Kammeyer's close friend says he worked for the agency for a dozen years.
Weiss wouldn't confirm that and wouldn't say anything about his performance at the job site.
"I can't say anything about that because it's currently under investigation," she says. "We are cooperating with police and I can't comment."
But Kammeyer's friend says he was an "intelligent man" and cared for people.
"He would give the shirt off of his back to anybody," she says. "He's a very, very nice guy and a lot of fun at that. But he just cracked."