"China will continue to take firm and forceful measures to resolutely safeguard national sovereignty, security and development interests". The US said however that the latest blacklisting was not related to those trade talks.
The move comes ahead of high-level trade talks in Washington on October 10.
The ministry also said it strongly urges the U.S.to stop making irresponsible remarks on the Xinjiang issue and to stop interfering in China's internal affairs.
The timing of the move, just a few days ahead of the latest talks aimed to end the "good and easy to win" trade war with China, now in the better part of its second year, might seem a bit inflammatory, but the U.S. government is clear that this has everything to do with national security and nothing to do with the trade war.
The commerce department in a statement said these entities "have been implicated in human rights violations and abuses in China's campaign targeting Uighurs and other predominantly Muslim ethnic minorities in the Xinjiang Uighur Autonomous Region (XUAR)".
The foreign ministry's Geng accused the US of having "sinister intentions".More news: No prospect of UAW agreement with GM in sight
More news: 'Ferrari' Matsushima puts Japan in driving seat at Rugby World Cup
More news: 'Zombie deer' disease reported in 35 Kansas counties
Hikvision responded to the new by saying the company "strongly opposes today's decision by the United States government" and that the firm "respects human rights and takes our responsibility to protect people in the United States and the world seriously".
From 2011 to 2017, Hikvision was the world's largest surveillance camera maker, owning 38% in market share globally in 2017, according to a research report by IHS Markit published in July 2018.
"We believe our inclusion on the list reflects a misunderstanding of our company", said a Megvii statement. It added that it hadn't earned revenue from Xinjiang in the first part of the year, and the impact on its business from the designation was minimal.
Hikvision and Xiamen Meiya were every down a somewhat gentle 1.6% in Tuesday trade. The speech was postponed indefinitely, so that Trump could secure a meeting with Chinese leader Xi Jinping in Osaka, Japan.
"This action will ensure that our technologies, fostered in an environment of individual liberty and free enterprise, are not used to repress defenseless minority populations". Other notable mentions include Xinjiang province's Public Security Bureau, as well as 19 other smaller government agencies.
The Uyghur exile community welcomed the Department of Commerce's announcement on Tuesday, with Nury Turkel, a lawyer and chairman of the Washington-based Uyghur Human Rights Project, calling it a "long overdue designation that will potentially change the behavior of the Chinese government".