Daimler Truck will keep prices high even if certain costs begin to fall in order to compensate for lower margins since last year, the truckmaker said on Thursday, as it reported a 15% rise in earnings in the second quarter.

Energy prices, bottlenecks in China and chip shortages will continue to weigh in the second half even though the company expects some supply chain issues to ease, chief executive Martin Daum said.

"Even if some costs are easing, we have to catch up for the fourth quarter of 2021 ... we will definitely keep our pricing to go back to normal margins," he said on a call with analysts.

The truck and bus maker has said several times this year it is confident strong demand will allow it to keep passing on rising costs of energy and raw materials to customers.

Still, chief financial executive Jochen Goetz said in May price increases were out of "necessity" and would be reversed if raw material prices returned to pre-pandemic levels.

Daimler Truck reported a 15% rise in earnings before interest and taxes to 1.01 billion euros ($1.04 billion) in the second quarter, far exceeding analysts' expectations, but adjusted returns were slightly lower than last year at 8% from 8.1%.

First quarter margins were also down from last year, despite higher revenues and earnings.

Trucks are sold out in Europe and North America for 2022 and the company is reallocating scarce chips from countries including Japan and India to serve orders in higher margin markets, it said.

Goetz was optimistic the possibility of further cuts to gas supplies to Germany from Russia would not bring factories to a halt, adding he was more concerned whether suppliers would still be able to deliver.

Competitors Traton and Iveco reported falling second quarter earnings despite rising revenues, due to supply chain issues.

($1 = 0.9720 euros)